1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 20:05:35 +02:00

Team shared warning levels for core-plugin, fixed warnings.

This commit is contained in:
Markus Schorn 2008-04-09 11:35:52 +00:00
parent a14a63c060
commit b5ad408a60
551 changed files with 1675 additions and 240 deletions

View file

@ -1,12 +1,81 @@
#Fri Dec 28 14:46:56 EST 2007 #Wed Apr 09 13:24:35 CEST 2008
eclipse.preferences.version=1 eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.5 org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.debug.lineNumber=generate org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
org.eclipse.jdt.core.compiler.problem.deprecation=warning
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
org.eclipse.jdt.core.compiler.problem.discouragedReference=error
org.eclipse.jdt.core.compiler.problem.emptyStatement=warning
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.fallthroughCase=warning
org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
org.eclipse.jdt.core.compiler.problem.fieldHiding=warning
org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning
org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=protected
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=error
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning
org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=protected
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
org.eclipse.jdt.core.compiler.problem.nullReference=error
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=error
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning
org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=warning
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=warning
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
org.eclipse.jdt.core.compiler.problem.unusedImport=warning
org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.5 org.eclipse.jdt.core.compiler.source=1.5

View file

@ -53,6 +53,7 @@ public class AllTypesCache {
IIndexBinding[] all = IIndexBinding[] all =
index.findBindings(Pattern.compile(".*"), false, new IndexFilter() { //$NON-NLS-1$ index.findBindings(Pattern.compile(".*"), false, new IndexFilter() { //$NON-NLS-1$
@Override
public boolean acceptBinding(IBinding binding) { public boolean acceptBinding(IBinding binding) {
return IndexModelUtil.bindingHasCElementType(binding, kinds); return IndexModelUtil.bindingHasCElementType(binding, kinds);
}}, }},

View file

@ -283,6 +283,7 @@ public class QualifiedTypeName implements IQualifiedTypeName {
return (val.getSeverity() != IStatus.ERROR); return (val.getSeverity() != IStatus.ERROR);
} }
@Override
public int hashCode() { public int hashCode() {
if (fHashCode == 0) { if (fHashCode == 0) {
fHashCode = HASH_INIT; fHashCode = HASH_INIT;
@ -293,6 +294,7 @@ public class QualifiedTypeName implements IQualifiedTypeName {
return fHashCode; return fHashCode;
} }
@Override
public String toString() { public String toString() {
return getFullyQualifiedName(); return getFullyQualifiedName();
} }
@ -345,6 +347,7 @@ public class QualifiedTypeName implements IQualifiedTypeName {
return result; return result;
} }
@Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj == this) { if (obj == this) {
return true; return true;

View file

@ -207,6 +207,7 @@ public class TypeInfo implements ITypeInfo
return null; return null;
} }
@Override
public String toString() { public String toString() {
return fQualifiedName.toString(); return fQualifiedName.toString();
} }
@ -225,6 +226,7 @@ public class TypeInfo implements ITypeInfo
return false; return false;
} }
@Override
public int hashCode() { public int hashCode() {
int hashCode = fQualifiedName.hashCode() + fElementType; int hashCode = fQualifiedName.hashCode() + fElementType;
ICProject project = getEnclosingProject(); ICProject project = getEnclosingProject();
@ -233,6 +235,7 @@ public class TypeInfo implements ITypeInfo
return hashCode; return hashCode;
} }
@Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj == this) { if (obj == this) {
return true; return true;

View file

@ -213,6 +213,7 @@ public class TypeReference implements ITypeReference {
return path; return path;
} }
@Override
public String toString() { public String toString() {
IPath path = getLocation(); IPath path = getLocation();
if (path != null) { if (path != null) {
@ -224,10 +225,12 @@ public class TypeReference implements ITypeReference {
return ""; //$NON-NLS-1$ return ""; //$NON-NLS-1$
} }
@Override
public int hashCode() { public int hashCode() {
return toString().hashCode(); return toString().hashCode();
} }
@Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj == this) { if (obj == this) {
return true; return true;

View file

@ -25,10 +25,12 @@ public class UnknownTypeInfo extends TypeInfo {
super(0, typeName); super(0, typeName);
} }
@Override
public boolean isUndefinedType() { public boolean isUndefinedType() {
return true; return true;
} }
@Override
public boolean canSubstituteFor(ITypeInfo info) { public boolean canSubstituteFor(ITypeInfo info) {
int compareType = info.getCElementType(); int compareType = info.getCElementType();
if (fElementType == 0 || compareType == 0 || fElementType == compareType) { if (fElementType == 0 || compareType == 0 || fElementType == compareType) {

View file

@ -93,6 +93,7 @@ public class IndexTypeReference extends TypeReference {
/* /*
* @see org.eclipse.cdt.core.browser.ITypeReference#getCElements() * @see org.eclipse.cdt.core.browser.ITypeReference#getCElements()
*/ */
@Override
public ICElement[] getCElements() { public ICElement[] getCElements() {
if (fCElement != null) { if (fCElement != null) {
return new ICElement[] { fCElement }; return new ICElement[] { fCElement };

View file

@ -107,6 +107,7 @@ public class CModelException extends CoreException {
* Returns a printable representation of this exception suitable for debugging * Returns a printable representation of this exception suitable for debugging
* purposes only. * purposes only.
*/ */
@Override
public String toString() { public String toString() {
StringBuffer buffer= new StringBuffer(); StringBuffer buffer= new StringBuffer();
buffer.append("C Model Exception: "); //$NON-NLS-1$ buffer.append("C Model Exception: "); //$NON-NLS-1$

View file

@ -61,6 +61,7 @@ public class ElementChangedEvent extends EventObject {
* @since 2.0 * @since 2.0
* @deprecated - no longer used, such deltas are now notified during POST_CHANGE * @deprecated - no longer used, such deltas are now notified during POST_CHANGE
*/ */
@Deprecated
public static final int PRE_AUTO_BUILD = 2; public static final int PRE_AUTO_BUILD = 2;
/** /**
* Event type constant (bit mask) indicating an after-the-fact * Event type constant (bit mask) indicating an after-the-fact

View file

@ -240,47 +240,55 @@ public interface ICElement extends IAdaptable {
* Modifier indicating a class constructor * Modifier indicating a class constructor
* @deprecated use {@link IMethodDeclaration#isConstructor()} * @deprecated use {@link IMethodDeclaration#isConstructor()}
*/ */
@Deprecated
static final int C_CLASS_CTOR = 0x100; static final int C_CLASS_CTOR = 0x100;
/** /**
* Modifier indicating a class destructor * Modifier indicating a class destructor
* @deprecated use {@link IMethodDeclaration#isDestructor()} * @deprecated use {@link IMethodDeclaration#isDestructor()}
*/ */
@Deprecated
static final int C_CLASS_DTOR = 0x200; static final int C_CLASS_DTOR = 0x200;
/** /**
* Modifier indicating a static storage attribute * Modifier indicating a static storage attribute
* @deprecated use {@link IDeclaration#isStatic()} * @deprecated use {@link IDeclaration#isStatic()}
*/ */
@Deprecated
static final int C_STORAGE_STATIC = 0x400; static final int C_STORAGE_STATIC = 0x400;
/** /**
* Modifier indicating an extern storage attribute * Modifier indicating an extern storage attribute
* @deprecated not used anymore * @deprecated not used anymore
*/ */
@Deprecated
static final int C_STORAGE_EXTERN = 0x800; static final int C_STORAGE_EXTERN = 0x800;
/** /**
* Modifier indicating a private class * Modifier indicating a private class
* @deprecated use {@link IMember#getVisibility()} * @deprecated use {@link IMember#getVisibility()}
*/ */
@Deprecated
static final int CPP_PRIVATE = 0x1000; static final int CPP_PRIVATE = 0x1000;
/** /**
* Modifier indicating a public class * Modifier indicating a public class
* @deprecated use {@link IMember#getVisibility()} * @deprecated use {@link IMember#getVisibility()}
*/ */
@Deprecated
static final int CPP_PUBLIC = 0x2000; static final int CPP_PUBLIC = 0x2000;
/** /**
* Modifier indicating a protected class * Modifier indicating a protected class
* @deprecated use {@link IMember#getVisibility()} * @deprecated use {@link IMember#getVisibility()}
*/ */
@Deprecated
static final int CPP_PROTECTED = 0x4000; static final int CPP_PROTECTED = 0x4000;
/** /**
* Modifier indicating a friend class * Modifier indicating a friend class
* @deprecated use {@link IMethodDeclaration#isFriend()} * @deprecated use {@link IMethodDeclaration#isFriend()}
*/ */
@Deprecated
static final int CPP_FRIEND = 0x8000; static final int CPP_FRIEND = 0x8000;
/** /**

View file

@ -21,5 +21,6 @@ public interface IEnumeration extends IParent, IDeclaration {
* @throws CModelException * @throws CModelException
* @deprecated * @deprecated
*/ */
@Deprecated
String getTypeName() throws CModelException; String getTypeName() throws CModelException;
} }

View file

@ -41,5 +41,6 @@ public interface IStructureDeclaration extends IDeclaration {
* Return "class", "struct", "union" * Return "class", "struct", "union"
* @deprecated use isUnion(), isClass(), isStruct() * @deprecated use isUnion(), isClass(), isStruct()
*/ */
@Deprecated
String getTypeName() throws CModelException; String getTypeName() throws CModelException;
} }

View file

@ -425,6 +425,7 @@ public interface ITranslationUnit extends ICElement, IParent, IOpenable, ISource
* @deprecated this is currently only used by the core tests. It should * @deprecated this is currently only used by the core tests. It should
* be removed from the interface. * be removed from the interface.
*/ */
@Deprecated
Map parse(); Map parse();
/** /**

View file

@ -225,6 +225,7 @@ public class LanguageManager {
/** /**
* @deprecated use getRegisteredContentTypes() instead. * @deprecated use getRegisteredContentTypes() instead.
*/ */
@Deprecated
public ArrayList/*<String>*/ getAllContentTypes() { public ArrayList/*<String>*/ getAllContentTypes() {
ArrayList/*<String>*/ allTypes = new ArrayList(); ArrayList/*<String>*/ allTypes = new ArrayList();
allTypes.add(CCorePlugin.CONTENT_TYPE_ASMSOURCE); allTypes.add(CCorePlugin.CONTENT_TYPE_ASMSOURCE);

View file

@ -196,6 +196,7 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
return true; return true;
} }
@Override
public Object[] getItems() { public Object[] getItems() {
return items; return items;
} }

View file

@ -36,6 +36,7 @@ public abstract class ACExclusionFilterEntry extends ACPathEntry implements ICEx
this.exclusionPatterns = exclusionPatterns != null ? (IPath[])exclusionPatterns.clone() : new IPath[0]; this.exclusionPatterns = exclusionPatterns != null ? (IPath[])exclusionPatterns.clone() : new IPath[0];
} }
@Override
protected final boolean isFile() { protected final boolean isFile() {
return false; return false;
} }
@ -67,6 +68,7 @@ public abstract class ACExclusionFilterEntry extends ACPathEntry implements ICEx
return this.fullCharExclusionPatterns; return this.fullCharExclusionPatterns;
} }
@Override
public boolean equals(Object other) { public boolean equals(Object other) {
if(!super.equals(other)) if(!super.equals(other))
return false; return false;
@ -75,10 +77,12 @@ public abstract class ACExclusionFilterEntry extends ACPathEntry implements ICEx
return Arrays.equals(exclusionPatterns, otherEntry.exclusionPatterns); return Arrays.equals(exclusionPatterns, otherEntry.exclusionPatterns);
} }
@Override
public int hashCode() { public int hashCode() {
return super.hashCode() + exclusionPatterns.hashCode(); return super.hashCode() + exclusionPatterns.hashCode();
} }
@Override
public boolean equalsByContents(ICSettingEntry entry) { public boolean equalsByContents(ICSettingEntry entry) {
if(!super.equalsByContents(entry)) if(!super.equalsByContents(entry))
return false; return false;
@ -87,6 +91,7 @@ public abstract class ACExclusionFilterEntry extends ACPathEntry implements ICEx
return Arrays.equals(exclusionPatterns, otherEntry.exclusionPatterns); return Arrays.equals(exclusionPatterns, otherEntry.exclusionPatterns);
} }
@Override
protected String contentsToString() { protected String contentsToString() {
String result = super.contentsToString(); String result = super.contentsToString();
if(exclusionPatterns.length != 0){ if(exclusionPatterns.length != 0){

View file

@ -85,6 +85,7 @@ public abstract class ACPathEntry extends ACSettingEntry
return checkFlags(VALUE_WORKSPACE_PATH); return checkFlags(VALUE_WORKSPACE_PATH);
} }
@Override
protected String contentsToString() { protected String contentsToString() {
return fName; return fName;
} }

View file

@ -49,6 +49,7 @@ public abstract class ACSettingEntry implements ICSettingEntry {
return checkFlags(RESOLVED); return checkFlags(RESOLVED);
} }
@Override
public boolean equals(Object other){ public boolean equals(Object other){
if(other == this) if(other == this)
return true; return true;
@ -70,6 +71,7 @@ public abstract class ACSettingEntry implements ICSettingEntry {
return true; return true;
} }
@Override
public int hashCode(){ public int hashCode(){
return getKind() + fFlags + fName.hashCode(); return getKind() + fFlags + fName.hashCode();
} }
@ -116,6 +118,7 @@ public abstract class ACSettingEntry implements ICSettingEntry {
return codeForNameKey(); return codeForNameKey();
} }
@Override
public final String toString(){ public final String toString(){
StringBuffer buf = new StringBuffer(); StringBuffer buf = new StringBuffer();
buf.append('[').append(LanguageSettingEntriesSerializer.kindToString(getKind())).append(']').append(' '); buf.append('[').append(LanguageSettingEntriesSerializer.kindToString(getKind())).append(']').append(' ');

View file

@ -32,6 +32,7 @@ public final class CIncludeFileEntry extends ACPathEntry implements
return INCLUDE_FILE; return INCLUDE_FILE;
} }
@Override
public final boolean isFile() { public final boolean isFile() {
return true; return true;
} }

View file

@ -35,6 +35,7 @@ public final class CIncludePathEntry extends ACPathEntry implements ICIncludePat
return INCLUDE_PATH; return INCLUDE_PATH;
} }
@Override
public final boolean isFile() { public final boolean isFile() {
return false; return false;
} }

View file

@ -75,6 +75,7 @@ public final class CLibraryFileEntry extends ACPathEntry implements
return LIBRARY_FILE; return LIBRARY_FILE;
} }
@Override
public final boolean isFile() { public final boolean isFile() {
return true; return true;
} }
@ -91,6 +92,7 @@ public final class CLibraryFileEntry extends ACPathEntry implements
return fSourceAttachmentRootPath; return fSourceAttachmentRootPath;
} }
@Override
public boolean equals(Object other) { public boolean equals(Object other) {
if(other == this) if(other == this)
return true; return true;
@ -101,6 +103,7 @@ public final class CLibraryFileEntry extends ACPathEntry implements
return sourceAttachmentSettingsEqual((CLibraryFileEntry)other); return sourceAttachmentSettingsEqual((CLibraryFileEntry)other);
} }
@Override
public boolean equalsByContents(ICSettingEntry entry) { public boolean equalsByContents(ICSettingEntry entry) {
if(entry == this) if(entry == this)
return true; return true;
@ -121,6 +124,7 @@ public final class CLibraryFileEntry extends ACPathEntry implements
return true; return true;
} }
@Override
protected String contentsToString() { protected String contentsToString() {
String result = super.contentsToString(); String result = super.contentsToString();

View file

@ -32,6 +32,7 @@ public final class CLibraryPathEntry extends ACPathEntry implements
return LIBRARY_PATH; return LIBRARY_PATH;
} }
@Override
public final boolean isFile() { public final boolean isFile() {
return false; return false;
} }

View file

@ -22,6 +22,7 @@ public final class CMacroEntry extends ACSettingEntry implements ICMacroEntry{
fValue = ""; //$NON-NLS-1$ fValue = ""; //$NON-NLS-1$
} }
@Override
public String getValue() { public String getValue() {
return fValue; return fValue;
} }
@ -30,16 +31,19 @@ public final class CMacroEntry extends ACSettingEntry implements ICMacroEntry{
return MACRO; return MACRO;
} }
@Override
public boolean equals(Object other) { public boolean equals(Object other) {
if(!super.equals(other)) if(!super.equals(other))
return false; return false;
return fValue.equals(((CMacroEntry)other).fValue); return fValue.equals(((CMacroEntry)other).fValue);
} }
@Override
public int hashCode() { public int hashCode() {
return super.hashCode() + fValue.hashCode(); return super.hashCode() + fValue.hashCode();
} }
@Override
public boolean equalsByContents(ICSettingEntry entry) { public boolean equalsByContents(ICSettingEntry entry) {
if(!super.equalsByContents(entry)) if(!super.equalsByContents(entry))
return false; return false;
@ -47,6 +51,7 @@ public final class CMacroEntry extends ACSettingEntry implements ICMacroEntry{
return fValue.equals(((CMacroEntry)entry).fValue); return fValue.equals(((CMacroEntry)entry).fValue);
} }
@Override
protected String contentsToString() { protected String contentsToString() {
return new StringBuffer().append(fName).append('=').append(fValue).toString(); return new StringBuffer().append(fName).append('=').append(fValue).toString();
} }

View file

@ -32,6 +32,7 @@ public final class CMacroFileEntry extends ACPathEntry implements
return MACRO_FILE; return MACRO_FILE;
} }
@Override
public final boolean isFile() { public final boolean isFile() {
return true; return true;
} }

View file

@ -16,6 +16,7 @@ import org.eclipse.cdt.core.settings.model.ICSettingBase;
import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IPath;
public abstract class CBuildData extends CDataObject { public abstract class CBuildData extends CDataObject {
@Override
public final int getType() { public final int getType() {
return ICSettingBase.SETTING_BUILD; return ICSettingBase.SETTING_BUILD;
} }

View file

@ -22,6 +22,7 @@ public abstract class CConfigurationData extends CDataObject {
protected CConfigurationData() { protected CConfigurationData() {
} }
@Override
public final int getType(){ public final int getType(){
return SETTING_CONFIGURATION; return SETTING_CONFIGURATION;
} }

View file

@ -18,6 +18,7 @@ public abstract class CFileData extends CResourceData {
} }
@Override
public final int getType(){ public final int getType(){
return ICSettingBase.SETTING_FILE; return ICSettingBase.SETTING_FILE;
} }

View file

@ -18,6 +18,7 @@ public abstract class CFolderData extends CResourceData {
} }
@Override
public final int getType(){ public final int getType(){
return ICSettingBase.SETTING_FOLDER; return ICSettingBase.SETTING_FOLDER;
} }

View file

@ -21,6 +21,7 @@ public abstract class CLanguageData extends CDataObject {
// public abstract CDataObject getChildById(String id); // public abstract CDataObject getChildById(String id);
@Override
public final int getType() { public final int getType() {
return SETTING_LANGUAGE; return SETTING_LANGUAGE;
} }

View file

@ -13,6 +13,7 @@ package org.eclipse.cdt.core.settings.model.extension;
import org.eclipse.cdt.core.settings.model.ICSettingBase; import org.eclipse.cdt.core.settings.model.ICSettingBase;
public abstract class CTargetPlatformData extends CDataObject { public abstract class CTargetPlatformData extends CDataObject {
@Override
public final int getType(){ public final int getType(){
return ICSettingBase.SETTING_TARGET_PLATFORM; return ICSettingBase.SETTING_TARGET_PLATFORM;
} }

View file

@ -57,22 +57,26 @@ public class CDefaultBuildData extends CBuildData {
} }
} }
@Override
public IPath getBuilderCWD() { public IPath getBuilderCWD() {
return fCWD; return fCWD;
} }
@Override
public String[] getErrorParserIDs() { public String[] getErrorParserIDs() {
if(fErrorParserIDs != null && fErrorParserIDs.length != 0) if(fErrorParserIDs != null && fErrorParserIDs.length != 0)
return (String[])fErrorParserIDs.clone(); return (String[])fErrorParserIDs.clone();
return EMPTY_STRING_ARRAY; return EMPTY_STRING_ARRAY;
} }
@Override
public ICOutputEntry[] getOutputDirectories() { public ICOutputEntry[] getOutputDirectories() {
if(fOutputEntries != null && fOutputEntries.length != 0) if(fOutputEntries != null && fOutputEntries.length != 0)
return (ICOutputEntry[])fOutputEntries.clone(); return (ICOutputEntry[])fOutputEntries.clone();
return EMPTY_OUTPUT_ENTRIES_ARRAY; return EMPTY_OUTPUT_ENTRIES_ARRAY;
} }
@Override
public void setBuilderCWD(IPath path) { public void setBuilderCWD(IPath path) {
if(CDataUtil.objectsEqual(path, fCWD)) if(CDataUtil.objectsEqual(path, fCWD))
return; return;
@ -82,6 +86,7 @@ public class CDefaultBuildData extends CBuildData {
setModified(true); setModified(true);
} }
@Override
public void setErrorParserIDs(String[] ids) { public void setErrorParserIDs(String[] ids) {
if(Arrays.equals(ids, fErrorParserIDs)) if(Arrays.equals(ids, fErrorParserIDs))
return; return;
@ -93,6 +98,7 @@ public class CDefaultBuildData extends CBuildData {
setModified(true); setModified(true);
} }
@Override
public void setOutputDirectories(ICOutputEntry[] entries) { public void setOutputDirectories(ICOutputEntry[] entries) {
if(Arrays.equals(entries, fOutputEntries)) if(Arrays.equals(entries, fOutputEntries))
return; return;
@ -105,18 +111,22 @@ public class CDefaultBuildData extends CBuildData {
setModified(true); setModified(true);
} }
@Override
public String getId() { public String getId() {
return fId; return fId;
} }
@Override
public String getName() { public String getName() {
return fName; return fName;
} }
@Override
public boolean isValid() { public boolean isValid() {
return getId() != null; return getId() != null;
} }
@Override
public IEnvironmentContributor getBuildEnvironmentContributor() { public IEnvironmentContributor getBuildEnvironmentContributor() {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return null; return null;

View file

@ -153,6 +153,7 @@ public class CDefaultConfigurationData extends CConfigurationData {
return fFactory.createBuildData(this, data, null, data != null ? data.getName() : null, clone); return fFactory.createBuildData(this, data, null, data != null ? data.getName() : null, clone);
} }
@Override
public CFolderData createFolderData(IPath path, CFolderData base) throws CoreException{ public CFolderData createFolderData(IPath path, CFolderData base) throws CoreException{
CFolderData data = copyFolderData(path, base, false); CFolderData data = copyFolderData(path, base, false);
addRcData(data); addRcData(data);
@ -162,6 +163,7 @@ public class CDefaultConfigurationData extends CConfigurationData {
return data; return data;
} }
@Override
public CFileData createFileData(IPath path, CFileData base) throws CoreException{ public CFileData createFileData(IPath path, CFileData base) throws CoreException{
CFileData data = copyFileData(path, base, false); CFileData data = copyFileData(path, base, false);
addRcData(data); addRcData(data);
@ -171,6 +173,7 @@ public class CDefaultConfigurationData extends CConfigurationData {
return data; return data;
} }
@Override
public CFileData createFileData(IPath path, CFolderData base, CLanguageData langData) throws CoreException{ public CFileData createFileData(IPath path, CFolderData base, CLanguageData langData) throws CoreException{
CFileData data = copyFileData(path, base, langData); CFileData data = copyFileData(path, base, langData);
addRcData(data); addRcData(data);
@ -180,10 +183,12 @@ public class CDefaultConfigurationData extends CConfigurationData {
return data; return data;
} }
@Override
public String getDescription() { public String getDescription() {
return fDescription; return fDescription;
} }
@Override
public void setDescription(String description) { public void setDescription(String description) {
if(CDataUtil.objectsEqual(description, fDescription)) if(CDataUtil.objectsEqual(description, fDescription))
return; return;
@ -192,10 +197,12 @@ public class CDefaultConfigurationData extends CConfigurationData {
setModified(true); setModified(true);
} }
@Override
public CResourceData[] getResourceDatas() { public CResourceData[] getResourceDatas() {
return (CResourceData[])fResourceDataMap.values().toArray(new CResourceData[fResourceDataMap.size()]); return (CResourceData[])fResourceDataMap.values().toArray(new CResourceData[fResourceDataMap.size()]);
} }
@Override
public CFolderData getRootFolderData() { public CFolderData getRootFolderData() {
return fRootFolderData; return fRootFolderData;
} }
@ -207,6 +214,7 @@ public class CDefaultConfigurationData extends CConfigurationData {
return fRootFolderData; return fRootFolderData;
} }
@Override
public void removeResourceData(CResourceData data) throws CoreException { public void removeResourceData(CResourceData data) throws CoreException {
if(data == getResourceData(data.getPath())){ if(data == getResourceData(data.getPath())){
IPath path = standardizePath(data.getPath()); IPath path = standardizePath(data.getPath());
@ -221,10 +229,12 @@ public class CDefaultConfigurationData extends CConfigurationData {
return (CResourceData)fResourceDataMap.get(path); return (CResourceData)fResourceDataMap.get(path);
} }
@Override
public String getName() { public String getName() {
return fName; return fName;
} }
@Override
public void setName(String name) { public void setName(String name) {
if(CDataUtil.objectsEqual(name, fName)) if(CDataUtil.objectsEqual(name, fName))
return; return;
@ -232,22 +242,27 @@ public class CDefaultConfigurationData extends CConfigurationData {
setModified(true); setModified(true);
} }
@Override
public String getId() { public String getId() {
return fId; return fId;
} }
@Override
public boolean isValid() { public boolean isValid() {
return getId() != null; return getId() != null;
} }
@Override
public CTargetPlatformData getTargetPlatformData() { public CTargetPlatformData getTargetPlatformData() {
return fTargetPlatformData; return fTargetPlatformData;
} }
@Override
public ICSourceEntry[] getSourceEntries() { public ICSourceEntry[] getSourceEntries() {
return fSourceEntries != null ? (ICSourceEntry[])fSourceEntries.clone() : null; return fSourceEntries != null ? (ICSourceEntry[])fSourceEntries.clone() : null;
} }
@Override
public void setSourceEntries(ICSourceEntry[] entries) { public void setSourceEntries(ICSourceEntry[] entries) {
if(Arrays.equals(entries, fSourceEntries)) if(Arrays.equals(entries, fSourceEntries))
return; return;
@ -256,6 +271,7 @@ public class CDefaultConfigurationData extends CConfigurationData {
setModified(true); setModified(true);
} }
@Override
public CBuildData getBuildData() { public CBuildData getBuildData() {
return fBuildData; return fBuildData;
} }
@ -283,6 +299,7 @@ public class CDefaultConfigurationData extends CConfigurationData {
return fBuildData; return fBuildData;
} }
@Override
public ICdtVariablesContributor getBuildVariablesContributor() { public ICdtVariablesContributor getBuildVariablesContributor() {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return null; return null;
@ -312,6 +329,7 @@ public class CDefaultConfigurationData extends CConfigurationData {
} }
} }
@Override
public CConfigurationStatus getStatus() { public CConfigurationStatus getStatus() {
return fStatus; return fStatus;
} }

View file

@ -23,6 +23,7 @@ public class CDefaultConfigurationDataProvider extends
CConfigurationDataProvider { CConfigurationDataProvider {
private static final String DEFAULT_STORAGE_ID = "defaultConfigurationDataProvider"; //$NON-NLS-1$ private static final String DEFAULT_STORAGE_ID = "defaultConfigurationDataProvider"; //$NON-NLS-1$
@Override
public CConfigurationData applyConfiguration( public CConfigurationData applyConfiguration(
ICConfigurationDescription des, ICConfigurationDescription des,
ICConfigurationDescription baseDescription, ICConfigurationDescription baseDescription,
@ -35,6 +36,7 @@ public class CDefaultConfigurationDataProvider extends
return base; return base;
} }
@Override
public CConfigurationData createConfiguration( public CConfigurationData createConfiguration(
ICConfigurationDescription des, ICConfigurationDescription des,
ICConfigurationDescription baseDescription, ICConfigurationDescription baseDescription,
@ -45,6 +47,7 @@ public class CDefaultConfigurationDataProvider extends
return factory.createConfigurationdata(des.getId(), des.getName(), base, clone); return factory.createConfigurationdata(des.getId(), des.getName(), base, clone);
} }
@Override
public CConfigurationData loadConfiguration(ICConfigurationDescription des, public CConfigurationData loadConfiguration(ICConfigurationDescription des,
IProgressMonitor monitor) IProgressMonitor monitor)
throws CoreException { throws CoreException {
@ -65,6 +68,7 @@ public class CDefaultConfigurationDataProvider extends
return null; return null;
} }
@Override
public void removeConfiguration(ICConfigurationDescription des, public void removeConfiguration(ICConfigurationDescription des,
CConfigurationData data, CConfigurationData data,
IProgressMonitor monitor) { IProgressMonitor monitor) {

View file

@ -71,6 +71,7 @@ public class CDefaultFileData extends CFileData {
} }
@Override
public IPath getPath() { public IPath getPath() {
return fPath; return fPath;
} }
@ -86,10 +87,12 @@ public class CDefaultFileData extends CFileData {
// fIsExcluded = excluded; // fIsExcluded = excluded;
// } // }
@Override
public void setPath(IPath path) { public void setPath(IPath path) {
fPath = path; fPath = path;
} }
@Override
public String getName() { public String getName() {
return fName; return fName;
} }
@ -98,14 +101,17 @@ public class CDefaultFileData extends CFileData {
fName = name; fName = name;
} }
@Override
public String getId() { public String getId() {
return fId; return fId;
} }
@Override
public boolean isValid() { public boolean isValid() {
return getId() != null; return getId() != null;
} }
@Override
public CLanguageData getLanguageData() { public CLanguageData getLanguageData() {
return fLanguageData; return fLanguageData;
} }
@ -124,6 +130,7 @@ public class CDefaultFileData extends CFileData {
fFactory.setModified(fLanguageData, false); fFactory.setModified(fLanguageData, false);
} }
@Override
public boolean hasCustomSettings() { public boolean hasCustomSettings() {
return false; return false;
} }

View file

@ -64,10 +64,12 @@ public class CDefaultFolderData extends CFolderData {
return fFactory.createLanguageData(fCfg, this, base, null, clone); return fFactory.createLanguageData(fCfg, this, base, null, clone);
} }
@Override
public CLanguageData[] getLanguageDatas() { public CLanguageData[] getLanguageDatas() {
return (CLanguageData[])fLanguageDatas.toArray(new CLanguageData[fLanguageDatas.size()]); return (CLanguageData[])fLanguageDatas.toArray(new CLanguageData[fLanguageDatas.size()]);
} }
@Override
public IPath getPath() { public IPath getPath() {
return fPath; return fPath;
} }
@ -84,6 +86,7 @@ public class CDefaultFolderData extends CFolderData {
// setModified(true); // setModified(true);
// } // }
@Override
public void setPath(IPath path) { public void setPath(IPath path) {
if(CDataUtil.objectsEqual(path, fPath)) if(CDataUtil.objectsEqual(path, fPath))
return; return;
@ -92,14 +95,17 @@ public class CDefaultFolderData extends CFolderData {
setModified(true); setModified(true);
} }
@Override
public String getName() { public String getName() {
return fName; return fName;
} }
@Override
public String getId() { public String getId() {
return fId; return fId;
} }
@Override
public boolean isValid() { public boolean isValid() {
return getId() != null; return getId() != null;
} }
@ -114,6 +120,7 @@ public class CDefaultFolderData extends CFolderData {
// return fFactory.createLanguageData(fCfg, this, null, null, languageId, extensions, false); // return fFactory.createLanguageData(fCfg, this, null, null, languageId, extensions, false);
// } // }
@Override
public CLanguageData createLanguageDataForContentTypes(String languageId, public CLanguageData createLanguageDataForContentTypes(String languageId,
String[] typesIds) { String[] typesIds) {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
@ -125,6 +132,7 @@ public class CDefaultFolderData extends CFolderData {
// return data; // return data;
} }
@Override
public CLanguageData createLanguageDataForExtensions(String languageId, public CLanguageData createLanguageDataForExtensions(String languageId,
String[] extensions) { String[] extensions) {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
@ -161,6 +169,7 @@ public class CDefaultFolderData extends CFolderData {
} }
@Override
public boolean hasCustomSettings() { public boolean hasCustomSettings() {
return false; return false;
} }

View file

@ -105,22 +105,27 @@ public class CDefaultLanguageData extends CLanguageData {
return new EntryStore(true); return new EntryStore(true);
} }
@Override
public String getName() { public String getName() {
return fName; return fName;
} }
@Override
public String getId() { public String getId() {
return fId; return fId;
} }
@Override
public boolean isValid() { public boolean isValid() {
return getId() != null; return getId() != null;
} }
@Override
public String getLanguageId() { public String getLanguageId() {
return fLanguageId; return fLanguageId;
} }
@Override
public void setLanguageId(String id) { public void setLanguageId(String id) {
if(CDataUtil.objectsEqual(id, fLanguageId)) if(CDataUtil.objectsEqual(id, fLanguageId))
return; return;
@ -169,22 +174,26 @@ public class CDefaultLanguageData extends CLanguageData {
} }
*/ */
@Override
public String[] getSourceContentTypeIds() { public String[] getSourceContentTypeIds() {
if(fSourceContentTypeIds != null) if(fSourceContentTypeIds != null)
return fSourceContentTypeIds; return fSourceContentTypeIds;
return EMPTY_STRING_ARRAY; return EMPTY_STRING_ARRAY;
} }
@Override
public String[] getSourceExtensions() { public String[] getSourceExtensions() {
if(fSourceExts != null) if(fSourceExts != null)
return fSourceExts; return fSourceExts;
return EMPTY_STRING_ARRAY; return EMPTY_STRING_ARRAY;
} }
@Override
public int getSupportedEntryKinds() { public int getSupportedEntryKinds() {
return fSupportedKinds; return fSupportedKinds;
} }
@Override
public void setEntries(int kind, ICLanguageSettingEntry entries[]) { public void setEntries(int kind, ICLanguageSettingEntry entries[]) {
entries = processStoredEntries(entries, OP_SET); entries = processStoredEntries(entries, OP_SET);
fStore.storeEntries(kind, entries); fStore.storeEntries(kind, entries);
@ -192,10 +201,12 @@ public class CDefaultLanguageData extends CLanguageData {
setModified(true); setModified(true);
} }
@Override
public ICLanguageSettingEntry[] getEntries(int kind) { public ICLanguageSettingEntry[] getEntries(int kind) {
return fStore.getEntries(kind); return fStore.getEntries(kind);
} }
@Override
public void setSourceContentTypeIds(String[] ids) { public void setSourceContentTypeIds(String[] ids) {
if(Arrays.equals(ids, fSourceContentTypeIds)) if(Arrays.equals(ids, fSourceContentTypeIds))
return; return;
@ -206,6 +217,7 @@ public class CDefaultLanguageData extends CLanguageData {
setModified(true); setModified(true);
} }
@Override
public void setSourceExtensions(String[] exts) { public void setSourceExtensions(String[] exts) {
if(Arrays.equals(exts, fSourceExts)) if(Arrays.equals(exts, fSourceExts))
return; return;

View file

@ -52,12 +52,14 @@ public class CDefaultTargetPlatformData extends CTargetPlatformData {
} }
} }
@Override
public String[] getBinaryParserIds() { public String[] getBinaryParserIds() {
if(fBinaryParserIds != null) if(fBinaryParserIds != null)
return (String[])fBinaryParserIds.clone(); return (String[])fBinaryParserIds.clone();
return new String[0]; return new String[0];
} }
@Override
public void setBinaryParserIds(String[] ids) { public void setBinaryParserIds(String[] ids) {
if(Arrays.equals(ids, fBinaryParserIds)) if(Arrays.equals(ids, fBinaryParserIds))
return; return;
@ -70,14 +72,17 @@ public class CDefaultTargetPlatformData extends CTargetPlatformData {
setModified(true); setModified(true);
} }
@Override
public String getId() { public String getId() {
return fId; return fId;
} }
@Override
public String getName() { public String getName() {
return fName; return fName;
} }
@Override
public boolean isValid() { public boolean isValid() {
return getId() != null; return getId() != null;
} }

View file

@ -45,12 +45,14 @@ public abstract class UserAndDiscoveredEntryConfigurationDataProvider extends
fSupportedKinds = kinds; fSupportedKinds = kinds;
} }
@Override
protected ICLanguageSettingEntry[] getAllDiscoveredEntries(int kind) { protected ICLanguageSettingEntry[] getAllDiscoveredEntries(int kind) {
return UserAndDiscoveredEntryConfigurationDataProvider.this.getAllDiscoveredEntries(this, kind); return UserAndDiscoveredEntryConfigurationDataProvider.this.getAllDiscoveredEntries(this, kind);
} }
} }
protected class DataFactory extends CDataFacroty { protected class DataFactory extends CDataFacroty {
@Override
public CLanguageData createLanguageData(CConfigurationData cfg, public CLanguageData createLanguageData(CConfigurationData cfg,
CResourceData rcBase, CLanguageData base, String id, boolean clone) { CResourceData rcBase, CLanguageData base, String id, boolean clone) {
if(id == null) if(id == null)
@ -58,6 +60,7 @@ public abstract class UserAndDiscoveredEntryConfigurationDataProvider extends
return new LanguageData(id, base); return new LanguageData(id, base);
} }
@Override
public CLanguageData createLanguageData(CConfigurationData cfg, public CLanguageData createLanguageData(CConfigurationData cfg,
CResourceData rcBase, String id, String name, String languageId, CResourceData rcBase, String id, String name, String languageId,
int supportedKinds, String[] rcTypes, boolean isContentTypes) { int supportedKinds, String[] rcTypes, boolean isContentTypes) {
@ -68,10 +71,12 @@ public abstract class UserAndDiscoveredEntryConfigurationDataProvider extends
} }
} }
@Override
protected CDataSerializer getDataSerializer() { protected CDataSerializer getDataSerializer() {
return UserAndDiscoveredEntryDataSerializer.getDefault(); return UserAndDiscoveredEntryDataSerializer.getDefault();
} }
@Override
protected CDataFacroty getDataFactory() { protected CDataFacroty getDataFactory() {
if(fDataFactory == null){ if(fDataFactory == null){
fDataFactory = new DataFactory(); fDataFactory = new DataFactory();

View file

@ -20,6 +20,7 @@ public class EntryContentsKey {
fEntry = entry; fEntry = entry;
} }
@Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if(this == obj) if(this == obj)
return true; return true;
@ -29,6 +30,7 @@ public class EntryContentsKey {
return fEntry.equalsByContents(((EntryContentsKey)obj).fEntry); return fEntry.equalsByContents(((EntryContentsKey)obj).fEntry);
} }
@Override
public int hashCode() { public int hashCode() {
return ((ACSettingEntry)fEntry).codeForContentsKey(); return ((ACSettingEntry)fEntry).codeForContentsKey();
} }

View file

@ -20,6 +20,7 @@ public class EntryNameKey {
fEntry = entry; fEntry = entry;
} }
@Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if(this == obj) if(this == obj)
return true; return true;
@ -29,6 +30,7 @@ public class EntryNameKey {
return fEntry.equalsByName(((EntryNameKey)obj).fEntry); return fEntry.equalsByName(((EntryNameKey)obj).fEntry);
} }
@Override
public int hashCode() { public int hashCode() {
return ((ACSettingEntry)fEntry).codeForNameKey(); return ((ACSettingEntry)fEntry).codeForNameKey();
} }

View file

@ -31,6 +31,7 @@ public abstract class EntryStorageBasedLanguageData extends CDefaultLanguageData
super(id, languageId, ids, isContentTypes); super(id, languageId, ids, isContentTypes);
} }
@Override
public ICLanguageSettingEntry[] getEntries(int kind) { public ICLanguageSettingEntry[] getEntries(int kind) {
AbstractEntryStorage storage = getStorage(kind); AbstractEntryStorage storage = getStorage(kind);
if(storage != null){ if(storage != null){
@ -40,6 +41,7 @@ public abstract class EntryStorageBasedLanguageData extends CDefaultLanguageData
return new ICLanguageSettingEntry[0]; return new ICLanguageSettingEntry[0];
} }
@Override
public void setEntries(int kind, ICLanguageSettingEntry[] entries) { public void setEntries(int kind, ICLanguageSettingEntry[] entries) {
AbstractEntryStorage storage = getStorage(kind); AbstractEntryStorage storage = getStorage(kind);
if(storage != null){ if(storage != null){
@ -55,6 +57,7 @@ public abstract class EntryStorageBasedLanguageData extends CDefaultLanguageData
return fStore.getEntries(kind); return fStore.getEntries(kind);
} }
@Override
protected EntryStore createStore(){ protected EntryStore createStore(){
return new EntryStore(false); return new EntryStore(false);
} }

View file

@ -193,6 +193,7 @@ public class KindBasedStore implements Cloneable {
} }
} }
@Override
public Object clone() { public Object clone() {
try { try {
KindBasedStore clone = (KindBasedStore)super.clone(); KindBasedStore clone = (KindBasedStore)super.clone();

View file

@ -134,6 +134,7 @@ public class PathEntryTranslator {
fCfg = cfg; fCfg = cfg;
} }
@Override
protected ResolvedMacro resolveMacro(ICdtVariable macro) protected ResolvedMacro resolveMacro(ICdtVariable macro)
throws CdtVariableException { throws CdtVariableException {
if(!CdtVarPathEntryVariableManager.isPathEntryVariable(macro, fCfg, fMngr)) if(!CdtVarPathEntryVariableManager.isPathEntryVariable(macro, fCfg, fMngr))

View file

@ -627,6 +627,7 @@ public final class PathSettingsContainer {
fDirectParentContainer = parent; fDirectParentContainer = parent;
} }
@Override
public String toString() { public String toString() {
return contributeToString(new StringBuffer(), 0).toString(); return contributeToString(new StringBuffer(), 0).toString();
} }

View file

@ -45,6 +45,7 @@ public class PatternNameMap {
return fCharArray; return fCharArray;
} }
@Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if(obj == this) if(obj == this)
return true; return true;
@ -55,10 +56,12 @@ public class PatternNameMap {
return fString.equals(((StringCharArray)obj).fString); return fString.equals(((StringCharArray)obj).fString);
} }
@Override
public int hashCode() { public int hashCode() {
return fString.hashCode(); return fString.hashCode();
} }
@Override
public String toString() { public String toString() {
return fString; return fString;
} }
@ -109,18 +112,22 @@ public class PatternNameMap {
} }
} }
@Override
public Iterator iterator() { public Iterator iterator() {
return fChildrenMap != null ? (Iterator)new Iter(fChildrenMap.entrySet().iterator()) : (Iterator)new EmptyIterator(); return fChildrenMap != null ? (Iterator)new Iter(fChildrenMap.entrySet().iterator()) : (Iterator)new EmptyIterator();
} }
@Override
public int size() { public int size() {
return PatternNameMap.this.size(); return PatternNameMap.this.size();
} }
@Override
public void clear(){ public void clear(){
PatternNameMap.this.clear(); PatternNameMap.this.clear();
} }
@Override
public boolean contains(Object o){ public boolean contains(Object o){
return fChildrenMap != null ? fChildrenMap.containsValue(o) : false; return fChildrenMap != null ? fChildrenMap.containsValue(o) : false;
} }

View file

@ -32,6 +32,7 @@ public class UserAndDiscoveredEntryDataSerializer extends CDataSerializer {
return fInstance; return fInstance;
} }
@Override
public void loadEntries(CLanguageData data, ICStorageElement el) { public void loadEntries(CLanguageData data, ICStorageElement el) {
UserAndDiscoveredEntryLanguageData lData = (UserAndDiscoveredEntryLanguageData)data; UserAndDiscoveredEntryLanguageData lData = (UserAndDiscoveredEntryLanguageData)data;
@ -86,6 +87,7 @@ public class UserAndDiscoveredEntryDataSerializer extends CDataSerializer {
} }
} }
@Override
public void storeEntries(CLanguageData data, ICStorageElement el) { public void storeEntries(CLanguageData data, ICStorageElement el) {
UserAndDiscoveredEntryLanguageData lData = (UserAndDiscoveredEntryLanguageData)data; UserAndDiscoveredEntryLanguageData lData = (UserAndDiscoveredEntryLanguageData)data;
int kinds[] = KindBasedStore.getLanguageEntryKinds(); int kinds[] = KindBasedStore.getLanguageEntryKinds();

View file

@ -28,6 +28,7 @@ public abstract class UserAndDiscoveredEntryLanguageData extends
super(id, base); super(id, base);
} }
@Override
protected void copySettingsFrom(CLanguageData data) { protected void copySettingsFrom(CLanguageData data) {
super.copySettingsFrom(data); super.copySettingsFrom(data);
@ -62,28 +63,34 @@ public abstract class UserAndDiscoveredEntryLanguageData extends
fLangData = lData; fLangData = lData;
} }
@Override
protected ICLanguageSettingEntry[] getDiscoveredEntries( protected ICLanguageSettingEntry[] getDiscoveredEntries(
Set disabledNameSet) { Set disabledNameSet) {
return fLangData.getDiscoveredEntries(getKind(), disabledNameSet); return fLangData.getDiscoveredEntries(getKind(), disabledNameSet);
} }
@Override
protected ICLanguageSettingEntry[] getUserEntries() { protected ICLanguageSettingEntry[] getUserEntries() {
return fLangData.getUserEntries(getKind()); return fLangData.getUserEntries(getKind());
} }
@Override
protected void setDisabledDiscoveredNames(Set disabledNameSet) { protected void setDisabledDiscoveredNames(Set disabledNameSet) {
fLangData.setDisabledDiscoveredNames(getKind(), disabledNameSet); fLangData.setDisabledDiscoveredNames(getKind(), disabledNameSet);
} }
@Override
protected void setUserEntries(ICLanguageSettingEntry[] entries) { protected void setUserEntries(ICLanguageSettingEntry[] entries) {
fLangData.setUserEntries(getKind(), entries); fLangData.setUserEntries(getKind(), entries);
} }
@Override
protected boolean canDisableDiscoveredEntries() { protected boolean canDisableDiscoveredEntries() {
return fLangData.canDisableDiscoveredEntries(getKind()); return fLangData.canDisableDiscoveredEntries(getKind());
} }
} }
@Override
protected AbstractEntryStorage getStorage(int kind) { protected AbstractEntryStorage getStorage(int kind) {
return new UserAndDiscoveredEntryLanguageDataEntryStorage(kind, this); return new UserAndDiscoveredEntryLanguageDataEntryStorage(kind, this);
} }
@ -146,6 +153,7 @@ public abstract class UserAndDiscoveredEntryLanguageData extends
return true; return true;
} }
@Override
protected ICLanguageSettingEntry[] getEntriesToCopy(int kind, protected ICLanguageSettingEntry[] getEntriesToCopy(int kind,
CLanguageData data) { CLanguageData data) {
return ((UserAndDiscoveredEntryLanguageData)data).getEntriesFromStore(kind); return ((UserAndDiscoveredEntryLanguageData)data).getEntriesFromStore(kind);

View file

@ -22,6 +22,7 @@ public abstract class UserAndDiscoveredEntryStorage extends AbstractEntryStorage
super(kind); super(kind);
} }
@Override
protected SettingsSet createEmptySettings(){ protected SettingsSet createEmptySettings(){
SettingsSet settings = new SettingsSet(2); SettingsSet settings = new SettingsSet(2);
SettingLevel levels[] = settings.getLevels(); SettingLevel levels[] = settings.getLevels();
@ -41,6 +42,7 @@ public abstract class UserAndDiscoveredEntryStorage extends AbstractEntryStorage
return settings; return settings;
} }
@Override
protected void obtainEntriesFromLevel(int levelNum, SettingLevel level) { protected void obtainEntriesFromLevel(int levelNum, SettingLevel level) {
switch(levelNum){ switch(levelNum){
case 0: case 0:
@ -56,6 +58,7 @@ public abstract class UserAndDiscoveredEntryStorage extends AbstractEntryStorage
} }
} }
@Override
protected void putEntriesToLevel(int levelNum, SettingLevel level) { protected void putEntriesToLevel(int levelNum, SettingLevel level) {
switch(levelNum){ switch(levelNum){
case 0: case 0:

View file

@ -83,6 +83,7 @@ public abstract class APathEntry extends PathEntry {
return this.fullCharExclusionPatterns; return this.fullCharExclusionPatterns;
} }
@Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj instanceof APathEntry) { if (obj instanceof APathEntry) {
APathEntry otherEntry = (APathEntry)obj; APathEntry otherEntry = (APathEntry)obj;
@ -130,6 +131,7 @@ public abstract class APathEntry extends PathEntry {
/* (non-Javadoc) /* (non-Javadoc)
* @see java.lang.Object#toString() * @see java.lang.Object#toString()
*/ */
@Override
public String toString() { public String toString() {
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
sb.append(super.toString()); sb.append(super.toString());

View file

@ -52,10 +52,12 @@ public class Archive extends Openable implements IArchive {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#isReadOnly() * @see org.eclipse.cdt.core.model.ICElement#isReadOnly()
*/ */
@Override
public boolean isReadOnly() { public boolean isReadOnly() {
return true; return true;
} }
@Override
public CElementInfo createElementInfo() { public CElementInfo createElementInfo() {
return new ArchiveInfo(this); return new ArchiveInfo(this);
} }
@ -64,6 +66,7 @@ public class Archive extends Openable implements IArchive {
return (ArchiveInfo)getElementInfo(); return (ArchiveInfo)getElementInfo();
} }
@Override
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource) protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource)
throws CModelException { throws CModelException {
return computeChildren(info, underlyingResource); return computeChildren(info, underlyingResource);
@ -87,6 +90,7 @@ public class Archive extends Openable implements IArchive {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class) * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
*/ */
@Override
public Object getAdapter(Class adapter) { public Object getAdapter(Class adapter) {
if (IBinaryArchive.class.equals(adapter)) { if (IBinaryArchive.class.equals(adapter)) {
return getBinaryArchive(); return getBinaryArchive();
@ -101,6 +105,7 @@ public class Archive extends Openable implements IArchive {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#exists() * @see org.eclipse.cdt.core.model.ICElement#exists()
*/ */
@Override
public boolean exists() { public boolean exists() {
IResource res = getResource(); IResource res = getResource();
if (res != null) if (res != null)
@ -111,6 +116,7 @@ public class Archive extends Openable implements IArchive {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElement#closing(java.lang.Object) * @see org.eclipse.cdt.internal.core.model.CElement#closing(java.lang.Object)
*/ */
@Override
protected void closing(Object info) throws CModelException { protected void closing(Object info) throws CModelException {
ICProject cproject = getCProject(); ICProject cproject = getCProject();
CProjectInfo pinfo = (CProjectInfo)CModelManager.getDefault().peekAtInfo(cproject); CProjectInfo pinfo = (CProjectInfo)CModelManager.getDefault().peekAtInfo(cproject);

View file

@ -37,6 +37,7 @@ public class ArchiveContainer extends Openable implements IArchiveContainer {
return a; return a;
} }
@Override
public CElementInfo createElementInfo() { public CElementInfo createElementInfo() {
return new ArchiveContainerInfo(this); return new ArchiveContainerInfo(this);
} }
@ -44,6 +45,7 @@ public class ArchiveContainer extends Openable implements IArchiveContainer {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.Openable#buildStructure(org.eclipse.cdt.internal.core.model.OpenableInfo, org.eclipse.core.runtime.IProgressMonitor, java.util.Map, org.eclipse.core.resources.IResource) * @see org.eclipse.cdt.internal.core.model.Openable#buildStructure(org.eclipse.cdt.internal.core.model.OpenableInfo, org.eclipse.core.runtime.IProgressMonitor, java.util.Map, org.eclipse.core.resources.IResource)
*/ */
@Override
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource) protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource)
throws CModelException { throws CModelException {
// this will bootstrap/start the runner for the project. // this will bootstrap/start the runner for the project.

View file

@ -34,6 +34,7 @@ public class ArchiveContainerInfo extends OpenableInfo {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElementInfo#addChild(org.eclipse.cdt.core.model.ICElement) * @see org.eclipse.cdt.internal.core.model.CElementInfo#addChild(org.eclipse.cdt.core.model.ICElement)
*/ */
@Override
protected void addChild(ICElement child) { protected void addChild(ICElement child) {
if (!includesChild(child)) { if (!includesChild(child)) {
super.addChild(child); super.addChild(child);

View file

@ -48,6 +48,7 @@ public class AsmLabel extends SourceManipulation implements IAsmLabel, IParent {
/* /*
* @see org.eclipse.cdt.internal.core.model.CElement#equals(java.lang.Object) * @see org.eclipse.cdt.internal.core.model.CElement#equals(java.lang.Object)
*/ */
@Override
public boolean equals(Object o) { public boolean equals(Object o) {
if (o instanceof AsmLabel) { if (o instanceof AsmLabel) {
return equals(this, (AsmLabel) o); return equals(this, (AsmLabel) o);

View file

@ -29,6 +29,7 @@ public class BatchOperation extends CModelOperation {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.jdt.internal.core.JavaModelOperation#executeOperation() * @see org.eclipse.jdt.internal.core.JavaModelOperation#executeOperation()
*/ */
@Override
protected void executeOperation() throws CModelException { protected void executeOperation() throws CModelException {
try { try {
this.runnable.run(fMonitor); this.runnable.run(fMonitor);
@ -49,6 +50,7 @@ public class BatchOperation extends CModelOperation {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.jdt.internal.core.JavaModelOperation#verify() * @see org.eclipse.jdt.internal.core.JavaModelOperation#verify()
*/ */
@Override
protected ICModelStatus verify() { protected ICModelStatus verify() {
// cannot verify user defined operation // cannot verify user defined operation
return CModelStatus.VERIFIED_OK; return CModelStatus.VERIFIED_OK;

View file

@ -198,6 +198,7 @@ public class Binary extends Openable implements IBinary {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class) * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
*/ */
@Override
public Object getAdapter(Class adapter) { public Object getAdapter(Class adapter) {
if (IBinaryObject.class.equals(adapter)) { if (IBinaryObject.class.equals(adapter)) {
return getBinaryObject(); return getBinaryObject();
@ -213,6 +214,7 @@ public class Binary extends Openable implements IBinary {
return fBinType; return fBinType;
} }
@Override
protected boolean hasChanged() { protected boolean hasChanged() {
long modification = getModificationStamp(); long modification = getModificationStamp();
boolean changed = modification != fLastModification; boolean changed = modification != fLastModification;
@ -241,17 +243,20 @@ public class Binary extends Openable implements IBinary {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#isReadOnly() * @see org.eclipse.cdt.core.model.ICElement#isReadOnly()
*/ */
@Override
public boolean isReadOnly() { public boolean isReadOnly() {
return true; return true;
} }
public CElementInfo createElementInfo() { @Override
public CElementInfo createElementInfo() {
return new BinaryInfo(this); return new BinaryInfo(this);
} }
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.Openable#buildStructure(org.eclipse.cdt.internal.core.model.OpenableInfo, org.eclipse.core.runtime.IProgressMonitor, java.util.Map, org.eclipse.core.resources.IResource) * @see org.eclipse.cdt.internal.core.model.Openable#buildStructure(org.eclipse.cdt.internal.core.model.OpenableInfo, org.eclipse.core.runtime.IProgressMonitor, java.util.Map, org.eclipse.core.resources.IResource)
*/ */
@Override
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource) protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource)
throws CModelException { throws CModelException {
return computeChildren(info, underlyingResource); return computeChildren(info, underlyingResource);
@ -421,6 +426,7 @@ public class Binary extends Openable implements IBinary {
* overridden from default as we do not need to create our children to provider a buffer since the buffer just contains * overridden from default as we do not need to create our children to provider a buffer since the buffer just contains
* IBinaryOject contents which is not model specific. * IBinaryOject contents which is not model specific.
*/ */
@Override
public IBuffer getBuffer() throws CModelException { public IBuffer getBuffer() throws CModelException {
if (hasBuffer()) { if (hasBuffer()) {
IBuffer buffer = getBufferManager().getBuffer(this); IBuffer buffer = getBufferManager().getBuffer(this);
@ -436,6 +442,7 @@ public class Binary extends Openable implements IBinary {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.Openable#openBuffer(org.eclipse.core.runtime.IProgressMonitor) * @see org.eclipse.cdt.internal.core.model.Openable#openBuffer(org.eclipse.core.runtime.IProgressMonitor)
*/ */
@Override
protected IBuffer openBuffer(IProgressMonitor pm) throws CModelException { protected IBuffer openBuffer(IProgressMonitor pm) throws CModelException {
// create buffer - translation units only use default buffer factory // create buffer - translation units only use default buffer factory
@ -480,6 +487,7 @@ public class Binary extends Openable implements IBinary {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.Openable#hasBuffer() * @see org.eclipse.cdt.internal.core.model.Openable#hasBuffer()
*/ */
@Override
protected boolean hasBuffer() { protected boolean hasBuffer() {
return true; return true;
} }
@ -487,6 +495,7 @@ public class Binary extends Openable implements IBinary {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#exists() * @see org.eclipse.cdt.core.model.ICElement#exists()
*/ */
@Override
public boolean exists() { public boolean exists() {
IResource res = getResource(); IResource res = getResource();
if (res != null) if (res != null)
@ -496,6 +505,7 @@ public class Binary extends Openable implements IBinary {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElement#closing(java.lang.Object) * @see org.eclipse.cdt.internal.core.model.CElement#closing(java.lang.Object)
*/ */
@Override
protected void closing(Object info) throws CModelException { protected void closing(Object info) throws CModelException {
ICProject cproject = getCProject(); ICProject cproject = getCProject();
CProjectInfo pinfo = (CProjectInfo)CModelManager.getDefault().peekAtInfo(cproject); CProjectInfo pinfo = (CProjectInfo)CModelManager.getDefault().peekAtInfo(cproject);

View file

@ -54,6 +54,7 @@ public class BinaryContainer extends Openable implements IBinaryContainer {
return b; return b;
} }
@Override
public CElementInfo createElementInfo() { public CElementInfo createElementInfo() {
return new BinaryContainerInfo(this); return new BinaryContainerInfo(this);
} }
@ -61,6 +62,7 @@ public class BinaryContainer extends Openable implements IBinaryContainer {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.Openable#buildStructure(org.eclipse.cdt.internal.core.model.OpenableInfo, org.eclipse.core.runtime.IProgressMonitor, java.util.Map, org.eclipse.core.resources.IResource) * @see org.eclipse.cdt.internal.core.model.Openable#buildStructure(org.eclipse.cdt.internal.core.model.OpenableInfo, org.eclipse.core.runtime.IProgressMonitor, java.util.Map, org.eclipse.core.resources.IResource)
*/ */
@Override
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource) protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource)
throws CModelException { throws CModelException {
// this will bootstrap/start the runner for the project. // this will bootstrap/start the runner for the project.

View file

@ -28,6 +28,7 @@ public class BinaryContainerInfo extends OpenableInfo {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElementInfo#addChild(org.eclipse.cdt.core.model.ICElement) * @see org.eclipse.cdt.internal.core.model.CElementInfo#addChild(org.eclipse.cdt.core.model.ICElement)
*/ */
@Override
protected void addChild(ICElement child) { protected void addChild(ICElement child) {
if (!includesChild(child)) { if (!includesChild(child)) {
super.addChild(child); super.addChild(child);

View file

@ -155,6 +155,7 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElement#createElementInfo() * @see org.eclipse.cdt.internal.core.model.CElement#createElementInfo()
*/ */
@Override
protected CElementInfo createElementInfo() { protected CElementInfo createElementInfo() {
return new CElementInfo(this); return new CElementInfo(this);
} }
@ -162,6 +163,7 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#getResource() * @see org.eclipse.cdt.core.model.ICElement#getResource()
*/ */
@Override
public IResource getResource() { public IResource getResource() {
return null; return null;
} }
@ -247,6 +249,7 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElement#generateInfos(java.lang.Object, java.util.Map, org.eclipse.core.runtime.IProgressMonitor) * @see org.eclipse.cdt.internal.core.model.CElement#generateInfos(java.lang.Object, java.util.Map, org.eclipse.core.runtime.IProgressMonitor)
*/ */
@Override
protected void generateInfos(Object info, Map newElements, IProgressMonitor monitor) throws CModelException { protected void generateInfos(Object info, Map newElements, IProgressMonitor monitor) throws CModelException {
} }

View file

@ -65,6 +65,7 @@ public class BinaryModule extends Parent implements IBinaryModule {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#getResource() * @see org.eclipse.cdt.core.model.ICElement#getResource()
*/ */
@Override
public IResource getResource() { public IResource getResource() {
IWorkspaceRoot root = getCModel().getWorkspace().getRoot(); IWorkspaceRoot root = getCModel().getWorkspace().getRoot();
IPath path = getPath(); IPath path = getPath();
@ -77,6 +78,7 @@ public class BinaryModule extends Parent implements IBinaryModule {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#isReadOnly() * @see org.eclipse.cdt.core.model.ICElement#isReadOnly()
*/ */
@Override
public boolean isReadOnly() { public boolean isReadOnly() {
return true; return true;
} }
@ -84,6 +86,7 @@ public class BinaryModule extends Parent implements IBinaryModule {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElement#createElementInfo() * @see org.eclipse.cdt.internal.core.model.CElement#createElementInfo()
*/ */
@Override
protected CElementInfo createElementInfo() { protected CElementInfo createElementInfo() {
return new CElementInfo(this); return new CElementInfo(this);
} }
@ -91,6 +94,7 @@ public class BinaryModule extends Parent implements IBinaryModule {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#getPath() * @see org.eclipse.cdt.core.model.ICElement#getPath()
*/ */
@Override
public IPath getPath() { public IPath getPath() {
return fPath; return fPath;
} }
@ -98,6 +102,7 @@ public class BinaryModule extends Parent implements IBinaryModule {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElement#generateInfos(java.lang.Object, java.util.Map, org.eclipse.core.runtime.IProgressMonitor) * @see org.eclipse.cdt.internal.core.model.CElement#generateInfos(java.lang.Object, java.util.Map, org.eclipse.core.runtime.IProgressMonitor)
*/ */
@Override
protected void generateInfos(Object info, Map newElements, IProgressMonitor monitor) throws CModelException { protected void generateInfos(Object info, Map newElements, IProgressMonitor monitor) throws CModelException {
newElements.put(this, info); newElements.put(this, info);
} }

View file

@ -50,10 +50,12 @@ public class BinaryRunner {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CModelOperation#isReadOnly() * @see org.eclipse.cdt.internal.core.model.CModelOperation#isReadOnly()
*/ */
@Override
public boolean isReadOnly() { public boolean isReadOnly() {
return true; return true;
} }
@Override
protected void executeOperation() throws CModelException { protected void executeOperation() throws CModelException {
ICProject cproj = (ICProject)getElementsToProcess()[0]; ICProject cproj = (ICProject)getElementsToProcess()[0];
IParent[] containers = new IParent[2]; IParent[] containers = new IParent[2];
@ -94,6 +96,7 @@ public class BinaryRunner {
String taskName = CCorePlugin.getResourceString("CoreModel.BinaryRunner.Binary_Search_Thread"); //$NON-NLS-1$ String taskName = CCorePlugin.getResourceString("CoreModel.BinaryRunner.Binary_Search_Thread"); //$NON-NLS-1$
taskName += " (" + cproject.getElementName() + ")"; //$NON-NLS-1$//$NON-NLS-2$ taskName += " (" + cproject.getElementName() + ")"; //$NON-NLS-1$//$NON-NLS-2$
Job job= new Job(taskName) { Job job= new Job(taskName) {
@Override
protected IStatus run(IProgressMonitor monitor) { protected IStatus run(IProgressMonitor monitor) {
IStatus status = Status.OK_STATUS; IStatus status = Status.OK_STATUS;
try { try {

View file

@ -426,6 +426,7 @@ public class Buffer implements IBuffer {
} }
} }
@Override
public String toString() { public String toString() {
StringBuffer buffer = new StringBuffer(); StringBuffer buffer = new StringBuffer();
buffer.append("Owner: " + ((CElement)this.owner).toString()); //$NON-NLS-1$ buffer.append("Owner: " + ((CElement)this.owner).toString()); //$NON-NLS-1$

View file

@ -52,6 +52,7 @@ public class BufferManager implements IBufferFactory {
* <p>NOTE: this triggers an external removal of this buffer * <p>NOTE: this triggers an external removal of this buffer
* by closing the buffer. * by closing the buffer.
*/ */
@Override
protected boolean close(LRUCacheEntry entry) { protected boolean close(LRUCacheEntry entry) {
IBuffer buffer= (IBuffer) entry._fValue; IBuffer buffer= (IBuffer) entry._fValue;
if (buffer.hasUnsavedChanges()) { if (buffer.hasUnsavedChanges()) {
@ -63,6 +64,7 @@ public class BufferManager implements IBufferFactory {
/** /**
* Returns a new instance of the reciever. * Returns a new instance of the reciever.
*/ */
@Override
protected LRUCache newInstance(int size, int overflow) { protected LRUCache newInstance(int size, int overflow) {
return new BufferCache(size, overflow); return new BufferCache(size, overflow);
} }

View file

@ -159,11 +159,13 @@ public class CContainer extends Openable implements ICContainer {
return (IContainer) getResource(); return (IContainer) getResource();
} }
@Override
protected CElementInfo createElementInfo() { protected CElementInfo createElementInfo() {
return new CContainerInfo(this); return new CContainerInfo(this);
} }
// CHECKPOINT: folders will return the hash code of their path // CHECKPOINT: folders will return the hash code of their path
@Override
public int hashCode() { public int hashCode() {
return getPath().hashCode(); return getPath().hashCode();
} }
@ -171,6 +173,7 @@ public class CContainer extends Openable implements ICContainer {
/** /**
* @see Openable * @see Openable
*/ */
@Override
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource) protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource)
throws CModelException { throws CModelException {
boolean validInfo = false; boolean validInfo = false;

View file

@ -73,6 +73,7 @@ public abstract class CElement extends PlatformObject implements ICElement {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.core.runtime.PlatformObject#getAdapter(java.lang.Class) * @see org.eclipse.core.runtime.PlatformObject#getAdapter(java.lang.Class)
*/ */
@Override
public Object getAdapter(Class adapter) { public Object getAdapter(Class adapter) {
// handle all kinds of resources // handle all kinds of resources
if (IResource.class.isAssignableFrom(adapter)) { if (IResource.class.isAssignableFrom(adapter)) {
@ -260,6 +261,7 @@ public abstract class CElement extends PlatformObject implements ICElement {
/** /**
* Tests if an element has the same name, type and an equal parent. * Tests if an element has the same name, type and an equal parent.
*/ */
@Override
public boolean equals (Object o) { public boolean equals (Object o) {
if (this == o) if (this == o)
return true; return true;
@ -304,6 +306,7 @@ public abstract class CElement extends PlatformObject implements ICElement {
return info; return info;
} }
@Override
public String toString() { public String toString() {
return getElementName(); return getElementName();
} }
@ -488,6 +491,7 @@ public abstract class CElement extends PlatformObject implements ICElement {
*/ */
// CHECKPOINT: making not equal objects seem equal // CHECKPOINT: making not equal objects seem equal
// What elements should override this? // What elements should override this?
@Override
public int hashCode() { public int hashCode() {
return hashCode(this); return hashCode(this);
} }

View file

@ -764,6 +764,7 @@ public class CElementDelta implements ICElementDelta {
* Returns a string representation of this delta's * Returns a string representation of this delta's
* structure suitable for debug purposes. * structure suitable for debug purposes.
*/ */
@Override
public String toString() { public String toString() {
return toDebugString(0); return toDebugString(0);
} }

View file

@ -368,6 +368,7 @@ private void removed(ICElement element) {
private void removeElementInfo(ICElement element) { private void removeElementInfo(ICElement element) {
this.infos.remove(element); this.infos.remove(element);
} }
@Override
public String toString() { public String toString() {
StringBuffer buffer = new StringBuffer(); StringBuffer buffer = new StringBuffer();
buffer.append("Built delta:\n"); //$NON-NLS-1$ buffer.append("Built delta:\n"); //$NON-NLS-1$

View file

@ -144,6 +144,7 @@ class CElementInfo {
fIsStructureKnown = newIsStructureKnown; fIsStructureKnown = newIsStructureKnown;
} }
@Override
public Object clone() { public Object clone() {
try { try {
return super.clone(); return super.clone();

View file

@ -41,6 +41,7 @@ public class CModel extends Openable implements ICModel {
super (null, root, ICElement.C_MODEL); super (null, root, ICElement.C_MODEL);
} }
@Override
public boolean equals(Object o) { public boolean equals(Object o) {
if (!(o instanceof CModel)) { if (!(o instanceof CModel)) {
return false; return false;
@ -160,11 +161,13 @@ public class CModel extends Openable implements ICModel {
op.runOperation(monitor); op.runOperation(monitor);
} }
@Override
protected CElementInfo createElementInfo () { protected CElementInfo createElementInfo () {
return new CModelInfo(this); return new CModelInfo(this);
} }
// CHECKPOINT: Roots will return the hashcode of their resource // CHECKPOINT: Roots will return the hashcode of their resource
@Override
public int hashCode() { public int hashCode() {
return resource.hashCode(); return resource.hashCode();
} }
@ -184,6 +187,7 @@ public class CModel extends Openable implements ICModel {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.Openable#buildStructure(org.eclipse.cdt.internal.core.model.OpenableInfo, org.eclipse.core.runtime.IProgressMonitor, java.util.Map, org.eclipse.core.resources.IResource) * @see org.eclipse.cdt.internal.core.model.Openable#buildStructure(org.eclipse.cdt.internal.core.model.OpenableInfo, org.eclipse.core.runtime.IProgressMonitor, java.util.Map, org.eclipse.core.resources.IResource)
*/ */
@Override
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource) throws CModelException { protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource) throws CModelException {
boolean validInfo = false; boolean validInfo = false;
try { try {

View file

@ -152,6 +152,7 @@ public class CModelStatus extends Status implements ICModelStatus, ICModelStatus
/** /**
* @see IStatus * @see IStatus
*/ */
@Override
public IStatus[] getChildren() { public IStatus[] getChildren() {
return fChildren; return fChildren;
} }
@ -166,6 +167,7 @@ public class CModelStatus extends Status implements ICModelStatus, ICModelStatus
/** /**
* Returns the message that is relevant to the code of this status. * Returns the message that is relevant to the code of this status.
*/ */
@Override
public String getMessage() { public String getMessage() {
Throwable exception = getException(); Throwable exception = getException();
if (isMultiStatus()) { if (isMultiStatus()) {
@ -314,6 +316,7 @@ public class CModelStatus extends Status implements ICModelStatus, ICModelStatus
/** /**
* @see IStatus * @see IStatus
*/ */
@Override
public int getSeverity() { public int getSeverity() {
if (fChildren == fgEmptyChildren) if (fChildren == fgEmptyChildren)
return super.getSeverity(); return super.getSeverity();
@ -354,6 +357,7 @@ public class CModelStatus extends Status implements ICModelStatus, ICModelStatus
/** /**
* @see IStatus * @see IStatus
*/ */
@Override
public boolean isMultiStatus() { public boolean isMultiStatus() {
return fChildren != fgEmptyChildren; return fChildren != fgEmptyChildren;
} }
@ -361,6 +365,7 @@ public class CModelStatus extends Status implements ICModelStatus, ICModelStatus
/** /**
* @see ICModelStatus * @see ICModelStatus
*/ */
@Override
public boolean isOK() { public boolean isOK() {
return getCode() == OK; return getCode() == OK;
} }
@ -368,6 +373,7 @@ public class CModelStatus extends Status implements ICModelStatus, ICModelStatus
/** /**
* @see IStatus#matches * @see IStatus#matches
*/ */
@Override
public boolean matches(int mask) { public boolean matches(int mask) {
if (!isMultiStatus()) { if (!isMultiStatus()) {
return matches(this, mask); return matches(this, mask);
@ -417,6 +423,7 @@ public class CModelStatus extends Status implements ICModelStatus, ICModelStatus
* Returns a printable representation of this exception for debugging * Returns a printable representation of this exception for debugging
* purposes. * purposes.
*/ */
@Override
public String toString() { public String toString() {
if (this == VERIFIED_OK) { if (this == VERIFIED_OK) {
return "CModelStatus[OK]"; //$NON-NLS-1$ return "CModelStatus[OK]"; //$NON-NLS-1$

View file

@ -130,6 +130,7 @@ public class CProject extends Openable implements ICProject {
* *
* @see CElement#equals(Object) * @see CElement#equals(Object)
*/ */
@Override
public boolean equals(Object o) { public boolean equals(Object o) {
if (this == o) if (this == o)
@ -142,11 +143,13 @@ public class CProject extends Openable implements ICProject {
return getProject().equals(other.getProject()); return getProject().equals(other.getProject());
} }
@Override
protected CElementInfo createElementInfo() { protected CElementInfo createElementInfo() {
return new CProjectInfo(this); return new CProjectInfo(this);
} }
// CHECKPOINT: CProjects will return the hash code of their underlying IProject // CHECKPOINT: CProjects will return the hash code of their underlying IProject
@Override
public int hashCode() { public int hashCode() {
return getProject().hashCode(); return getProject().hashCode();
} }
@ -574,6 +577,7 @@ public class CProject extends Openable implements ICProject {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.Openable#buildStructure(org.eclipse.cdt.internal.core.model.OpenableInfo, org.eclipse.core.runtime.IProgressMonitor, java.util.Map, org.eclipse.core.resources.IResource) * @see org.eclipse.cdt.internal.core.model.Openable#buildStructure(org.eclipse.cdt.internal.core.model.OpenableInfo, org.eclipse.core.runtime.IProgressMonitor, java.util.Map, org.eclipse.core.resources.IResource)
*/ */
@Override
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm,
Map newElements, IResource underlyingResource) Map newElements, IResource underlyingResource)
throws CModelException { throws CModelException {
@ -701,6 +705,7 @@ public class CProject extends Openable implements ICProject {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#exists() * @see org.eclipse.cdt.core.model.ICElement#exists()
*/ */
@Override
public boolean exists() { public boolean exists() {
if (!isCProject()) { if (!isCProject()) {
return false; return false;
@ -718,6 +723,7 @@ public class CProject extends Openable implements ICProject {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElement#closing(java.lang.Object) * @see org.eclipse.cdt.internal.core.model.CElement#closing(java.lang.Object)
*/ */
@Override
protected void closing(Object info) throws CModelException { protected void closing(Object info) throws CModelException {
if (info instanceof CProjectInfo) { if (info instanceof CProjectInfo) {
CProjectInfo pinfo = (CProjectInfo)info; CProjectInfo pinfo = (CProjectInfo)info;

View file

@ -116,6 +116,7 @@ public class CShiftData implements ICElementDelta {
return null; return null;
} }
@Override
public String toString() { public String toString() {
return ("CShiftData: offset=" + offset + ", size=" + size + ", lines=" + lines); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$ return ("CShiftData: offset=" + offset + ", size=" + size + ", lines=" + lines); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
} }

View file

@ -13,7 +13,6 @@
package org.eclipse.cdt.internal.core.model; package org.eclipse.cdt.internal.core.model;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.model.CModelException; import org.eclipse.cdt.core.model.CModelException;
import org.eclipse.cdt.core.model.IBuffer; import org.eclipse.cdt.core.model.IBuffer;
import org.eclipse.cdt.core.model.ICElement; import org.eclipse.cdt.core.model.ICElement;
@ -63,6 +62,7 @@ public class CommitWorkingCopyOperation extends CModelOperation {
super(new ICElement[] {element}, force); super(new ICElement[] {element}, force);
} }
@Override
public ISchedulingRule getSchedulingRule() { public ISchedulingRule getSchedulingRule() {
IResource resource = getElementToProcess().getResource(); IResource resource = getElementToProcess().getResource();
IWorkspace workspace = resource.getWorkspace(); IWorkspace workspace = resource.getWorkspace();
@ -75,6 +75,7 @@ public class CommitWorkingCopyOperation extends CModelOperation {
/** /**
* @see org.eclipse.cdt.internal.core.model.CModelOperation#executeOperation() * @see org.eclipse.cdt.internal.core.model.CModelOperation#executeOperation()
*/ */
@Override
protected void executeOperation() throws CModelException { protected void executeOperation() throws CModelException {
try { try {
beginTask(CoreModelMessages.getString("workingCopy.commit"), 2); //$NON-NLS-1$ beginTask(CoreModelMessages.getString("workingCopy.commit"), 2); //$NON-NLS-1$
@ -171,6 +172,7 @@ public class CommitWorkingCopyOperation extends CModelOperation {
* </ul> * </ul>
*/ */
@Override
public ICModelStatus verify() { public ICModelStatus verify() {
IWorkingCopy wc = (IWorkingCopy) getElementToProcess(); IWorkingCopy wc = (IWorkingCopy) getElementToProcess();

View file

@ -20,6 +20,7 @@ public class ContainerEntry extends PathEntry implements IContainerEntry {
super(IPathEntry.CDT_CONTAINER, path, isExported); super(IPathEntry.CDT_CONTAINER, path, isExported);
} }
@Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj instanceof IContainerEntry) { if (obj instanceof IContainerEntry) {
IContainerEntry container = (IContainerEntry)obj; IContainerEntry container = (IContainerEntry)obj;

View file

@ -56,10 +56,12 @@ public class ContentTypeProcessor extends CModelOperation {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CModelOperation#isReadOnly() * @see org.eclipse.cdt.internal.core.model.CModelOperation#isReadOnly()
*/ */
@Override
public boolean isReadOnly() { public boolean isReadOnly() {
return true; return true;
} }
@Override
protected void executeOperation() throws CModelException { protected void executeOperation() throws CModelException {
for (int i = 0; i < fEvents.length; ++i) { for (int i = 0; i < fEvents.length; ++i) {
IContentType contentType = fEvents[i].getContentType(); IContentType contentType = fEvents[i].getContentType();

View file

@ -79,6 +79,7 @@ public class CopyElementsOperation extends MultiOperation {
* Returns the <code>String</code> to use as the main task name * Returns the <code>String</code> to use as the main task name
* for progress monitoring. * for progress monitoring.
*/ */
@Override
protected String getMainTaskName() { protected String getMainTaskName() {
return CoreModelMessages.getString("operation.copyElementProgress"); //$NON-NLS-1$ return CoreModelMessages.getString("operation.copyElementProgress"); //$NON-NLS-1$
} }
@ -153,6 +154,7 @@ public class CopyElementsOperation extends MultiOperation {
* @exception CModelException if the operation is unable to * @exception CModelException if the operation is unable to
* be completed * be completed
*/ */
@Override
protected void processElement(ICElement element) throws CModelException { protected void processElement(ICElement element) throws CModelException {
CModelOperation op = getNestedOperation(element); CModelOperation op = getNestedOperation(element);
if (op == null) { if (op == null) {
@ -215,6 +217,7 @@ public class CopyElementsOperation extends MultiOperation {
* does not match the number of elements that were supplied. * does not match the number of elements that were supplied.
* </ul> * </ul>
*/ */
@Override
protected ICModelStatus verify() { protected ICModelStatus verify() {
ICModelStatus status = super.verify(); ICModelStatus status = super.verify();
if (!status.isOK()) { if (!status.isOK()) {
@ -249,6 +252,7 @@ public class CopyElementsOperation extends MultiOperation {
* </ul> * </ul>
*/ */
@Override
protected void verify(ICElement element) throws CModelException { protected void verify(ICElement element) throws CModelException {
if (element == null || !element.exists()) if (element == null || !element.exists())
error(ICModelStatusConstants.ELEMENT_DOES_NOT_EXIST, element); error(ICModelStatusConstants.ELEMENT_DOES_NOT_EXIST, element);

View file

@ -83,6 +83,7 @@ public class CopyResourceElementsOperation extends MultiOperation {
/** /**
* @see MultiOperation * @see MultiOperation
*/ */
@Override
protected String getMainTaskName() { protected String getMainTaskName() {
return CoreModelMessages.getString("operation.copyResourceProgress"); //$NON-NLS-1$ return CoreModelMessages.getString("operation.copyResourceProgress"); //$NON-NLS-1$
} }
@ -189,6 +190,7 @@ public class CopyResourceElementsOperation extends MultiOperation {
* <code>processPackageFragmentResource</code>, depending on the type of * <code>processPackageFragmentResource</code>, depending on the type of
* <code>element</code>. * <code>element</code>.
*/ */
@Override
protected void processElement(ICElement element) throws CModelException { protected void processElement(ICElement element) throws CModelException {
ICElement dest = getDestinationParent(element); ICElement dest = getDestinationParent(element);
if (element.getElementType() <= ICElement.C_UNIT) { if (element.getElementType() <= ICElement.C_UNIT) {
@ -204,6 +206,7 @@ public class CopyResourceElementsOperation extends MultiOperation {
* Overridden to allow special processing of <code>CElementDelta</code>s * Overridden to allow special processing of <code>CElementDelta</code>s
* and <code>fResultElements</code>. * and <code>fResultElements</code>.
*/ */
@Override
protected void processElements() throws CModelException { protected void processElements() throws CModelException {
fCreatedElements = new ArrayList(fElementsToProcess.length); fCreatedElements = new ArrayList(fElementsToProcess.length);
try { try {
@ -225,6 +228,7 @@ public class CopyResourceElementsOperation extends MultiOperation {
* does not match the number of elements that were supplied. * does not match the number of elements that were supplied.
* </ul> * </ul>
*/ */
@Override
protected ICModelStatus verify() { protected ICModelStatus verify() {
ICModelStatus status = super.verify(); ICModelStatus status = super.verify();
if (!status.isOK()) { if (!status.isOK()) {
@ -240,6 +244,7 @@ public class CopyResourceElementsOperation extends MultiOperation {
/** /**
* @see MultiOperation * @see MultiOperation
*/ */
@Override
protected void verify(ICElement element) throws CModelException { protected void verify(ICElement element) throws CModelException {
if (element == null || !element.exists()) if (element == null || !element.exists())
error(ICModelStatusConstants.ELEMENT_DOES_NOT_EXIST, element); error(ICModelStatusConstants.ELEMENT_DOES_NOT_EXIST, element);

View file

@ -103,6 +103,7 @@ public abstract class CreateElementInTUOperation extends CModelOperation {
/** /**
* Only allow cancelling if this operation is not nested. * Only allow cancelling if this operation is not nested.
*/ */
@Override
protected void checkCanceled() { protected void checkCanceled() {
if (!fNested) { if (!fNested) {
super.checkCanceled(); super.checkCanceled();
@ -135,6 +136,7 @@ public abstract class CreateElementInTUOperation extends CModelOperation {
* *
* @exception CModelException if the operation is unable to complete * @exception CModelException if the operation is unable to complete
*/ */
@Override
protected void executeOperation() throws CModelException { protected void executeOperation() throws CModelException {
beginTask(getMainTaskName(), getMainAmountOfWork()); beginTask(getMainTaskName(), getMainAmountOfWork());
CElementDelta delta = newCElementDelta(); CElementDelta delta = newCElementDelta();
@ -225,6 +227,7 @@ public abstract class CreateElementInTUOperation extends CModelOperation {
/** /**
* Returns the elements created by this operation. * Returns the elements created by this operation.
*/ */
@Override
public ICElement[] getResultElements() { public ICElement[] getResultElements() {
return fResultElements; return fResultElements;
} }
@ -306,6 +309,7 @@ public abstract class CreateElementInTUOperation extends CModelOperation {
* @see ICModelStatus * @see ICModelStatus
* @see CNamingConventions * @see CNamingConventions
*/ */
@Override
public ICModelStatus verify() { public ICModelStatus verify() {
if (getParentElement() == null) { if (getParentElement() == null) {
return new CModelStatus(ICModelStatusConstants.NO_ELEMENTS_TO_PROCESS); return new CModelStatus(ICModelStatusConstants.NO_ELEMENTS_TO_PROCESS);

View file

@ -47,6 +47,7 @@ public class CreateFieldOperation extends CreateMemberOperation {
/** /**
* @see CreateElementInCUOperation#getMainTaskName * @see CreateElementInCUOperation#getMainTaskName
*/ */
@Override
public String getMainTaskName(){ public String getMainTaskName(){
return "operation.createFieldProgress"; //$NON-NLS-1$ return "operation.createFieldProgress"; //$NON-NLS-1$
} }
@ -56,6 +57,7 @@ public class CreateFieldOperation extends CreateMemberOperation {
* declaration, or as the first member in the type if there are no * declaration, or as the first member in the type if there are no
* field declarations. * field declarations.
*/ */
@Override
protected void initializeDefaultPosition() { protected void initializeDefaultPosition() {
IStructure parentElement = getStructure(); IStructure parentElement = getStructure();
try { try {
@ -75,6 +77,7 @@ public class CreateFieldOperation extends CreateMemberOperation {
/** /**
* @see CreateElementInCUOperation#generateResultHandle * @see CreateElementInCUOperation#generateResultHandle
*/ */
@Override
protected ICElement generateResultHandle() { protected ICElement generateResultHandle() {
return getStructure().getField(fName); return getStructure().getField(fName);
} }
@ -82,6 +85,7 @@ public class CreateFieldOperation extends CreateMemberOperation {
/** /**
* @see CreateTypeMemberOperation#verifyNameCollision * @see CreateTypeMemberOperation#verifyNameCollision
*/ */
@Override
protected ICModelStatus verifyNameCollision() { protected ICModelStatus verifyNameCollision() {
return super.verifyNameCollision(); return super.verifyNameCollision();
} }
@ -89,6 +93,7 @@ public class CreateFieldOperation extends CreateMemberOperation {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CreateElementInTUOperation#generateElement(org.eclipse.cdt.core.model.ITranslationUnit) * @see org.eclipse.cdt.internal.core.model.CreateElementInTUOperation#generateElement(org.eclipse.cdt.core.model.ITranslationUnit)
*/ */
@Override
protected String generateElement(ITranslationUnit unit) throws CModelException { protected String generateElement(ITranslationUnit unit) throws CModelException {
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
sb.append(fReturnType).append(' '); sb.append(fReturnType).append(' ');

View file

@ -58,6 +58,7 @@ public class CreateIncludeOperation extends CreateElementInTUOperation {
/** /**
* @see CreateElementInCUOperation#generateResultHandle * @see CreateElementInCUOperation#generateResultHandle
*/ */
@Override
protected ICElement generateResultHandle() { protected ICElement generateResultHandle() {
return getTranslationUnit().getInclude(fIncludeName); return getTranslationUnit().getInclude(fIncludeName);
} }
@ -65,6 +66,7 @@ public class CreateIncludeOperation extends CreateElementInTUOperation {
/** /**
* @see CreateElementInCUOperation#getMainTaskName * @see CreateElementInCUOperation#getMainTaskName
*/ */
@Override
public String getMainTaskName(){ public String getMainTaskName(){
return "operation.createIncludeProgress"; //$NON-NLS-1$ return "operation.createIncludeProgress"; //$NON-NLS-1$
} }
@ -75,6 +77,7 @@ public class CreateIncludeOperation extends CreateElementInTUOperation {
* </ul> * </ul>
* if no include * if no include
*/ */
@Override
protected void initializeDefaultPosition() { protected void initializeDefaultPosition() {
try { try {
ITranslationUnit cu = getTranslationUnit(); ITranslationUnit cu = getTranslationUnit();
@ -96,6 +99,7 @@ public class CreateIncludeOperation extends CreateElementInTUOperation {
* @see ICModelStatus * @see ICModelStatus
* @see CNamingConventions * @see CNamingConventions
*/ */
@Override
public ICModelStatus verify() { public ICModelStatus verify() {
ICModelStatus status = super.verify(); ICModelStatus status = super.verify();
if (!status.isOK()) { if (!status.isOK()) {
@ -111,6 +115,7 @@ public class CreateIncludeOperation extends CreateElementInTUOperation {
/* /*
* TODO: Use the ASTRewrite once it is available. * TODO: Use the ASTRewrite once it is available.
*/ */
@Override
protected String generateElement(ITranslationUnit unit) throws CModelException { protected String generateElement(ITranslationUnit unit) throws CModelException {
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
sb.append("#include "); //$NON-NLS-1$; sb.append("#include "); //$NON-NLS-1$;

View file

@ -60,6 +60,7 @@ public abstract class CreateMemberOperation extends CreateElementInTUOperation {
* create this new element. * create this new element.
* Used by the <code>CopyElementsOperation</code> for renaming * Used by the <code>CopyElementsOperation</code> for renaming
*/ */
@Override
protected void setAlteredName(String newName) { protected void setAlteredName(String newName) {
fAlteredName = newName; fAlteredName = newName;
} }
@ -72,6 +73,7 @@ public abstract class CreateMemberOperation extends CreateElementInTUOperation {
* <li>NAME_COLLISION - A name collision occurred in the destination * <li>NAME_COLLISION - A name collision occurred in the destination
* </ul> * </ul>
*/ */
@Override
public ICModelStatus verify() { public ICModelStatus verify() {
ICModelStatus status = super.verify(); ICModelStatus status = super.verify();
if (!status.isOK()) { if (!status.isOK()) {

View file

@ -52,6 +52,7 @@ public class CreateMethodOperation extends CreateMemberOperation {
/** /**
* @see CreateElementInCUOperation#generateResultHandle * @see CreateElementInCUOperation#generateResultHandle
*/ */
@Override
protected ICElement generateResultHandle() { protected ICElement generateResultHandle() {
//TODO: what about collisions, we need the signature here. //TODO: what about collisions, we need the signature here.
return getStructure().getMethod(fName); return getStructure().getMethod(fName);
@ -60,6 +61,7 @@ public class CreateMethodOperation extends CreateMemberOperation {
/** /**
* @see CreateElementInCUOperation#getMainTaskName * @see CreateElementInCUOperation#getMainTaskName
*/ */
@Override
public String getMainTaskName(){ public String getMainTaskName(){
return "operation.createMethodProgress"; //$NON-NLS-1$ return "operation.createMethodProgress"; //$NON-NLS-1$
} }
@ -67,6 +69,7 @@ public class CreateMethodOperation extends CreateMemberOperation {
/** /**
* @see CreateTypeMemberOperation#verifyNameCollision * @see CreateTypeMemberOperation#verifyNameCollision
*/ */
@Override
protected ICModelStatus verifyNameCollision() { protected ICModelStatus verifyNameCollision() {
ICModelStatus status = super.verify(); ICModelStatus status = super.verify();
if (!status.isOK()) { if (!status.isOK()) {
@ -90,6 +93,7 @@ public class CreateMethodOperation extends CreateMemberOperation {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CreateElementInTUOperation#generateElement(org.eclipse.cdt.core.model.ITranslationUnit) * @see org.eclipse.cdt.internal.core.model.CreateElementInTUOperation#generateElement(org.eclipse.cdt.core.model.ITranslationUnit)
*/ */
@Override
protected String generateElement(ITranslationUnit unit) throws CModelException { protected String generateElement(ITranslationUnit unit) throws CModelException {
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
sb.append(fReturnType); sb.append(fReturnType);

View file

@ -41,6 +41,7 @@ public class CreateNamespaceOperation extends CreateElementInTUOperation {
/** /**
* @see CreateElementInCUOperation#generateResultHandle * @see CreateElementInCUOperation#generateResultHandle
*/ */
@Override
protected ICElement generateResultHandle() { protected ICElement generateResultHandle() {
return getTranslationUnit().getNamespace(fNamespace); return getTranslationUnit().getNamespace(fNamespace);
} }
@ -48,6 +49,7 @@ public class CreateNamespaceOperation extends CreateElementInTUOperation {
/** /**
* @see CreateElementInCUOperation#getMainTaskName * @see CreateElementInCUOperation#getMainTaskName
*/ */
@Override
public String getMainTaskName(){ public String getMainTaskName(){
return "operation.createNamespaceProgress"; //$NON-NLS-1$ return "operation.createNamespaceProgress"; //$NON-NLS-1$
} }
@ -57,6 +59,7 @@ public class CreateNamespaceOperation extends CreateElementInTUOperation {
* <li> after the last namespace * <li> after the last namespace
* </ul> * </ul>
*/ */
@Override
protected void initializeDefaultPosition() { protected void initializeDefaultPosition() {
try { try {
ITranslationUnit cu = getTranslationUnit(); ITranslationUnit cu = getTranslationUnit();
@ -72,6 +75,7 @@ public class CreateNamespaceOperation extends CreateElementInTUOperation {
/* /*
* TODO: Use the ASTRewrite once it is available. * TODO: Use the ASTRewrite once it is available.
*/ */
@Override
protected String generateElement(ITranslationUnit unit) throws CModelException { protected String generateElement(ITranslationUnit unit) throws CModelException {
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
sb.append("namespace "); //$NON-NLS-1$; sb.append("namespace "); //$NON-NLS-1$;

View file

@ -50,6 +50,7 @@ public class CreateSourceReferenceOperation extends CreateElementInTUOperation {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CreateElementInTUOperation#generateElement(org.eclipse.cdt.core.model.ITranslationUnit) * @see org.eclipse.cdt.internal.core.model.CreateElementInTUOperation#generateElement(org.eclipse.cdt.core.model.ITranslationUnit)
*/ */
@Override
protected String generateElement(ITranslationUnit unit) throws CModelException { protected String generateElement(ITranslationUnit unit) throws CModelException {
return fSource; return fSource;
} }
@ -57,6 +58,7 @@ public class CreateSourceReferenceOperation extends CreateElementInTUOperation {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CreateElementInTUOperation#generateResultHandle() * @see org.eclipse.cdt.internal.core.model.CreateElementInTUOperation#generateResultHandle()
*/ */
@Override
protected ICElement generateResultHandle() { protected ICElement generateResultHandle() {
IParent parent = (IParent)getParentElement(); IParent parent = (IParent)getParentElement();
try { try {
@ -78,6 +80,7 @@ public class CreateSourceReferenceOperation extends CreateElementInTUOperation {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CreateElementInTUOperation#getMainTaskName() * @see org.eclipse.cdt.internal.core.model.CreateElementInTUOperation#getMainTaskName()
*/ */
@Override
protected String getMainTaskName() { protected String getMainTaskName() {
return "operation.createsourceReference"; //$NON-NLS-1$ return "operation.createsourceReference"; //$NON-NLS-1$
} }

View file

@ -48,6 +48,7 @@ public class CreateUsingOperation extends CreateElementInTUOperation {
/** /**
* @see CreateElementInCUOperation#generateResultHandle * @see CreateElementInCUOperation#generateResultHandle
*/ */
@Override
protected ICElement generateResultHandle() { protected ICElement generateResultHandle() {
return getTranslationUnit().getUsing(fUsingName); return getTranslationUnit().getUsing(fUsingName);
} }
@ -55,6 +56,7 @@ public class CreateUsingOperation extends CreateElementInTUOperation {
/** /**
* @see CreateElementInCUOperation#getMainTaskName * @see CreateElementInCUOperation#getMainTaskName
*/ */
@Override
public String getMainTaskName(){ public String getMainTaskName(){
return "operation.createUsingProgress"; //$NON-NLS-1$ return "operation.createUsingProgress"; //$NON-NLS-1$
} }
@ -65,6 +67,7 @@ public class CreateUsingOperation extends CreateElementInTUOperation {
* </ul> * </ul>
* if no using * if no using
*/ */
@Override
protected void initializeDefaultPosition() { protected void initializeDefaultPosition() {
try { try {
ITranslationUnit cu = getTranslationUnit(); ITranslationUnit cu = getTranslationUnit();
@ -80,6 +83,7 @@ public class CreateUsingOperation extends CreateElementInTUOperation {
/* /*
* TODO: Use the ASTRewrite once it is available. * TODO: Use the ASTRewrite once it is available.
*/ */
@Override
protected String generateElement(ITranslationUnit unit) throws CModelException { protected String generateElement(ITranslationUnit unit) throws CModelException {
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
sb.append("using "); //$NON-NLS-1$; sb.append("using "); //$NON-NLS-1$;

View file

@ -39,6 +39,7 @@ public class CreateWorkingCopyOperation extends CModelOperation {
this.factory = factory; this.factory = factory;
this.problemRequestor = problemRequestor; this.problemRequestor = problemRequestor;
} }
@Override
protected void executeOperation() throws CModelException { protected void executeOperation() throws CModelException {
ITranslationUnit tu = getTranslationUnit(); ITranslationUnit tu = getTranslationUnit();
@ -79,6 +80,7 @@ public class CreateWorkingCopyOperation extends CModelOperation {
/** /**
* @see JavaModelOperation#isReadOnly * @see JavaModelOperation#isReadOnly
*/ */
@Override
public boolean isReadOnly() { public boolean isReadOnly() {
return true; return true;
} }

View file

@ -50,6 +50,7 @@ public class DeleteElementsOperation extends MultiOperation {
/** /**
* @see MultiOperation * @see MultiOperation
*/ */
@Override
protected String getMainTaskName() { protected String getMainTaskName() {
return CoreModelMessages.getString("operation.deleteElementProgress"); //$NON-NLS-1$ return CoreModelMessages.getString("operation.deleteElementProgress"); //$NON-NLS-1$
} }
@ -88,6 +89,7 @@ public class DeleteElementsOperation extends MultiOperation {
* Deletes this element from its compilation unit. * Deletes this element from its compilation unit.
* @see MultiOperation * @see MultiOperation
*/ */
@Override
protected void processElement(ICElement element) throws CModelException { protected void processElement(ICElement element) throws CModelException {
ITranslationUnit tu = (ITranslationUnit) element; ITranslationUnit tu = (ITranslationUnit) element;
@ -117,6 +119,7 @@ public class DeleteElementsOperation extends MultiOperation {
/** /**
* @deprecated marked deprecated, future to use ASTRewrite * @deprecated marked deprecated, future to use ASTRewrite
*/ */
@Deprecated
private void replaceElementInBuffer(IBuffer buffer, ICElement elementToRemove, String cuName) throws CModelException { private void replaceElementInBuffer(IBuffer buffer, ICElement elementToRemove, String cuName) throws CModelException {
if (elementToRemove instanceof ISourceReference) { if (elementToRemove instanceof ISourceReference) {
ISourceRange range = ((ISourceReference)elementToRemove).getSourceRange(); ISourceRange range = ((ISourceReference)elementToRemove).getSourceRange();
@ -152,6 +155,7 @@ public class DeleteElementsOperation extends MultiOperation {
* This method first group the elements by <code>ICompilationUnit</code>, * This method first group the elements by <code>ICompilationUnit</code>,
* and then processes the <code>ICompilationUnit</code>. * and then processes the <code>ICompilationUnit</code>.
*/ */
@Override
protected void processElements() throws CModelException { protected void processElements() throws CModelException {
groupElements(); groupElements();
super.processElements(); super.processElements();
@ -159,6 +163,7 @@ public class DeleteElementsOperation extends MultiOperation {
/** /**
* @see MultiOperation * @see MultiOperation
*/ */
@Override
protected void verify(ICElement element) throws CModelException { protected void verify(ICElement element) throws CModelException {
ICElement[] children = ((IRegion) fChildrenToRemove.get(element)).getElements(); ICElement[] children = ((IRegion) fChildrenToRemove.get(element)).getElements();
for (int i = 0; i < children.length; i++) { for (int i = 0; i < children.length; i++) {

View file

@ -33,6 +33,7 @@ public class DeleteResourceElementsOperation extends MultiOperation {
/** /**
* @see MultiOperation * @see MultiOperation
*/ */
@Override
protected String getMainTaskName() { protected String getMainTaskName() {
return CoreModelMessages.getString("operation.deleteResourceProgress"); //$NON-NLS-1$ return CoreModelMessages.getString("operation.deleteResourceProgress"); //$NON-NLS-1$
} }
@ -41,6 +42,7 @@ public class DeleteResourceElementsOperation extends MultiOperation {
* @see MultiOperation. This method delegate to <code>deleteResource</code> or * @see MultiOperation. This method delegate to <code>deleteResource</code> or
* <code>deletePackageFragment</code> depending on the type of <code>element</code>. * <code>deletePackageFragment</code> depending on the type of <code>element</code>.
*/ */
@Override
protected void processElement(ICElement element) throws CModelException { protected void processElement(ICElement element) throws CModelException {
deleteResource(element.getResource(), fForce); deleteResource(element.getResource(), fForce);
} }
@ -48,6 +50,7 @@ public class DeleteResourceElementsOperation extends MultiOperation {
/** /**
* @see MultiOperation * @see MultiOperation
*/ */
@Override
protected void verify(ICElement element) throws CModelException { protected void verify(ICElement element) throws CModelException {
if (element == null || !element.exists()) if (element == null || !element.exists())
error(ICModelStatusConstants.ELEMENT_DOES_NOT_EXIST, element); error(ICModelStatusConstants.ELEMENT_DOES_NOT_EXIST, element);

View file

@ -29,6 +29,7 @@ public class DestroyWorkingCopyOperation extends CModelOperation {
* @exception CModelException if setting the source * @exception CModelException if setting the source
* of the original translation unit fails * of the original translation unit fails
*/ */
@Override
protected void executeOperation() throws CModelException { protected void executeOperation() throws CModelException {
WorkingCopy workingCopy = getWorkingCopy(); WorkingCopy workingCopy = getWorkingCopy();
@ -72,6 +73,7 @@ public class DestroyWorkingCopyOperation extends CModelOperation {
/** /**
* @see CModelOperation#isReadOnly * @see CModelOperation#isReadOnly
*/ */
@Override
public boolean isReadOnly() { public boolean isReadOnly() {
return true; return true;
} }

View file

@ -42,6 +42,7 @@ public class ElementCache extends OverflowingLRUCache {
* <p>NOTE: this triggers an external removal of this element * <p>NOTE: this triggers an external removal of this element
* by closing the element. * by closing the element.
*/ */
@Override
protected boolean close(LRUCacheEntry entry) { protected boolean close(LRUCacheEntry entry) {
IOpenable element = (IOpenable) entry._fKey; IOpenable element = (IOpenable) entry._fKey;
try { try {
@ -57,6 +58,7 @@ public class ElementCache extends OverflowingLRUCache {
/** /**
* Returns a new instance of the reciever. * Returns a new instance of the reciever.
*/ */
@Override
protected LRUCache newInstance(int size, int overflow) { protected LRUCache newInstance(int size, int overflow) {
return new ElementCache(size, overflow); return new ElementCache(size, overflow);
} }

View file

@ -22,6 +22,7 @@ public class Enumeration extends SourceManipulation implements IEnumeration{
super(parent, name, ICElement.C_ENUMERATION); super(parent, name, ICElement.C_ENUMERATION);
} }
@Override
protected CElementInfo createElementInfo () { protected CElementInfo createElementInfo () {
return new EnumerationInfo(this); return new EnumerationInfo(this);
} }

View file

@ -21,6 +21,7 @@ public class Enumerator extends SourceManipulation implements IEnumerator{
super(parent, name, ICElement.C_ENUMERATOR); super(parent, name, ICElement.C_ENUMERATOR);
} }
@Override
protected CElementInfo createElementInfo () { protected CElementInfo createElementInfo () {
return new SourceManipulationInfo(this); return new SourceManipulationInfo(this);
} }

View file

@ -30,34 +30,42 @@ public class Field extends VariableDeclaration implements IField {
getFieldInfo().setMutable(mutable); getFieldInfo().setMutable(mutable);
} }
@Override
public String getTypeName() throws CModelException { public String getTypeName() throws CModelException {
return getFieldInfo().getTypeName(); return getFieldInfo().getTypeName();
} }
@Override
public void setTypeName(String type) throws CModelException { public void setTypeName(String type) throws CModelException {
getFieldInfo().setTypeName(type); getFieldInfo().setTypeName(type);
} }
@Override
public boolean isConst() throws CModelException { public boolean isConst() throws CModelException {
return getFieldInfo().isConst(); return getFieldInfo().isConst();
} }
@Override
public void setConst(boolean isConst) throws CModelException { public void setConst(boolean isConst) throws CModelException {
getFieldInfo().setConst(isConst); getFieldInfo().setConst(isConst);
} }
@Override
public boolean isVolatile() throws CModelException { public boolean isVolatile() throws CModelException {
return getFieldInfo().isVolatile(); return getFieldInfo().isVolatile();
} }
@Override
public void setVolatile(boolean isVolatile) throws CModelException { public void setVolatile(boolean isVolatile) throws CModelException {
getFieldInfo().setVolatile(isVolatile); getFieldInfo().setVolatile(isVolatile);
} }
@Override
public boolean isStatic() throws CModelException { public boolean isStatic() throws CModelException {
return getFieldInfo().isStatic(); return getFieldInfo().isStatic();
} }
@Override
public void setStatic(boolean isStatic) throws CModelException { public void setStatic(boolean isStatic) throws CModelException {
getFieldInfo().setStatic(isStatic); getFieldInfo().setStatic(isStatic);
} }
@ -74,6 +82,7 @@ public class Field extends VariableDeclaration implements IField {
return (FieldInfo) getElementInfo(); return (FieldInfo) getElementInfo();
} }
@Override
protected CElementInfo createElementInfo () { protected CElementInfo createElementInfo () {
return new FieldInfo(this); return new FieldInfo(this);
} }

View file

@ -85,6 +85,7 @@ public class FieldInfo extends SourceManipulationInfo {
/** /**
* @see org.eclipse.cdt.internal.core.model.SourceManipulationInfo#hasSameContentsAs(SourceManipulationInfo) * @see org.eclipse.cdt.internal.core.model.SourceManipulationInfo#hasSameContentsAs(SourceManipulationInfo)
*/ */
@Override
public boolean hasSameContentsAs( SourceManipulationInfo info){ public boolean hasSameContentsAs( SourceManipulationInfo info){
return( super.hasSameContentsAs(info) return( super.hasSameContentsAs(info)

View file

@ -103,6 +103,7 @@ public class FunctionDeclaration extends SourceManipulation implements IFunction
return new String[] {}; return new String[] {};
} }
@Override
protected CElementInfo createElementInfo () { protected CElementInfo createElementInfo () {
return new FunctionInfo(this); return new FunctionInfo(this);
} }
@ -111,6 +112,7 @@ public class FunctionDeclaration extends SourceManipulation implements IFunction
return (FunctionInfo) getElementInfo(); return (FunctionInfo) getElementInfo();
} }
@Override
public boolean equals(Object other) { public boolean equals(Object other) {
if (other instanceof IFunctionDeclaration) { if (other instanceof IFunctionDeclaration) {
return equals(this, (IFunctionDeclaration) other); return equals(this, (IFunctionDeclaration) other);

View file

@ -57,6 +57,7 @@ class FunctionInfo extends SourceManipulationInfo {
/** /**
* @see org.eclipse.cdt.internal.core.model.SourceManipulationInfo#hasSameContentsAs(org.eclipse.cdt.internal.core.model.SourceManipulationInfo) * @see org.eclipse.cdt.internal.core.model.SourceManipulationInfo#hasSameContentsAs(org.eclipse.cdt.internal.core.model.SourceManipulationInfo)
*/ */
@Override
public boolean hasSameContentsAs(SourceManipulationInfo otherInfo) { public boolean hasSameContentsAs(SourceManipulationInfo otherInfo) {
return (super.hasSameContentsAs(otherInfo) return (super.hasSameContentsAs(otherInfo)
&& (this.isStatic() == ((FunctionInfo)otherInfo).isStatic()) && (this.isStatic() == ((FunctionInfo)otherInfo).isStatic())

View file

@ -93,6 +93,7 @@ public class Include extends SourceManipulation implements IInclude {
/* /*
* @see org.eclipse.cdt.internal.core.model.CElement#equals(java.lang.Object) * @see org.eclipse.cdt.internal.core.model.CElement#equals(java.lang.Object)
*/ */
@Override
public boolean equals(Object other) { public boolean equals(Object other) {
if (other instanceof IInclude && equals(this, (IInclude) other)) { if (other instanceof IInclude && equals(this, (IInclude) other)) {
if (other instanceof Include) { if (other instanceof Include) {

View file

@ -49,6 +49,7 @@ public class IncludeEntry extends APathEntry implements IIncludeEntry {
return isSystemInclude; return isSystemInclude;
} }
@Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj instanceof IIncludeEntry) { if (obj instanceof IIncludeEntry) {
IIncludeEntry otherEntry = (IIncludeEntry) obj; IIncludeEntry otherEntry = (IIncludeEntry) obj;
@ -116,6 +117,7 @@ public class IncludeEntry extends APathEntry implements IIncludeEntry {
/* (non-Javadoc) /* (non-Javadoc)
* @see java.lang.Object#toString() * @see java.lang.Object#toString()
*/ */
@Override
public String toString() { public String toString() {
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
sb.append(super.toString()); sb.append(super.toString());

View file

@ -40,6 +40,7 @@ public class IncludeFileEntry extends APathEntry implements IIncludeFileEntry {
return includeFilePath; return includeFilePath;
} }
@Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj instanceof IIncludeFileEntry) { if (obj instanceof IIncludeFileEntry) {
IIncludeFileEntry otherEntry = (IIncludeFileEntry) obj; IIncludeFileEntry otherEntry = (IIncludeFileEntry) obj;
@ -104,6 +105,7 @@ public class IncludeFileEntry extends APathEntry implements IIncludeFileEntry {
/* (non-Javadoc) /* (non-Javadoc)
* @see java.lang.Object#toString() * @see java.lang.Object#toString()
*/ */
@Override
public String toString() { public String toString() {
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
sb.append(super.toString()); sb.append(super.toString());

View file

@ -59,6 +59,7 @@ public class IncludeReference extends Openable implements IIncludeReference {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#getResource() * @see org.eclipse.cdt.core.model.ICElement#getResource()
*/ */
@Override
public IResource getResource() { public IResource getResource() {
return null; return null;
} }
@ -66,6 +67,7 @@ public class IncludeReference extends Openable implements IIncludeReference {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElement#createElementInfo() * @see org.eclipse.cdt.internal.core.model.CElement#createElementInfo()
*/ */
@Override
protected CElementInfo createElementInfo() { protected CElementInfo createElementInfo() {
return new OpenableInfo(this); return new OpenableInfo(this);
} }
@ -80,6 +82,7 @@ public class IncludeReference extends Openable implements IIncludeReference {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.Openable#buildStructure(org.eclipse.cdt.internal.core.model.OpenableInfo, org.eclipse.core.runtime.IProgressMonitor, java.util.Map, org.eclipse.core.resources.IResource) * @see org.eclipse.cdt.internal.core.model.Openable#buildStructure(org.eclipse.cdt.internal.core.model.OpenableInfo, org.eclipse.core.runtime.IProgressMonitor, java.util.Map, org.eclipse.core.resources.IResource)
*/ */
@Override
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource) throws CModelException { protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource) throws CModelException {
return computeChildren(info, underlyingResource); return computeChildren(info, underlyingResource);
} }
@ -144,6 +147,7 @@ public class IncludeReference extends Openable implements IIncludeReference {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#getPath() * @see org.eclipse.cdt.core.model.ICElement#getPath()
*/ */
@Override
public IPath getPath() { public IPath getPath() {
return fPath; return fPath;
} }

View file

@ -84,6 +84,7 @@ public class LanguageDescriptor extends CExtensionDescriptor implements
return ids; return ids;
} }
@Override
public String getId(){ public String getId(){
if(fId == null) if(fId == null)
fId = getConfigurationElement().getNamespaceIdentifier() + NAMESPACE_SEPARATOR + super.getId(); fId = getConfigurationElement().getNamespaceIdentifier() + NAMESPACE_SEPARATOR + super.getId();

Some files were not shown because too many files have changed in this diff Show more