1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00

Get rid of some annoying non-Javadoc comments.

Change-Id: I55b5fcce4948ec17a97a199bb75627e8e7a4c462
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
This commit is contained in:
Alexander Kurtakov 2020-02-14 22:09:19 +02:00
parent 259908f6ae
commit ae8d8b16b8
177 changed files with 190 additions and 2401 deletions

View file

@ -35,25 +35,16 @@ public class LanguageMappingChangeEvent implements ILanguageMappingChangeEvent {
private String fFileName;
private IContentType[] fContentTypes;
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ILanguageMappingsChangeEvent#getAffectedContentTypes()
*/
@Override
public IContentType[] getAffectedContentTypes() {
return fContentTypes;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ILanguageMappingsChangeEvent#getFile()
*/
@Override
public IFile getFile() {
return fFile;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ILanguageMappingsChangeEvent#getFilename()
*/
@Override
public String getFilename() {
@ -85,9 +76,6 @@ public class LanguageMappingChangeEvent implements ILanguageMappingChangeEvent {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ILanguageMappingsChangeEvent#getPath()
*/
@Override
public IPath getPath() {
@ -104,9 +92,6 @@ public class LanguageMappingChangeEvent implements ILanguageMappingChangeEvent {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ILanguageMappingsChangeEvent#getProject()
*/
@Override
public IProject getProject() {
@ -123,9 +108,6 @@ public class LanguageMappingChangeEvent implements ILanguageMappingChangeEvent {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ILanguageMappingsChangeEvent#getType()
*/
@Override
public int getType() {
return fType;

View file

@ -19,9 +19,6 @@ package org.eclipse.cdt.core.settings.model;
* See {@link ICSettingEntry#MACRO}.
*/
public interface ICMacroEntry extends ICLanguageSettingEntry {
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingEntry#getValue()
*/
@Override
String getValue();
}

View file

@ -25,15 +25,9 @@ public abstract class MultiItemsHolder implements ICMultiItemsHolder {
/** @since 5.2 */
protected static final boolean DEBUG = false;
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICMultiItemsHolder#getItems()
*/
@Override
public abstract Object[] getItems();
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICMultiItemsHolder#setStringListMode(int)
*/
/**
* This method is put here to prevent UI from
* accessing constructors in "internal" dirs.

View file

@ -29,17 +29,11 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
cfgd = cf;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#getLanguageId()
*/
@Override
public String getLanguageId() {
return items[0].getLanguageId(); // Assuming language is the same.
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#getSettingEntries(int)
*/
public ICLanguageSettingEntry[][] getSettingEntriesM(int kind) {
ICLanguageSettingEntry[][] le = new ICLanguageSettingEntry[items.length][];
for (int i = 0; i < items.length; i++)
@ -48,17 +42,11 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
// return conv2LSE(getListForDisplay(le, comp));
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#getSettingEntriesList(int)
*/
@Override
public List<ICLanguageSettingEntry> getSettingEntriesList(int kind) {
return Arrays.asList(getSettingEntries(kind));
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#getSourceContentTypeIds()
*/
public String[][] getSourceContentTypeIdsM() {
String[][] ss = new String[items.length][];
for (int i = 0; i < items.length; i++)
@ -66,9 +54,6 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
return ss;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#getSourceExtensions()
*/
public String[][] getSourceExtensionsM() {
String[][] ss = new String[items.length][];
for (int i = 0; i < items.length; i++)
@ -76,9 +61,6 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
return ss;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#getSupportedEntryKinds()
*/
@Override
public int getSupportedEntryKinds() {
int res = 0;
@ -87,52 +69,34 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
return res;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#setLanguageId(java.lang.String)
*/
@Override
public void setLanguageId(String id) {
} // Do nothing
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#setSettingEntries(int, org.eclipse.cdt.core.settings.model.ICLanguageSettingEntry[])
*/
@Override
public void setSettingEntries(int kind, ICLanguageSettingEntry[] entries) {
for (ICLanguageSetting item : items)
item.setSettingEntries(kind, entries);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#setSettingEntries(int, java.util.List)
*/
@Override
public void setSettingEntries(int kind, List<ICLanguageSettingEntry> entriesList) {
for (ICLanguageSetting item : items)
item.setSettingEntries(kind, entriesList);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#setSourceContentTypeIds(java.lang.String[])
*/
@Override
public void setSourceContentTypeIds(String[] ids) {
for (ICLanguageSetting item : items)
item.setSourceContentTypeIds(ids);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#setSourceExtensions(java.lang.String[])
*/
@Override
public void setSourceExtensions(String[] exts) {
for (ICLanguageSetting item : items)
item.setSourceExtensions(exts);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#supportsEntryKind(int)
*/
@Override
public boolean supportsEntryKind(int kind) {
for (ICLanguageSetting item : items)
@ -141,9 +105,6 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
return false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getConfiguration()
*/
@Override
public ICConfigurationDescription getConfiguration() {
if (DEBUG)
@ -151,9 +112,6 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
return null; // CFGs are different
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getId()
*/
@Override
public String getId() { // IDs are different
if (DEBUG)
@ -161,17 +119,11 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getName()
*/
@Override
public String getName() { // names are proposed to be equal
return items[0].getName();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getParent()
*/
@Override
public ICSettingContainer getParent() {
if (DEBUG)
@ -179,9 +131,6 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
return null; // Parents are different
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getType()
*/
@Override
public int getType() {
int x = items[0].getType();
@ -191,9 +140,6 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
return x;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#isReadOnly()
*/
@Override
public boolean isReadOnly() {
for (int i = 0; i < items.length; i++)
@ -202,9 +148,6 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
return true;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#isValid()
*/
@Override
public boolean isValid() {
for (int i = 0; i < items.length; i++)

View file

@ -135,11 +135,6 @@ public abstract class ResourceChangeHandlerBase implements IResourceChangeListen
}
/*
* I R e s o u r c e C h a n g e L i s t e n e r
*/
/* (non-Javadoc)
*
* Handle the renaming and deletion of project resources
* This is necessary in order to update ResourceConfigurations and AdditionalInputs
*

View file

@ -139,9 +139,6 @@ public abstract class APathEntry extends PathEntry {
return super.equals(obj);
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();

View file

@ -52,9 +52,6 @@ public class Archive extends Openable implements IArchive {
return b;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#isReadOnly()
*/
@Override
public boolean isReadOnly() {
return true;
@ -89,9 +86,6 @@ public class Archive extends Openable implements IArchive {
return true;
}
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
*/
@SuppressWarnings("rawtypes")
@Override
public Object getAdapter(Class adapter) {
@ -105,9 +99,6 @@ public class Archive extends Openable implements IArchive {
return binaryArchive;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#exists()
*/
@Override
public boolean exists() {
IResource res = getResource();
@ -116,9 +107,6 @@ public class Archive extends Openable implements IArchive {
return super.exists();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElement#closing(java.lang.Object)
*/
@Override
protected void closing(Object info) throws CModelException {
ICProject cproject = getCProject();

View file

@ -61,9 +61,6 @@ public class ArchiveContainer extends Openable implements IArchiveContainer {
return new ArchiveContainerInfo(this);
}
/* (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)
*/
@Override
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map<ICElement, CElementInfo> newElements,
IResource underlyingResource) throws CModelException {

View file

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

View file

@ -30,9 +30,6 @@ public class BatchOperation extends CModelOperation {
this.runnable = runnable;
}
/* (non-Javadoc)
* @see org.eclipse.jdt.internal.core.JavaModelOperation#executeOperation()
*/
@Override
protected void executeOperation() throws CModelException {
try {
@ -51,9 +48,6 @@ public class BatchOperation extends CModelOperation {
}
}
/* (non-Javadoc)
* @see org.eclipse.jdt.internal.core.JavaModelOperation#verify()
*/
@Override
protected ICModelStatus verify() {
// cannot verify user defined operation

View file

@ -212,9 +212,6 @@ public class Binary extends Openable implements IBinary {
return binaryObject;
}
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
*/
@SuppressWarnings("rawtypes")
@Override
public Object getAdapter(Class adapter) {
@ -258,9 +255,6 @@ public class Binary extends Openable implements IBinary {
return 0;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#isReadOnly()
*/
@Override
public boolean isReadOnly() {
return true;
@ -271,9 +265,6 @@ public class Binary extends Openable implements IBinary {
return new BinaryInfo(this);
}
/* (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)
*/
@Override
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map<ICElement, CElementInfo> newElements,
IResource underlyingResource) throws CModelException {
@ -470,9 +461,6 @@ public class Binary extends Openable implements IBinary {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.Openable#openBuffer(org.eclipse.core.runtime.IProgressMonitor)
*/
@Override
protected IBuffer openBuffer(IProgressMonitor pm) throws CModelException {
@ -515,17 +503,11 @@ public class Binary extends Openable implements IBinary {
return buffer;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.Openable#hasBuffer()
*/
@Override
protected boolean hasBuffer() {
return true;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#exists()
*/
@Override
public boolean exists() {
IResource res = getResource();
@ -534,9 +516,6 @@ public class Binary extends Openable implements IBinary {
return super.exists();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElement#closing(java.lang.Object)
*/
@Override
protected void closing(Object info) throws CModelException {
ICProject cproject = getCProject();

View file

@ -78,9 +78,6 @@ public class BinaryContainer extends Openable implements IBinaryContainer {
return new BinaryContainerInfo(this);
}
/* (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)
*/
@Override
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map<ICElement, CElementInfo> newElements,
IResource underlyingResource) throws CModelException {

View file

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

View file

@ -50,43 +50,28 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
addr = a;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ISourceManipulation#copy(org.eclipse.cdt.core.model.ICElement, org.eclipse.cdt.core.model.ICElement, java.lang.String, boolean, org.eclipse.core.runtime.IProgressMonitor)
*/
@Override
public void copy(ICElement container, ICElement sibling, String rename, boolean replace, IProgressMonitor monitor)
throws CModelException {
throw new CModelException(new CModelStatus(ICModelStatusConstants.READ_ONLY, this));
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ISourceManipulation#delete(boolean, org.eclipse.core.runtime.IProgressMonitor)
*/
@Override
public void delete(boolean force, IProgressMonitor monitor) throws CModelException {
throw new CModelException(new CModelStatus(ICModelStatusConstants.READ_ONLY, this));
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ISourceManipulation#move(org.eclipse.cdt.core.model.ICElement, org.eclipse.cdt.core.model.ICElement, java.lang.String, boolean, org.eclipse.core.runtime.IProgressMonitor)
*/
@Override
public void move(ICElement container, ICElement sibling, String rename, boolean replace, IProgressMonitor monitor)
throws CModelException {
throw new CModelException(new CModelStatus(ICModelStatusConstants.READ_ONLY, this));
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ISourceManipulation#rename(java.lang.String, boolean, org.eclipse.core.runtime.IProgressMonitor)
*/
@Override
public void rename(String name, boolean replace, IProgressMonitor monitor) throws CModelException {
throw new CModelException(new CModelStatus(ICModelStatusConstants.READ_ONLY, this));
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ISourceReference#getSource()
*/
@Override
public String getSource() throws CModelException {
ITranslationUnit tu = getTranslationUnit();
@ -104,18 +89,12 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
return ""; //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ISourceReference#getSourceRange()
*/
@Override
public ISourceRange getSourceRange() throws CModelException {
return new SourceRange(getStartPos(), getLength(), getIdStartPos(), getIdLength(), getStartLine(),
getEndLine());
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ISourceReference#getTranslationUnit()
*/
@Override
public ITranslationUnit getTranslationUnit() {
if (fSourceTU == null) {
@ -157,25 +136,16 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
return fSourceTU;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElement#createElementInfo()
*/
@Override
protected CElementInfo createElementInfo() {
return new CElementInfo(this);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#getResource()
*/
@Override
public IResource getResource() {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IBinaryElement#getAddress()
*/
@Override
public IAddress getAddress() throws CModelException {
return addr;
@ -214,9 +184,6 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
return 0;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IBinaryElement#getBinary()
*/
@Override
public IBinary getBinary() {
ICElement current = this;
@ -228,9 +195,6 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElement#generateInfos(java.lang.Object, java.util.Map, org.eclipse.core.runtime.IProgressMonitor)
*/
@Override
protected void generateInfos(CElementInfo info, Map<ICElement, CElementInfo> newElements, IProgressMonitor monitor)
throws CModelException {

View file

@ -18,87 +18,58 @@ import org.eclipse.cdt.core.IAddress;
import org.eclipse.cdt.core.model.IBinaryFunction;
import org.eclipse.cdt.core.model.ICElement;
/**
*/
public class BinaryFunction extends BinaryElement implements IBinaryFunction {
public BinaryFunction(ICElement parent, String name, IAddress a) {
super(parent, name, ICElement.C_FUNCTION, a);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IFunctionDeclaration#getExceptions()
*/
@Override
public String[] getExceptions() {
return new String[0];
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IFunctionDeclaration#getNumberOfParameters()
*/
@Override
public int getNumberOfParameters() {
// TODO Auto-generated method stub
return 0;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IFunctionDeclaration#getParameterInitializer(int)
*/
@Override
public String getParameterInitializer(int pos) {
// TODO Auto-generated method stub
return ""; //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IFunctionDeclaration#getParameterTypes()
*/
@Override
public String[] getParameterTypes() {
// TODO Auto-generated method stub
return new String[0];
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IFunctionDeclaration#getReturnType()
*/
@Override
public String getReturnType() {
// TODO Auto-generated method stub
return ""; //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IFunctionDeclaration#getSignature()
*/
@Override
public String getSignature() {
return getElementName();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IDeclaration#isStatic()
*/
@Override
public boolean isStatic() {
// TODO Auto-generated method stub
return false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IDeclaration#isConst()
*/
@Override
public boolean isConst() {
// TODO Auto-generated method stub
return false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IDeclaration#isVolatile()
*/
@Override
public boolean isVolatile() {
// TODO Auto-generated method stub

View file

@ -41,9 +41,6 @@ public class BinaryModule extends Parent implements IBinaryModule {
fPath = p;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IBinaryModule#getBinaryElements()
*/
@Override
public IBinaryElement[] getBinaryElements() throws CModelException {
ICElement[] e = getChildren();
@ -52,25 +49,16 @@ public class BinaryModule extends Parent implements IBinaryModule {
return b;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IBinaryElement#getAddress()
*/
@Override
public IAddress getAddress() throws CModelException {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IBinaryElement#getBinary()
*/
@Override
public IBinary getBinary() {
return (IBinary) getParent();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#getResource()
*/
@Override
public IResource getResource() {
IWorkspaceRoot root = getCModel().getWorkspace().getRoot();
@ -81,33 +69,21 @@ public class BinaryModule extends Parent implements IBinaryModule {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#isReadOnly()
*/
@Override
public boolean isReadOnly() {
return true;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElement#createElementInfo()
*/
@Override
protected CElementInfo createElementInfo() {
return new CElementInfo(this);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#getPath()
*/
@Override
public IPath getPath() {
return fPath;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElement#generateInfos(java.lang.Object, java.util.Map, org.eclipse.core.runtime.IProgressMonitor)
*/
@Override
protected void generateInfos(CElementInfo info, Map<ICElement, CElementInfo> newElements, IProgressMonitor monitor)
throws CModelException {

View file

@ -49,9 +49,6 @@ public class BinaryRunner {
super(cproj);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CModelOperation#isReadOnly()
*/
@Override
public boolean isReadOnly() {
return true;

View file

@ -17,62 +17,41 @@ import org.eclipse.cdt.core.IAddress;
import org.eclipse.cdt.core.model.ICElement;
import org.eclipse.cdt.core.model.IVariable;
/**
*
*/
public class BinaryVariable extends BinaryElement implements IVariable {
public BinaryVariable(ICElement parent, String name, IAddress a) {
super(parent, name, ICElement.C_VARIABLE, a);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IVariable#getInitializer()
*/
@Override
public String getInitializer() {
// TODO Auto-generated method stub
return ""; //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IVariableDeclaration#getTypeName()
*/
@Override
public String getTypeName() {
// TODO Auto-generated method stub
return ""; //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IVariableDeclaration#setTypeName(java.lang.String)
*/
@Override
public void setTypeName(String type) {
// TODO Auto-generated method stub
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IDeclaration#isStatic()
*/
@Override
public boolean isStatic() {
// TODO Auto-generated method stub
return false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IDeclaration#isConst()
*/
@Override
public boolean isConst() {
// TODO Auto-generated method stub
return false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IDeclaration#isVolatile()
*/
@Override
public boolean isVolatile() {
// TODO Auto-generated method stub

View file

@ -49,81 +49,51 @@ public class CShiftData implements ICElementDelta {
return lines;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElementDelta#getAddedChildren()
*/
@Override
public ICElementDelta[] getAddedChildren() {
return new ICElementDelta[0];
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElementDelta#getAffectedChildren()
*/
@Override
public ICElementDelta[] getAffectedChildren() {
return new ICElementDelta[0];
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElementDelta#getChangedChildren()
*/
@Override
public ICElementDelta[] getChangedChildren() {
return new ICElementDelta[0];
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElementDelta#getElement()
*/
@Override
public ICElement getElement() {
return element;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElementDelta#getFlags()
*/
@Override
public int getFlags() {
return 0;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElementDelta#getKind()
*/
@Override
public int getKind() {
return 0;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElementDelta#getMovedFromElement()
*/
@Override
public ICElement getMovedFromElement() {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElementDelta#getMovedToElement()
*/
@Override
public ICElement getMovedToElement() {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElementDelta#getRemovedChildren()
*/
@Override
public ICElementDelta[] getRemovedChildren() {
return new ICElementDelta[0];
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElementDelta#getResourceDeltas()
*/
@Override
public IResourceDelta[] getResourceDeltas() {
return null;

View file

@ -48,9 +48,6 @@ public class CreateFieldOperation extends CreateMemberOperation {
fInitializer = initializer;
}
/**
* @see CreateElementInTUOperation#getMainTaskName
*/
@Override
public String getMainTaskName() {
return CoreModelMessages.getString("operation.createFieldProgress"); //$NON-NLS-1$
@ -78,25 +75,16 @@ public class CreateFieldOperation extends CreateMemberOperation {
}
}
/**
* @see CreateElementInTUOperation#generateResultHandle
*/
@Override
protected ICElement generateResultHandle() {
return getStructure().getField(fName);
}
/**
* @see CreateMemberOperation#verifyNameCollision
*/
@Override
protected ICModelStatus verifyNameCollision() {
return super.verifyNameCollision();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CreateElementInTUOperation#generateElement(org.eclipse.cdt.core.model.ITranslationUnit)
*/
@Override
protected String generateElement(ITranslationUnit unit) throws CModelException {
StringBuilder sb = new StringBuilder();

View file

@ -51,26 +51,17 @@ public class CreateMethodOperation extends CreateMemberOperation {
fSource = source;
}
/**
* @see CreateElementInTUOperation#generateResultHandle
*/
@Override
protected ICElement generateResultHandle() {
//TODO: what about collisions, we need the signature here.
return getStructure().getMethod(fName);
}
/**
* @see CreateElementInTUOperation#getMainTaskName
*/
@Override
public String getMainTaskName() {
return CoreModelMessages.getString("operation.createMethodProgress"); //$NON-NLS-1$
}
/**
* @see CreateMemberOperation#verifyNameCollision
*/
@Override
protected ICModelStatus verifyNameCollision() {
ICModelStatus status = super.verify();
@ -92,9 +83,6 @@ public class CreateMethodOperation extends CreateMemberOperation {
return CModelStatus.VERIFIED_OK;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CreateElementInTUOperation#generateElement(org.eclipse.cdt.core.model.ITranslationUnit)
*/
@Override
protected String generateElement(ITranslationUnit unit) throws CModelException {
StringBuilder sb = new StringBuilder();

View file

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

View file

@ -378,17 +378,11 @@ public class DefaultPathEntryStore implements IPathEntryStore, ICDescriptorListe
}
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.resources.IPathEntryStore#addPathEntryStoreListener(org.eclipse.cdt.core.resources.IPathEntryStoreListener)
*/
@Override
public void addPathEntryStoreListener(IPathEntryStoreListener listener) {
listeners.add(listener);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.resources.IPathEntryStore#removePathEntryStoreListener(org.eclipse.cdt.core.resources.IPathEntryStoreListener)
*/
@Override
public void removePathEntryStoreListener(IPathEntryStoreListener listener) {
listeners.remove(listener);
@ -404,9 +398,6 @@ public class DefaultPathEntryStore implements IPathEntryStore, ICDescriptorListe
}
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.resources.IPathEntryStore#fireClosedChangedEvent(IProject)
*/
@Override
public void close() {
PathEntryStoreChangedEvent evt = new PathEntryStoreChangedEvent(this, fProject,

View file

@ -96,9 +96,6 @@ public class IncludeEntry extends APathEntry implements IIncludeEntry {
return super.equals(obj);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IIncludeEntry#getFullIncludePath()
*/
@Override
public IPath getFullIncludePath() {
final IPath inc = getIncludePath();
@ -129,9 +126,6 @@ public class IncludeEntry extends APathEntry implements IIncludeEntry {
return inc;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();

View file

@ -82,9 +82,6 @@ public class IncludeFileEntry extends APathEntry implements IIncludeFileEntry {
return super.equals(obj);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IIncludeEntry#getFullIncludePath()
*/
@Override
public IPath getFullIncludeFilePath() {
final IPath inc = getIncludeFilePath();
@ -115,9 +112,6 @@ public class IncludeFileEntry extends APathEntry implements IIncludeFileEntry {
return inc;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();

View file

@ -58,17 +58,11 @@ public class IncludeReference extends Openable implements IIncludeReference {
fPath = PathUtil.getCanonicalPathWindows(path);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#getResource()
*/
@Override
public IResource getResource() {
return null;
}
/*
* @see org.eclipse.cdt.internal.core.model.CElement#exists()
*/
@Override
public boolean exists() {
File file = null;
@ -80,42 +74,27 @@ public class IncludeReference extends Openable implements IIncludeReference {
return file != null && file.isDirectory();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElement#createElementInfo()
*/
@Override
protected CElementInfo createElementInfo() {
return new OpenableInfo(this);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IIncludeReference#getIncludeEntry()
*/
@Override
public IIncludeEntry getIncludeEntry() {
return fIncludeEntry;
}
/* (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)
*/
@Override
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map<ICElement, CElementInfo> newElements,
IResource underlyingResource) throws CModelException {
return computeChildren(info, pm, underlyingResource);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IIncludeReference#getAffectedPath()
*/
@Override
public IPath getAffectedPath() {
return fIncludeEntry.getPath();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CContainer#computeChildren(org.eclipse.cdt.internal.core.model.OpenableInfo, org.eclipse.core.resources.IResource)
*/
protected boolean computeChildren(OpenableInfo info, IProgressMonitor pm, IResource res) throws CModelException {
ArrayList<ICElement> vChildren = new ArrayList<>();
IPath filePath = null;
@ -178,9 +157,6 @@ public class IncludeReference extends Openable implements IIncludeReference {
return true;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IIncludeReference#isOnIncludeEntry(org.eclipse.core.runtime.IPath)
*/
@Override
public boolean isOnIncludeEntry(IPath path) {
if (fIncludeEntry.getFullIncludePath().isPrefixOf(path)
@ -190,9 +166,6 @@ public class IncludeReference extends Openable implements IIncludeReference {
return false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#getPath()
*/
@Override
public IPath getPath() {
return fPath;

View file

@ -182,17 +182,11 @@ public class LibraryEntry extends APathEntry implements ILibraryEntry {
return p;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ILibraryEntry#getLibraryPath()
*/
@Override
public IPath getLibraryPath() {
return libraryPath;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();

View file

@ -38,41 +38,26 @@ public class LibraryReference extends Parent implements ILibraryReference {
entry = e;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#getResource()
*/
@Override
public IResource getResource() {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElement#createElementInfo()
*/
@Override
protected CElementInfo createElementInfo() {
return new CElementInfo(this);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#getPath()
*/
@Override
public IPath getPath() {
return entry.getFullLibraryPath();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ILibraryReference#getLibraryEntry()
*/
@Override
public ILibraryEntry getLibraryEntry() {
return entry;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElement#generateInfos(java.lang.Object, java.util.Map, org.eclipse.core.runtime.IProgressMonitor)
*/
@Override
protected void generateInfos(CElementInfo info, Map<ICElement, CElementInfo> newElements, IProgressMonitor monitor)
throws CModelException {

View file

@ -34,25 +34,16 @@ public class LibraryReferenceArchive extends Archive implements ILibraryReferenc
entry = e;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#getResource()
*/
@Override
public IResource getResource() {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#getPath()
*/
@Override
public IPath getPath() {
return entry.getFullLibraryPath();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#exists()
*/
@Override
public boolean exists() {
File f = getPath().toFile();
@ -62,9 +53,6 @@ public class LibraryReferenceArchive extends Archive implements ILibraryReferenc
return false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ILibraryReference#getLibraryEntry()
*/
@Override
public ILibraryEntry getLibraryEntry() {
return entry;

View file

@ -39,9 +39,6 @@ public class LibraryReferenceShared extends Binary implements ILibraryReference
entry = e;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.Binary#getModificationStamp()
*/
@Override
protected long getModificationStamp() {
File f = getPath().toFile();
@ -51,17 +48,11 @@ public class LibraryReferenceShared extends Binary implements ILibraryReference
return 0;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#getResource()
*/
@Override
public IResource getResource() {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#exists()
*/
@Override
public boolean exists() {
File f = getPath().toFile();
@ -71,17 +62,11 @@ public class LibraryReferenceShared extends Binary implements ILibraryReference
return false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#getPath()
*/
@Override
public IPath getPath() {
return entry.getFullLibraryPath();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ILibraryReference#getLibraryEntry()
*/
@Override
public ILibraryEntry getLibraryEntry() {
return entry;

View file

@ -89,9 +89,6 @@ public class MacroEntry extends APathEntry implements IMacroEntry {
return super.equals(obj);
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();

View file

@ -81,9 +81,6 @@ public class MacroFileEntry extends APathEntry implements IMacroFileEntry {
return super.equals(obj);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IIncludeEntry#getFullIncludePath()
*/
@Override
public IPath getFullMacroFilePath() {
IPath p;
@ -118,9 +115,6 @@ public class MacroFileEntry extends APathEntry implements IMacroFileEntry {
return p;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();

View file

@ -21,45 +21,28 @@ import org.eclipse.cdt.core.IBinaryParser;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.PlatformObject;
/**
*/
public class NullBinaryParser extends PlatformObject implements IBinaryParser {
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser#getBinary(org.eclipse.core.runtime.IPath)
*/
@Override
public IBinaryFile getBinary(byte[] data, IPath path) throws IOException {
throw new IOException(CCorePlugin.getResourceString("CoreModel.NullBinaryParser.Not_binary_file")); //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser#getBinary(org.eclipse.core.runtime.IPath)
*/
@Override
public IBinaryFile getBinary(IPath path) throws IOException {
throw new IOException(CCorePlugin.getResourceString("CoreModel.NullBinaryParser.Not_binary_file")); //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser#getFormat()
*/
@Override
public String getFormat() {
return CCorePlugin.getResourceString("CoreModel.NullBinaryParser.Null_Format"); //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser#isBinary(byte[], org.eclipse.core.runtime.IPath)
*/
@Override
public boolean isBinary(byte[] array, IPath path) {
return false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser#getBufferSize()
*/
@Override
public int getHintBufferSize() {
return 0;

View file

@ -38,9 +38,6 @@ public class PathEntryContainerUpdatesOperation extends CModelOperation {
this.events = events;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CModelOperation#isReadOnly()
*/
@Override
public boolean isReadOnly() {
return true;

View file

@ -25,9 +25,6 @@ public class PathEntryStoreChangedOperation extends CModelOperation {
super(cproject);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CModelOperation#isReadOnly()
*/
@Override
public boolean isReadOnly() {
return true;

View file

@ -46,9 +46,6 @@ public class SetPathEntriesOperation extends CModelOperation {
this.cproject = project;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CModelOperation#executeOperation()
*/
@Override
protected void executeOperation() throws CModelException {
// project reference updated - may throw an exception if unable to write .cdtproject file

View file

@ -45,9 +45,6 @@ public class SetPathEntryContainerOperation extends CModelOperation {
fPathEntryManager = PathEntryManager.getDefault();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CModelOperation#isReadOnly()
*/
@Override
public boolean isReadOnly() {
return true;

View file

@ -18,9 +18,6 @@ import org.eclipse.cdt.core.model.CModelException;
import org.eclipse.cdt.core.model.ICElement;
import org.eclipse.cdt.core.model.IStructureDeclaration;
/**
* StructureDeclaration
*/
public class StructureDeclaration extends SourceManipulation implements IStructureDeclaration {
public StructureDeclaration(ICElement parent, String name, int kind) {
@ -60,25 +57,16 @@ public class StructureDeclaration extends SourceManipulation implements IStructu
return new StructureInfo(this);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IDeclaration#isStatic()
*/
@Override
public boolean isStatic() throws CModelException {
return getStructureInfo().isStatic();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IDeclaration#isConst()
*/
@Override
public boolean isConst() throws CModelException {
return getStructureInfo().isConst();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IDeclaration#isVolatile()
*/
@Override
public boolean isVolatile() throws CModelException {
return getStructureInfo().isVolatile();

View file

@ -30,9 +30,6 @@ public class Using extends SourceManipulation implements IUsing {
return new SourceManipulationInfo(this);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IUsing#isDirective()
*/
@Override
public boolean isDirective() {
return directive;

View file

@ -27,17 +27,11 @@ public class VariableTemplate extends Variable implements ITemplate {
templateParameterTypes = fgEmptyList;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ITemplate#getNumberOfTemplateParameters()
*/
@Override
public int getNumberOfTemplateParameters() {
return templateParameterTypes == null ? 0 : templateParameterTypes.length;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ITemplate#getTemplateParameterTypes()
*/
@Override
public String[] getTemplateParameterTypes() {
return templateParameterTypes;
@ -48,16 +42,10 @@ public class VariableTemplate extends Variable implements ITemplate {
return fgEmptyList;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ITemplate#setTemplateParameterTypes(java.lang.String[])
*/
public void setTemplateParameterTypes(String[] templateParameterTypes) {
this.templateParameterTypes = templateParameterTypes;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ITemplate#getTemplateSignature()
*/
@Override
public String getTemplateSignature() throws CModelException {
StringBuilder sig = new StringBuilder(getElementName());

View file

@ -51,9 +51,6 @@ public class ConfigBasedPathEntryStore implements IPathEntryStore, ICProjectDesc
static final QualifiedName PATH_ENTRY_COLLECTOR_PROPERTY_NAME = new QualifiedName(CCorePlugin.PLUGIN_ID,
"PathEntryStoreCollector"); //$NON-NLS-1$
/**
*
*/
public ConfigBasedPathEntryStore(IProject project) {
fProject = project;
fListeners = Collections.synchronizedList(new ArrayList<IPathEntryStoreListener>());
@ -62,17 +59,11 @@ public class ConfigBasedPathEntryStore implements IPathEntryStore, ICProjectDesc
CProjectDescriptionEvent.APPLIED | CProjectDescriptionEvent.LOADED);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.resources.IPathEntryStore#addPathEntryStoreListener(org.eclipse.cdt.core.resources.IPathEntryStoreListener)
*/
@Override
public void addPathEntryStoreListener(IPathEntryStoreListener listener) {
fListeners.add(listener);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.resources.IPathEntryStore#removePathEntryStoreListener(org.eclipse.cdt.core.resources.IPathEntryStoreListener)
*/
@Override
public void removePathEntryStoreListener(IPathEntryStoreListener listener) {
fListeners.remove(listener);
@ -88,9 +79,6 @@ public class ConfigBasedPathEntryStore implements IPathEntryStore, ICProjectDesc
}
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.resources.IPathEntryStore#fireClosedChangedEvent(IProject)
*/
@Override
public void close() {
PathEntryStoreChangedEvent evt = new PathEntryStoreChangedEvent(this, fProject,

View file

@ -55,17 +55,11 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
fCfgs = des;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.settings.model.MultiItemsHolder#getItems()
*/
@Override
public Object[] getItems() {
return fCfgs;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#create(java.lang.String, java.lang.String)
*/
@Override
public ICConfigExtensionReference create(String extensionPoint, String extension) throws CoreException {
if (DEBUG)
@ -73,9 +67,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
throw new UnsupportedOperationException();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#createExternalSetting(java.lang.String[], java.lang.String[], java.lang.String[], org.eclipse.cdt.core.settings.model.ICSettingEntry[])
*/
@Override
public ICExternalSetting createExternalSetting(String[] languageIDs, String[] contentTypeIds, String[] extensions,
ICSettingEntry[] entries) throws WriteAccessException {
@ -84,9 +75,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#createFileDescription(org.eclipse.core.runtime.IPath, org.eclipse.cdt.core.settings.model.ICResourceDescription)
*/
@Override
public ICFileDescription createFileDescription(IPath path, ICResourceDescription base)
throws CoreException, WriteAccessException {
@ -95,9 +83,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#createFolderDescription(org.eclipse.core.runtime.IPath, org.eclipse.cdt.core.settings.model.ICFolderDescription)
*/
@Override
public ICFolderDescription createFolderDescription(IPath path, ICFolderDescription base)
throws CoreException, WriteAccessException {
@ -106,9 +91,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#get(java.lang.String)
*/
@Override
public ICConfigExtensionReference[] get(String extensionPointID) {
if (DEBUG)
@ -116,9 +98,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getBuildSetting()
*/
@Override
public ICBuildSetting getBuildSetting() {
if (DEBUG)
@ -140,25 +119,16 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
fCfgs[i].getBuildSetting().setErrorParserIDs(ids);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getBuildSystemId()
*/
@Override
public String getBuildSystemId() {
return fCfgs[0].getBuildSystemId();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getBuildVariablesContributor()
*/
@Override
public ICdtVariablesContributor getBuildVariablesContributor() {
return fCfgs[0].getBuildVariablesContributor();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getConfigurationData()
*/
@Override
public CConfigurationData getConfigurationData() {
if (DEBUG)
@ -166,9 +136,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getConfigurationStatus()
*/
@Override
public CConfigurationStatus getConfigurationStatus() {
CConfigurationStatus st = null;
@ -180,25 +147,16 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return st;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getDescription()
*/
@Override
public String getDescription() {
return "Multi Configuration"; //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getExternalSettings()
*/
@Override
public ICExternalSetting[] getExternalSettings() {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getExternalSettingsProviderIds()
*/
@Override
public String[] getExternalSettingsProviderIds() {
if (DEBUG)
@ -206,9 +164,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getFileDescriptions()
*/
@Override
public ICFileDescription[] getFileDescriptions() {
ArrayList<ICFileDescription> lst = new ArrayList<>();
@ -217,9 +172,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return lst.toArray(new ICFileDescription[lst.size()]);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getFolderDescriptions()
*/
@Override
public ICFolderDescription[] getFolderDescriptions() {
ArrayList<ICFolderDescription> lst = new ArrayList<>();
@ -228,9 +180,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return lst.toArray(new ICFolderDescription[lst.size()]);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getLanguageSettingForFile(org.eclipse.core.runtime.IPath, boolean)
*/
@Override
public ICLanguageSetting getLanguageSettingForFile(IPath path, boolean ignoreExludeStatus) {
if (DEBUG)
@ -238,9 +187,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getProjectDescription()
*/
@Override
public ICProjectDescription getProjectDescription() {
ICProjectDescription pd = fCfgs[0].getProjectDescription();
@ -252,9 +198,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return pd;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getReferenceInfo()
*/
@Override
public Map<String, String> getReferenceInfo() {
if (DEBUG)
@ -262,17 +205,11 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return Collections.emptyMap();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getResolvedSourceEntries()
*/
@Override
public ICSourceEntry[] getResolvedSourceEntries() {
return new ICSourceEntry[0];
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getResourceDescription(org.eclipse.core.runtime.IPath, boolean)
*/
@Override
public ICResourceDescription getResourceDescription(IPath path, boolean isForFolder) {
ArrayList<ICResourceDescription> lst = new ArrayList<>();
@ -300,9 +237,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return new MultiFileDescription(lst.toArray(new ICFileDescription[lst.size()]));
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getResourceDescriptions()
*/
@Override
public ICResourceDescription[] getResourceDescriptions() {
ArrayList<ICResourceDescription> lst = new ArrayList<>();
@ -311,9 +245,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return lst.toArray(new ICResourceDescription[lst.size()]);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getRootFolderDescription()
*/
@Override
public ICFolderDescription getRootFolderDescription() {
ICFolderDescription[] rds = new ICFolderDescription[fCfgs.length];
@ -322,9 +253,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return new MultiFolderDescription(rds);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getSessionProperty(org.eclipse.core.runtime.QualifiedName)
*/
@Override
public Object getSessionProperty(QualifiedName name) {
if (DEBUG)
@ -332,17 +260,11 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
throw new UnsupportedOperationException();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getSourceEntries()
*/
@Override
public ICSourceEntry[] getSourceEntries() {
return new ICSourceEntry[0];
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getTargetPlatformSetting()
*/
@Override
public ICTargetPlatformSetting getTargetPlatformSetting() {
if (DEBUG)
@ -350,9 +272,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
throw new UnsupportedOperationException();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#isActive()
*/
@Override
public boolean isActive() {
for (int i = 0; i < fCfgs.length; i++)
@ -361,9 +280,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#isModified()
*/
@Override
public boolean isModified() {
for (int i = 0; i < fCfgs.length; i++)
@ -372,70 +288,46 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#isPreferenceConfiguration()
*/
@Override
public boolean isPreferenceConfiguration() {
return false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#remove(org.eclipse.cdt.core.settings.model.ICConfigExtensionReference)
*/
@Override
public void remove(ICConfigExtensionReference ext) throws CoreException {
for (int i = 0; i < fCfgs.length; i++)
fCfgs[i].remove(ext);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#remove(java.lang.String)
*/
@Override
public void remove(String extensionPoint) throws CoreException {
for (int i = 0; i < fCfgs.length; i++)
fCfgs[i].remove(extensionPoint);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#removeExternalSetting(org.eclipse.cdt.core.settings.model.ICExternalSetting)
*/
@Override
public void removeExternalSetting(ICExternalSetting setting) throws WriteAccessException {
for (int i = 0; i < fCfgs.length; i++)
fCfgs[i].removeExternalSetting(setting);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#removeExternalSettings()
*/
@Override
public void removeExternalSettings() throws WriteAccessException {
for (int i = 0; i < fCfgs.length; i++)
fCfgs[i].removeExternalSettings();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#removeResourceDescription(org.eclipse.cdt.core.settings.model.ICResourceDescription)
*/
@Override
public void removeResourceDescription(ICResourceDescription des) throws CoreException, WriteAccessException {
throw new UnsupportedOperationException();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#setActive()
*/
@Override
public void setActive() throws WriteAccessException {
for (int i = 0; i < fCfgs.length; i++)
fCfgs[i].setActive();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#setConfigurationData(java.lang.String, org.eclipse.cdt.core.settings.model.extension.CConfigurationData)
*/
@Override
public void setConfigurationData(String buildSystemId, CConfigurationData data) throws WriteAccessException {
if (DEBUG)
@ -443,9 +335,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
throw new UnsupportedOperationException();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#setDescription(java.lang.String)
*/
@Override
public void setDescription(String des) throws WriteAccessException {
if (DEBUG)
@ -453,18 +342,12 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
throw new UnsupportedOperationException();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#setExternalSettingsProviderIds(java.lang.String[])
*/
@Override
public void setExternalSettingsProviderIds(String[] ids) {
for (int i = 0; i < fCfgs.length; i++)
fCfgs[i].setExternalSettingsProviderIds(ids);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#setName(java.lang.String)
*/
@Override
public void setName(String name) throws WriteAccessException {
if (DEBUG)
@ -472,77 +355,50 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
throw new UnsupportedOperationException();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#setReferenceInfo(java.util.Map)
*/
@Override
public void setReferenceInfo(Map<String, String> refs) throws WriteAccessException {
for (int i = 0; i < fCfgs.length; i++)
fCfgs[i].setReferenceInfo(refs);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#setSessionProperty(org.eclipse.core.runtime.QualifiedName, java.lang.Object)
*/
@Override
public void setSessionProperty(QualifiedName name, Object value) {
for (int i = 0; i < fCfgs.length; i++)
fCfgs[i].setSessionProperty(name, value);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#setSourceEntries(org.eclipse.cdt.core.settings.model.ICSourceEntry[])
*/
@Override
public void setSourceEntries(ICSourceEntry[] entries) throws CoreException, WriteAccessException {
for (int i = 0; i < fCfgs.length; i++)
fCfgs[i].setSourceEntries(entries);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#updateExternalSettingsProviders(java.lang.String[])
*/
@Override
public void updateExternalSettingsProviders(String[] ids) throws WriteAccessException {
for (int i = 0; i < fCfgs.length; i++)
fCfgs[i].updateExternalSettingsProviders(ids);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingContainer#getChildSettings()
*/
@Override
public ICSettingObject[] getChildSettings() {
return new ICSettingObject[0];
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getConfiguration()
*/
@Override
public ICConfigurationDescription getConfiguration() {
return this;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getId()
*/
@Override
public String getId() {
return fCfgs[0].getId() + "_etc"; //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getName()
*/
@Override
public String getName() {
return "Multiple Config Description"; //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getParent()
*/
@Override
public ICSettingContainer getParent() {
ICSettingContainer p = fCfgs[0].getParent();
@ -554,9 +410,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return p;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getType()
*/
@Override
public int getType() {
int t = fCfgs[0].getType();
@ -566,9 +419,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return t;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#isReadOnly()
*/
@Override
public boolean isReadOnly() {
for (int i = 0; i < fCfgs.length; i++)
@ -583,9 +433,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
cfg.setReadOnly(readOnly, keepModify);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#isValid()
*/
@Override
public boolean isValid() {
for (int i = 0; i < fCfgs.length; i++)
@ -594,9 +441,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return true;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingsStorage#getStorage(java.lang.String, boolean)
*/
@Override
public ICStorageElement getStorage(String id, boolean create) throws CoreException {
if (DEBUG)
@ -604,9 +448,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingsStorage#getStorage(java.lang.String, boolean)
*/
@Override
public ICStorageElement importStorage(String id, ICStorageElement el)
throws UnsupportedOperationException, CoreException {
@ -615,9 +456,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingsStorage#removeStorage(java.lang.String)
*/
@Override
public void removeStorage(String id) throws CoreException {
for (int i = 0; i < fCfgs.length; i++)

View file

@ -27,9 +27,6 @@ public class MultiFileDescription extends MultiResourceDescription implements IC
super(res);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICFileDescription#getLanguageSetting()
*/
@Override
public ICLanguageSetting getLanguageSetting() {
if (DEBUG)

View file

@ -33,9 +33,6 @@ public class MultiFolderDescription extends MultiResourceDescription implements
super(res);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICFolderDescription#createLanguageSettingForContentTypes(java.lang.String, java.lang.String[])
*/
@Override
public ICLanguageSetting createLanguageSettingForContentTypes(String languageId, String[] typeIds)
throws CoreException {
@ -44,9 +41,6 @@ public class MultiFolderDescription extends MultiResourceDescription implements
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICFolderDescription#createLanguageSettingForExtensions(java.lang.String, java.lang.String[])
*/
@Override
public ICLanguageSetting createLanguageSettingForExtensions(String languageId, String[] extensions)
throws CoreException {
@ -55,9 +49,6 @@ public class MultiFolderDescription extends MultiResourceDescription implements
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICFolderDescription#getLanguageSettingForFile(java.lang.String)
*/
@Override
public ICLanguageSetting getLanguageSettingForFile(String fileName) {
ICLanguageSetting ls0 = ((ICFolderDescription) fRess[0]).getLanguageSettingForFile(fileName);
@ -73,9 +64,6 @@ public class MultiFolderDescription extends MultiResourceDescription implements
return ls0;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICFolderDescription#getLanguageSettings()
*/
@Override
public ICLanguageSetting[][] getLanguageSettingsM(Comparator<Object> comp) {
ICLanguageSetting[][] ls = new ICLanguageSetting[fRess.length][];
@ -88,9 +76,6 @@ public class MultiFolderDescription extends MultiResourceDescription implements
return ls;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICFolderDescription#getNestedResourceDescription(org.eclipse.core.runtime.IPath, boolean)
*/
@Override
public ICResourceDescription getNestedResourceDescription(IPath relPath, boolean exactPath) {
if (DEBUG)
@ -98,9 +83,6 @@ public class MultiFolderDescription extends MultiResourceDescription implements
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICFolderDescription#getNestedResourceDescriptions(int)
*/
@Override
public ICResourceDescription[] getNestedResourceDescriptions(int kind) {
if (DEBUG)
@ -108,9 +90,6 @@ public class MultiFolderDescription extends MultiResourceDescription implements
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICFolderDescription#getNestedResourceDescriptions()
*/
@Override
public ICResourceDescription[] getNestedResourceDescriptions() {
if (DEBUG)
@ -118,9 +97,6 @@ public class MultiFolderDescription extends MultiResourceDescription implements
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICFolderDescription#isRoot()
*/
@Override
public boolean isRoot() {
for (int i = 0; i < fRess.length; i++)

View file

@ -39,9 +39,7 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
fRess = res;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICResourceDescription#canExclude(boolean)
*
/*
* returns TRUE only if all res.configurations return true
*/
@Override
@ -52,9 +50,6 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
return true;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICResourceDescription#getParentFolderDescription()
*/
@Override
public ICFolderDescription getParentFolderDescription() {
if (DEBUG)
@ -62,9 +57,6 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
throw new UnsupportedOperationException();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICResourceDescription#getPath()
*/
@Override
public IPath getPath() {
IPath p = fRess[0].getPath();
@ -78,9 +70,6 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
throw new UnsupportedOperationException();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICResourceDescription#isExcluded()
*/
@Override
public boolean isExcluded() {
for (int i = 0; i < fRess.length; i++)
@ -89,27 +78,18 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
return true;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICResourceDescription#setExcluded(boolean)
*/
@Override
public void setExcluded(boolean excluded) throws WriteAccessException {
for (int i = 0; i < fRess.length; i++)
fRess[i].setExcluded(excluded);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICResourceDescription#setPath(org.eclipse.core.runtime.IPath)
*/
@Override
public void setPath(IPath path) throws WriteAccessException {
for (int i = 0; i < fRess.length; i++)
fRess[i].setPath(path);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingContainer#getChildSettings()
*/
@Override
public ICSettingObject[] getChildSettings() {
if (DEBUG)
@ -117,9 +97,7 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
throw new UnsupportedOperationException();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getConfiguration()
*
/*
* returns multi-configuration object
*/
@Override
@ -133,25 +111,17 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
return fCfg;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getId()
*/
@Override
public String getId() {
return fRess[0].getId() + "_etc"; //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getName()
*/
@Override
public String getName() {
return "Multiple Resource Description"; //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getParent()
*
/*
* If there's the same parent for all res cfgs, return it.
* Else return null;
*/
@ -166,9 +136,7 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
return sc;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getType()
*
/*
* If there's the same type for all res cfgs, return it.
* Else return null;
*/
@ -181,9 +149,6 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
return t;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#isReadOnly()
*/
@Override
public boolean isReadOnly() {
for (int i = 0; i < fRess.length; i++)
@ -192,9 +157,6 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
return true;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#isValid()
*/
@Override
public boolean isValid() {
for (int i = 0; i < fRess.length; i++)
@ -203,9 +165,6 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
return true;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.ICMultiItemsHolder#getItems()
*/
@Override
public Object[] getItems() {
return fRess;

View file

@ -284,36 +284,20 @@ public class ResourceChangeHandler extends ResourceChangeHandlerBase implements
return new RcMoveHandler();
}
/*
* I S a v e P a r t i c i p a n t
*/
/* (non-Javadoc)
* @see org.eclipse.core.resources.ISaveParticipant#saving(org.eclipse.core.resources.ISaveContext)
*/
@Override
public void saving(ISaveContext context) throws CoreException {
//Request a resource delta to be used on next activation.
context.needDelta();
}
/* (non-Javadoc)
* @see org.eclipse.core.resources.ISaveParticipant#doneSaving(org.eclipse.core.resources.ISaveContext)
*/
@Override
public void doneSaving(ISaveContext context) {
}
/* (non-Javadoc)
* @see org.eclipse.core.resources.ISaveParticipant#prepareToSave(org.eclipse.core.resources.ISaveContext)
*/
@Override
public void prepareToSave(ISaveContext context) throws CoreException {
}
/* (non-Javadoc)
* @see org.eclipse.core.resources.ISaveParticipant#rollback(org.eclipse.core.resources.ISaveContext)
*/
@Override
public void rollback(ISaveContext context) {
}

View file

@ -170,8 +170,6 @@ public class SetCProjectDescriptionOperation extends CModelOperation {
// /*
// * Instead of using the workspace scheduling rule, use a more refined project scoped rule.
// * This must contain the rule in CConfigBasedDescriptor.setApply(...)
// * (non-Javadoc)
// * @see org.eclipse.cdt.internal.core.model.CModelOperation#getSchedulingRule()
// */
// @Override
// public ISchedulingRule getSchedulingRule() {

View file

@ -367,8 +367,6 @@ public class XmlProjectDescriptionStorage extends AbstractCProjectDescriptionSto
}
/* Sets the current read-only descriptions -- uses the write lock
* (non-Javadoc)
* @see org.eclipse.cdt.core.settings.model.AbstractCProjectDescriptionStorage#setCurrentDescription(org.eclipse.cdt.core.settings.model.ICProjectDescription, boolean)
*/
@Override
public boolean setCurrentDescription(ICProjectDescription des, boolean overwriteIfExists) {

View file

@ -78,8 +78,6 @@ public class XmlProjectDescriptionStorage2 extends XmlProjectDescriptionStorage
/*
* Check for external modification in the module files in the .csettings directory
* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.settings.model.xml.XmlProjectDescriptionStorage#checkExternalModification()
*/
@Override
protected synchronized boolean checkExternalModification() {
@ -165,8 +163,6 @@ public class XmlProjectDescriptionStorage2 extends XmlProjectDescriptionStorage
* - We serialize the storageModule children of the CConfiguration elements (in the org.eclipse.cdt.settings module)
* to separate files in the .csettings directory to prevent unmanageably large XML deltas
* Return the modification stamp of the main .cproject file as our super method does
* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.settings.model.xml.XmlProjectDescriptionStorage#serialize(org.eclipse.core.resources.IContainer, java.lang.String, org.eclipse.cdt.core.settings.model.ICStorageElement)
*/
@Override
protected long serialize(IContainer container, String file, ICStorageElement element) throws CoreException {

View file

@ -97,9 +97,6 @@ public class CEnumeration extends PlatformObject implements IEnumeration, ICInte
return;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IBinding#getName()
*/
@Override
public String getName() {
if (definition != null)
@ -116,9 +113,6 @@ public class CEnumeration extends PlatformObject implements IEnumeration, ICInte
return declarations[0].toCharArray();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IBinding#getScope()
*/
@Override
public IScope getScope() {
return CVisitor.getContainingScope(definition != null ? definition : declarations[0].getParent());
@ -135,9 +129,6 @@ public class CEnumeration extends PlatformObject implements IEnumeration, ICInte
return t;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IEnumeration#getEnumerators()
*/
@Override
public IEnumerator[] getEnumerators() {
if (definition == null) {
@ -162,9 +153,6 @@ public class CEnumeration extends PlatformObject implements IEnumeration, ICInte
definition = name;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IType#isSameType(org.eclipse.cdt.core.dom.ast.IType)
*/
@Override
public boolean isSameType(IType type) {
if (type == this)

View file

@ -56,9 +56,6 @@ public class CEnumerator extends PlatformObject implements IEnumerator {
return enumeratorName;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IBinding#getName()
*/
@Override
public String getName() {
return enumeratorName.toString();
@ -69,17 +66,11 @@ public class CEnumerator extends PlatformObject implements IEnumerator {
return enumeratorName.toCharArray();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IBinding#getScope()
*/
@Override
public IScope getScope() {
return CVisitor.getContainingScope(enumeratorName.getParent());
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IEnumerator#getType()
*/
@Override
public IType getType() {
return (IType) getOwner();

View file

@ -27,9 +27,6 @@ public class CFunctionScope extends CScope implements ICFunctionScope {
super(function, EScopeKind.eLocal);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.c.ICFunctionScope#getBinding(char[])
*/
@Override
public IBinding getBinding(char[] name) {
return super.getBinding(NAMESPACE_TYPE_OTHER, name);

View file

@ -57,9 +57,6 @@ public class CImplicitTypedef extends CTypedef {
return scope;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IType#isSameType(org.eclipse.cdt.core.dom.ast.IType)
*/
// public boolean isSameType(IType t) {
// if (t == this)
// return true;

View file

@ -42,9 +42,6 @@ public class CKnRParameter extends PlatformObject implements IParameter {
this.name = name;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IVariable#getType()
*/
@Override
public IType getType() {
IASTDeclSpecifier declSpec = null;
@ -62,56 +59,35 @@ public class CKnRParameter extends PlatformObject implements IParameter {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IBinding#getName()
*/
@Override
public String getName() {
return name.toString();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IBinding#getNameCharArray()
*/
@Override
public char[] getNameCharArray() {
return name.toCharArray();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IBinding#getScope()
*/
@Override
public IScope getScope() {
return CVisitor.getContainingScope(declaration);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IBinding#getPhysicalNode()
*/
public IASTNode getPhysicalNode() {
return declaration;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IVariable#isStatic()
*/
@Override
public boolean isStatic() {
return false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IVariable#isExtern()
*/
@Override
public boolean isExtern() {
return false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IVariable#isAuto()
*/
@Override
public boolean isAuto() {
if (declaration instanceof IASTSimpleDeclaration)
@ -120,9 +96,6 @@ public class CKnRParameter extends PlatformObject implements IParameter {
return false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IVariable#isRegister()
*/
@Override
public boolean isRegister() {
if (declaration instanceof IASTSimpleDeclaration)

View file

@ -68,25 +68,16 @@ public class CQualifierType implements ICQualifierType, ITypeContainer, ISeriali
return false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IQualifierType#isConst()
*/
@Override
public boolean isConst() {
return isConst;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IQualifierType#isVolatile()
*/
@Override
public boolean isVolatile() {
return isVolatile;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.c.ICQualifierType#isRestrict()
*/
@Override
public boolean isRestrict() {
return isRestrict;

View file

@ -174,9 +174,6 @@ public class CVisitor extends ASTQueries {
return removeNullFromProblems();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.dom.parser.c.CVisitor.CBaseVisitorAction#processDeclaration(org.eclipse.cdt.core.dom.ast.IASTDeclaration)
*/
@Override
public int visit(IASTDeclaration declaration) {
if (declaration instanceof IASTProblemHolder)
@ -185,9 +182,6 @@ public class CVisitor extends ASTQueries {
return PROCESS_CONTINUE;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.dom.parser.c.CVisitor.CBaseVisitorAction#processExpression(org.eclipse.cdt.core.dom.ast.IASTExpression)
*/
@Override
public int visit(IASTExpression expression) {
if (expression instanceof IASTProblemHolder)
@ -196,9 +190,6 @@ public class CVisitor extends ASTQueries {
return PROCESS_CONTINUE;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.dom.parser.c.CVisitor.CBaseVisitorAction#processStatement(org.eclipse.cdt.core.dom.ast.IASTStatement)
*/
@Override
public int visit(IASTStatement statement) {
if (statement instanceof IASTProblemHolder)
@ -207,9 +198,6 @@ public class CVisitor extends ASTQueries {
return PROCESS_CONTINUE;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.dom.parser.c.CVisitor.CBaseVisitorAction#processTypeId(org.eclipse.cdt.core.dom.ast.IASTTypeId)
*/
@Override
public int visit(IASTTypeId typeId) {
if (typeId instanceof IASTProblemHolder)
@ -266,9 +254,6 @@ public class CVisitor extends ASTQueries {
this.binding = binding;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.dom.parser.c.CVisitor.CBaseVisitorAction#processDeclarator(org.eclipse.cdt.core.dom.ast.IASTDeclarator)
*/
@Override
public int visit(IASTDeclarator declarator) {
//GCC allows declarations in expressions, so we have to continue from the
@ -309,9 +294,6 @@ public class CVisitor extends ASTQueries {
return PROCESS_CONTINUE;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.dom.parser.c.CVisitor.CBaseVisitorAction#processDeclSpecifier(org.eclipse.cdt.core.dom.ast.IASTDeclSpecifier)
*/
@Override
public int visit(IASTDeclSpecifier declSpec) {
if (compositeTypeDeclared && declSpec instanceof ICASTTypedefNameSpecifier)
@ -348,9 +330,6 @@ public class CVisitor extends ASTQueries {
return PROCESS_CONTINUE;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.dom.parser.c.CVisitor.CBaseVisitorAction#processEnumerator(org.eclipse.cdt.core.dom.ast.IASTEnumerationSpecifier.IASTEnumerator)
*/
@Override
public int visit(IASTEnumerator enumerator) {
if (binding instanceof IEnumerator && enumerator.getName().resolveBinding() == binding) {
@ -360,9 +339,6 @@ public class CVisitor extends ASTQueries {
return PROCESS_CONTINUE;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.dom.parser.c.CVisitor.CBaseVisitorAction#processStatement(org.eclipse.cdt.core.dom.ast.IASTStatement)
*/
@Override
public int visit(IASTStatement statement) {
if (statement instanceof IASTLabelStatement && binding instanceof ILabel) {

View file

@ -64,9 +64,6 @@ public class CPPFunctionInstance extends CPPFunctionSpecialization implements IC
return false;
}
/* (non-Javadoc)
* For debug purposes only
*/
@Override
public String toString() {
return getName() + " " + ASTTypeUtil.getArgumentListString(fArguments, true); //$NON-NLS-1$

View file

@ -27,25 +27,16 @@ public final class EmptyIterator<T> implements Iterator<T> {
private EmptyIterator() {
}
/* (non-Javadoc)
* @see java.util.Iterator#hasNext()
*/
@Override
public final boolean hasNext() {
return false;
}
/* (non-Javadoc)
* @see java.util.Iterator#next()
*/
@Override
public final T next() {
throw new NoSuchElementException();
}
/* (non-Javadoc)
* @see java.util.Iterator#remove()
*/
@Override
public final void remove() {
throw new UnsupportedOperationException();

View file

@ -66,41 +66,26 @@ public class CommandLauncher implements ICommandLauncher {
fShowCommand = false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.ICommandLauncher#showCommand(boolean)
*/
@Override
public void showCommand(boolean show) {
fShowCommand = show;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.ICommandLauncher#getErrorMessage()
*/
@Override
public String getErrorMessage() {
return fErrorMessage;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.ICommandLauncher#setErrorMessage(java.lang.String)
*/
@Override
public void setErrorMessage(String error) {
fErrorMessage = error;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.ICommandLauncher#getCommandArgs()
*/
@Override
public String[] getCommandArgs() {
return fCommandArgs;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.ICommandLauncher#getEnvironment()
*/
@Override
public Properties getEnvironment() {
if (fEnvironment == null) {
@ -121,9 +106,6 @@ public class CommandLauncher implements ICommandLauncher {
return fEnvironment.getProperty(key);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.ICommandLauncher#getCommandLine()
*/
@Override
public String getCommandLine() {
return getCommandLine(getCommandArgs());
@ -239,9 +221,6 @@ public class CommandLauncher implements ICommandLauncher {
return fProcess;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.ICommandLauncher#waitAndRead(java.io.OutputStream, java.io.OutputStream)
*/
@Override
@Deprecated
public int waitAndRead(OutputStream out, OutputStream err) {
@ -258,9 +237,6 @@ public class CommandLauncher implements ICommandLauncher {
return OK;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.ICommandLauncher#waitAndRead(java.io.OutputStream, java.io.OutputStream, org.eclipse.core.runtime.IProgressMonitor)
*/
@Override
public int waitAndRead(OutputStream output, OutputStream err, IProgressMonitor monitor) {
if (fShowCommand) {

View file

@ -56,25 +56,16 @@ public class CdtVariable implements ICdtVariable {
}
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacro#getName()
*/
@Override
public String getName() {
return fName;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacro#getMacroValueType()
*/
@Override
public int getValueType() {
return fType;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacro#getStringValue()
*/
@Override
public String getStringValue() throws CdtVariableException {
if (CdtVariableResolver.isStringListVariable(fType))
@ -83,9 +74,6 @@ public class CdtVariable implements ICdtVariable {
return fStringValue;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacro#getStringListValue()
*/
@Override
public String[] getStringListValue() throws CdtVariableException {
if (!CdtVariableResolver.isStringListVariable(fType))

View file

@ -159,40 +159,25 @@ public class CdtVariableStatus extends Status implements ICdtVariableStatus {
return message;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroStatus#getMacroName()
*/
@Override
public String getVariableName() {
return fMacroName;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroStatus#getExpression()
*/
@Override
public String getExpression() {
return fExpression;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroStatus#getReferencedName()
*/
@Override
public String getReferencedMacroName() {
return fReferencedName;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroStatus#getContextType()
*/
// public int getContextType() {
// return fContextType;
// }
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroStatus#getContextData()
*/
// public Object getContextData() {
// return fContextData;
// }

View file

@ -43,25 +43,16 @@ public class ErrorParserNamedWrapper implements IErrorParserNamed {
this.fErrorParser = errorParser;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IErrorParser#processLine(java.lang.String, org.eclipse.cdt.core.ErrorParserManager)
*/
@Override
public boolean processLine(String line, ErrorParserManager epm) {
return fErrorParser.processLine(line, epm);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IErrorParserNamed#getId()
*/
@Override
public String getId() {
return fId;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IErrorParserNamed#getName()
*/
@Override
public String getName() {
return fName;
@ -74,25 +65,16 @@ public class ErrorParserNamedWrapper implements IErrorParserNamed {
return fErrorParser;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IErrorParserNamed#setId(java.lang.String)
*/
@Override
public void setId(String id) {
this.fId = id;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IErrorParserNamed#setName(java.lang.String)
*/
@Override
public void setName(String name) {
this.fName = name;
}
/* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object o) {
if (o instanceof ErrorParserNamedWrapper) {
@ -105,9 +87,6 @@ public class ErrorParserNamedWrapper implements IErrorParserNamed {
}
/* (non-Javadoc)
* @see java.lang.Object#clone()
*/
@Override
public Object clone() throws CloneNotSupportedException {
// shallow copy since IErrorParser is not {@link Cloneable} in general.

View file

@ -89,9 +89,6 @@ public class FixitErrorParser extends RegexErrorParser {
return super.processLine(line, epManager);
}
/* (non-Javadoc)
* @see java.lang.Object#clone()
*/
@Override
public Object clone() throws CloneNotSupportedException {
FixitErrorParser that = new FixitErrorParser(getId(), getName());

View file

@ -157,9 +157,6 @@ public class RegexErrorParser implements IErrorParserNamed {
return false;
}
/* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object o) {
if (o instanceof RegexErrorParser) {
@ -170,9 +167,6 @@ public class RegexErrorParser implements IErrorParserNamed {
}
/* (non-Javadoc)
* @see java.lang.Object#clone()
*/
@Override
public Object clone() throws CloneNotSupportedException {
RegexErrorParser that = new RegexErrorParser(fId, fName);

View file

@ -344,9 +344,6 @@ public class RegexErrorPattern implements Cloneable {
return path;
}
/* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object o) {
if (o instanceof RegexErrorPattern) {
@ -362,9 +359,6 @@ public class RegexErrorPattern implements Cloneable {
}
/* (non-Javadoc)
* @see java.lang.Object#clone()
*/
@Override
public Object clone() throws CloneNotSupportedException {
return new RegexErrorPattern(pattern.toString(), fileExpression, lineExpression, descriptionExpression,

View file

@ -42,9 +42,6 @@ public class EFSFileStorage extends PlatformObject implements IStorage {
this.locationURI = locationURI;
}
/* (non-Javadoc)
* @see org.eclipse.core.resources.IStorage#getContents()
*/
@Override
public InputStream getContents() throws CoreException {
if (inputStream == null) {
@ -59,17 +56,11 @@ public class EFSFileStorage extends PlatformObject implements IStorage {
return inputStream;
}
/* (non-Javadoc)
* @see org.eclipse.core.resources.IStorage#getFullPath()
*/
@Override
public IPath getFullPath() {
return URIUtil.toPath(locationURI);
}
/* (non-Javadoc)
* @see org.eclipse.core.resources.IStorage#getName()
*/
@Override
public String getName() {
IFileStore fileStore = null;
@ -88,9 +79,6 @@ public class EFSFileStorage extends PlatformObject implements IStorage {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.core.resources.IStorage#isReadOnly()
*/
@Override
public boolean isReadOnly() {
IFileStore fileStore = null;

View file

@ -390,9 +390,6 @@ public abstract class RefreshExclusion implements Cloneable {
}
}
/* (non-Javadoc)
* @see java.lang.Object#clone()
*/
@Override
public abstract Object clone();
}

View file

@ -179,9 +179,6 @@ public class ScannerProvider extends AbstractCExtension implements IScannerInfoP
}
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.IElementChangedListener#elementChanged(org.eclipse.cdt.core.model.ElementChangedEvent)
*/
@Override
public void elementChanged(ElementChangedEvent event) {
try {

View file

@ -244,8 +244,6 @@ final public class CConfigBasedDescriptorManager implements ICDescriptorManager
/*
* Run the descriptor operation. Lock the descriptor while this takes place...
* (non-Javadoc)
* @see org.eclipse.cdt.core.ICDescriptorManager#runDescriptorOperation(org.eclipse.core.resources.IProject, org.eclipse.cdt.core.ICDescriptorOperation, org.eclipse.core.runtime.IProgressMonitor)
*/
@Override
public void runDescriptorOperation(IProject project, ICDescriptorOperation op, IProgressMonitor monitor)
@ -275,8 +273,6 @@ final public class CConfigBasedDescriptorManager implements ICDescriptorManager
/*
* Runs a descriptor operation directly on an ICProjectDescription.
*
* (non-Javadoc)
* @see org.eclipse.cdt.core.ICDescriptorManager#runDescriptorOperation(org.eclipse.core.resources.IProject, org.eclipse.cdt.core.settings.model.ICProjectDescription, org.eclipse.cdt.core.ICDescriptorOperation, org.eclipse.core.runtime.IProgressMonitor)
*/
@Override
public void runDescriptorOperation(IProject project, ICProjectDescription des, ICDescriptorOperation op,

View file

@ -77,9 +77,6 @@ class PositionTrackerChain implements IDocumentListener {
}
}
/* (non-Javadoc)
* @see org.eclipse.jface.text.IPositionUpdater#update(DocumentEvent)
*/
private void update(DocumentEvent event) {
String text = event.getText();
int insertLen = text != null ? text.length() : 0;

View file

@ -160,9 +160,6 @@ public class CdtMacroSupplier extends CoreMacroSupplierBase {
return fInstance;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacro(java.lang.String, int, java.lang.Object)
*/
@Override
public ICdtVariable getMacro(String macroName, int contextType, Object contextData) {
ICdtVariable macro = null;
@ -460,9 +457,6 @@ public class CdtMacroSupplier extends CoreMacroSupplierBase {
return macro;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacros(int, java.lang.Object)
*/
@Override
public ICdtVariable[] getMacros(int contextType, Object contextData) {
String names[] = getMacroNames(contextType, false);

View file

@ -56,9 +56,6 @@ public class CdtVariableManager implements ICdtVariableManager {
return fDefault;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroProvider#getMacro(java.lang.String, int, java.lang.Object, boolean)
*/
@Override
public ICdtVariable getVariable(String macroName, ICConfigurationDescription cfg) {
if (cfg instanceof CConfigurationDescriptionCache) {
@ -75,9 +72,6 @@ public class CdtVariableManager implements ICdtVariableManager {
return getMacroContextInfo(type, cfg);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroProvider#getMacros(int, java.lang.Object, boolean)
*/
@Override
public ICdtVariable[] getVariables(ICConfigurationDescription cfg) {
if (cfg instanceof CConfigurationDescriptionCache) {
@ -89,9 +83,6 @@ public class CdtVariableManager implements ICdtVariableManager {
return SupplierBasedCdtVariableManager.getVariables(getMacroContextInfo(type, cfg), true);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroProvider#getSuppliers(int, java.lang.Object)
*/
public ICdtVariableSupplier[] getSuppliers(int contextType, Object contextData) {
IVariableContextInfo info = getMacroContextInfo(contextType, contextData);
if (info != null)
@ -106,17 +97,11 @@ public class CdtVariableManager implements ICdtVariableManager {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroProvider#convertStringListToString(java.lang.String[], java.lang.String)
*/
@Override
public String convertStringListToString(String[] value, String listDelimiter) {
return CdtVariableResolver.convertStringListToString(value, listDelimiter);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroProvider#resolveValue(java.lang.String, java.lang.String, java.lang.String, int, java.lang.Object)
*/
@Override
public String resolveValue(String value, String nonexistentMacrosValue, String listDelimiter,
ICConfigurationDescription cfg) throws CdtVariableException {
@ -128,9 +113,6 @@ public class CdtVariableManager implements ICdtVariableManager {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroProvider#resolveStringListValue(java.lang.String, java.lang.String, int, java.lang.Object)
*/
@Override
public String[] resolveStringListValue(String value, String nonexistentMacrosValue, String listDelimiter,
ICConfigurationDescription cfg) throws CdtVariableException {
@ -142,9 +124,6 @@ public class CdtVariableManager implements ICdtVariableManager {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroProvider#isStringListValue(java.lang.String)
*/
@Override
public boolean isStringListValue(String value, ICConfigurationDescription cfg) throws CdtVariableException {
try {
@ -157,9 +136,6 @@ public class CdtVariableManager implements ICdtVariableManager {
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroProvider#checkIntegrity(int, java.lang.Object)
*/
@Override
public void checkVariableIntegrity(ICConfigurationDescription cfg) throws CdtVariableException {
@ -188,9 +164,6 @@ public class CdtVariableManager implements ICdtVariableManager {
return new CoreVariableSubstitutor(info, inexistentMacroValue, listDelimiter);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroProvider#resolveStringListValues(java.lang.String[], java.lang.String, java.lang.String, int, java.lang.Object)
*/
@Override
public String[] resolveStringListValues(String[] value, String nonexistentMacrosValue, String listDelimiter,
ICConfigurationDescription cfg) throws CdtVariableException {

View file

@ -30,18 +30,13 @@ public class CoreVariableSubstitutor extends SupplierBasedCdtVariableSubstitutor
public CoreVariableSubstitutor(IVariableContextInfo contextInfo, String inexistentMacroValue, String listDelimiter,
Map<?, ?> delimiterMap, String incorrectlyReferencedMacroValue) {
super(contextInfo, inexistentMacroValue, listDelimiter, delimiterMap, incorrectlyReferencedMacroValue);
// TODO Auto-generated constructor stub
}
public CoreVariableSubstitutor(IVariableContextInfo contextInfo, String inexistentMacroValue,
String listDelimiter) {
super(contextInfo, inexistentMacroValue, listDelimiter);
// TODO Auto-generated constructor stub
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.internal.macros.IMacroSubstitutor#setMacroContextInfo(int, java.lang.Object)
*/
public void setMacroContextInfo(int contextType, Object contextData) throws CdtVariableException {
setMacroContextInfo(getMacroContextInfo(contextType, contextData));
}

View file

@ -71,25 +71,16 @@ public class DefaultVariableContextInfo implements ICoreVariableContextInfo {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.internal.macros.IMacroContextInfo#getContextType()
*/
@Override
public int getContextType() {
return fType;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.internal.macros.IMacroContextInfo#getContextData()
*/
@Override
public Object getContextData() {
return fData;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.internal.macros.IMacroContextInfo#getSuppliers()
*/
@Override
public ICdtVariableSupplier[] getSuppliers() {
if (fSuppliers == null)
@ -97,9 +88,6 @@ public class DefaultVariableContextInfo implements ICoreVariableContextInfo {
return fSuppliers;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.internal.macros.IMacroContextInfo#getNext()
*/
@Override
public IVariableContextInfo getNext() {
switch (fType) {

View file

@ -77,9 +77,6 @@ public class EclipseVariablesVariableSupplier implements ICdtVariableSupplier {
fArgument = argument;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacro#getStringValue()
*/
@Override
public String getStringValue() throws CdtVariableException {
if (!fInitialized) {
@ -124,9 +121,6 @@ public class EclipseVariablesVariableSupplier implements ICdtVariableSupplier {
}
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacro(java.lang.String, int, java.lang.Object)
*/
@Override
public ICdtVariable getVariable(String macroName, IVariableContextInfo info) {
return getVariable(macroName);
@ -162,9 +156,6 @@ public class EclipseVariablesVariableSupplier implements ICdtVariableSupplier {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacros(int, java.lang.Object)
*/
@Override
public ICdtVariable[] getVariables(IVariableContextInfo info) {
return getVariables();

View file

@ -123,9 +123,6 @@ public class EnvironmentVariableSupplier extends CoreMacroSupplierBase {
return fInstance;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacro(java.lang.String, int, java.lang.Object)
*/
@Override
public ICdtVariable getMacro(String macroName, int contextType, Object contextData) {
if (macroName == null || macroName.isEmpty())
@ -155,9 +152,6 @@ public class EnvironmentVariableSupplier extends CoreMacroSupplierBase {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacros(int, java.lang.Object)
*/
@Override
public ICdtVariable[] getMacros(int contextType, Object contextData) {
IEnvironmentVariable vars[] = null;

View file

@ -109,9 +109,6 @@ public class UserDefinedVariableSupplier extends CoreMacroSupplierBase {
return fInstance;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacro(java.lang.String, int, java.lang.Object)
*/
@Override
public ICdtVariable getMacro(String macroName, int contextType, Object contextData) {
if (macroName == null || macroName.isEmpty())
@ -123,9 +120,6 @@ public class UserDefinedVariableSupplier extends CoreMacroSupplierBase {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacros(int, java.lang.Object)
*/
@Override
public ICdtVariable[] getMacros(int contextType, Object contextData) {
StorableCdtVariables macros = getStorableMacros(contextType, contextData);

View file

@ -37,50 +37,32 @@ public class UserVarSupplier implements IUserVarSupplier {
return sup;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.cdtvariables.IUserVarSupplier#createMacro(org.eclipse.cdt.core.cdtvariables.ICdtVariable, int, java.lang.Object)
*/
@Override
public ICdtVariable createMacro(ICdtVariable copy, ICConfigurationDescription contextData) {
return CdtVariableManager.fUserDefinedMacroSupplier.createMacro(copy, CTX, contextData);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.cdtvariables.IUserVarSupplier#createMacro(java.lang.String, int, java.lang.String, java.lang.Object)
*/
@Override
public ICdtVariable createMacro(String macroName, int type, String value, ICConfigurationDescription contextData) {
return CdtVariableManager.fUserDefinedMacroSupplier.createMacro(macroName, type, value, CTX, contextData);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.cdtvariables.IUserVarSupplier#createMacro(java.lang.String, int, java.lang.String[], java.lang.Object)
*/
@Override
public ICdtVariable createMacro(String macroName, int type, String[] value,
ICConfigurationDescription contextData) {
return CdtVariableManager.fUserDefinedMacroSupplier.createMacro(macroName, type, value, CTX, contextData);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.cdtvariables.IUserVarSupplier#deleteAll(java.lang.Object)
*/
@Override
public void deleteAll(ICConfigurationDescription contextData) {
CdtVariableManager.fUserDefinedMacroSupplier.deleteAll(CTX, contextData);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.cdtvariables.IUserVarSupplier#deleteMacro(java.lang.String, java.lang.Object)
*/
@Override
public ICdtVariable deleteMacro(String name, ICConfigurationDescription contextData) {
return CdtVariableManager.fUserDefinedMacroSupplier.deleteMacro(name, CTX, contextData);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.cdtvariables.IUserVarSupplier#getMacros(java.lang.Object)
*/
@Override
public ICdtVariable[] getMacros(ICConfigurationDescription contextData) {
return CdtVariableManager.fUserDefinedMacroSupplier.getMacros(CTX, contextData);

View file

@ -65,35 +65,23 @@ public class InternalASTServiceProvider implements IASTServiceProvider {
"GNUC++" //$NON-NLS-1$
};
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.IASTServiceProvider#getName()
*/
public String getName() {
// TODO is this a name or an id?
return "CDT AST Service"; //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.IASTServiceProvider#getTranslationUnit()
*/
@Override
public IASTTranslationUnit getTranslationUnit(IFile fileToParse) throws UnsupportedDialectException {
return getTranslationUnit(fileToParse.getLocation().toOSString(), fileToParse,
SavedCodeReaderFactory.getInstance(), null);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.IASTServiceProvider#getTranslationUnit(org.eclipse.cdt.core.dom.ICodeReaderFactory)
*/
@Override
public IASTTranslationUnit getTranslationUnit(IFile fileToParse, ICodeReaderFactory fileCreator)
throws UnsupportedDialectException {
return getTranslationUnit(fileToParse.getLocation().toOSString(), fileToParse, fileCreator, null);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.IASTServiceProvider#getTranslationUnit(org.eclipse.cdt.core.dom.ICodeReaderFactory, org.eclipse.cdt.core.dom.IParserConfiguration)
*/
@Override
public IASTTranslationUnit getTranslationUnit(IFile fileToParse, ICodeReaderFactory fileCreator,
IParserConfiguration configuration) throws UnsupportedDialectException {

View file

@ -28,18 +28,12 @@ import org.eclipse.cdt.core.parser.ParserUtil;
import org.eclipse.cdt.internal.core.parser.EmptyIterator;
import org.eclipse.core.runtime.CoreException;
/**
* @author jcamelon
*/
@Deprecated
public class PartialWorkingCopyCodeReaderFactory extends AbstractCodeReaderFactory {
private final IWorkingCopyProvider provider;
private ICodeReaderCache cache = null;
/**
* @param provider
*/
public PartialWorkingCopyCodeReaderFactory(IWorkingCopyProvider provider,
IIncludeFileResolutionHeuristics heuristics) {
super(heuristics);
@ -47,17 +41,11 @@ public class PartialWorkingCopyCodeReaderFactory extends AbstractCodeReaderFacto
cache = SavedCodeReaderFactory.getInstance().getCodeReaderCache();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ICodeReaderFactory#getUniqueIdentifier()
*/
@Override
public int getUniqueIdentifier() {
return CDOM.PARSE_WORKING_COPY_WITH_SAVED_INCLUSIONS;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ICodeReaderFactory#createCodeReaderForTranslationUnit(java.lang.String)
*/
@Override
public CodeReader createCodeReaderForTranslationUnit(String path) {
return checkWorkingCopyThenCache(path);
@ -74,9 +62,6 @@ public class PartialWorkingCopyCodeReaderFactory extends AbstractCodeReaderFacto
return cache.get(path);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ICodeReaderFactory#createCodeReaderForInclusion(java.lang.String)
*/
@Override
public CodeReader createCodeReaderForInclusion(String path) {
return cache.get(path);
@ -94,9 +79,6 @@ public class PartialWorkingCopyCodeReaderFactory extends AbstractCodeReaderFacto
return Arrays.asList(provider.getWorkingCopies()).iterator();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ICodeReaderFactory#getCodeReaderCache()
*/
@Override
public ICodeReaderCache getCodeReaderCache() {
return cache;

View file

@ -73,17 +73,11 @@ public class SavedCodeReaderFactory extends AbstractCodeReaderFactory {
}
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ICodeReaderFactory#getUniqueIdentifier()
*/
@Override
public int getUniqueIdentifier() {
return CDOM.PARSE_SAVED_RESOURCES;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ICodeReaderFactory#createCodeReaderForTranslationUnit(java.lang.String)
*/
@Override
public CodeReader createCodeReaderForTranslationUnit(String path) {
return cache.get(path);
@ -93,9 +87,6 @@ public class SavedCodeReaderFactory extends AbstractCodeReaderFactory {
return new CodeReader(tu.getResource().getLocation().toOSString(), tu.getContents());
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ICodeReaderFactory#createCodeReaderForInclusion(java.lang.String)
*/
@Override
public CodeReader createCodeReaderForInclusion(String path) {
return cache.get(path);
@ -107,9 +98,6 @@ public class SavedCodeReaderFactory extends AbstractCodeReaderFactory {
return cache.get(astPath, ifl);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ICodeReaderFactory#createCodeReaderForInclusion(java.lang.String)
*/
@Override
public ICodeReaderCache getCodeReaderCache() {
return cache;

View file

@ -55,9 +55,6 @@ public class BuildSystemEnvironmentSupplier implements ICoreEnvironmentVariableS
fStartData = level;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.envvar.IEnvironmentVariableProvider#getVariable(java.lang.String, java.lang.Object, boolean)
*/
@Override
public IEnvironmentVariable getVariable(String variableName, ICConfigurationDescription cfg,
boolean resolveMacros) {
@ -71,9 +68,6 @@ public class BuildSystemEnvironmentSupplier implements ICoreEnvironmentVariableS
return filterVariables(super.getVariables(cfg, resolveMacros));
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.internal.envvar.EnvironmentVariableProvider#getContextInfo(java.lang.Object)
*/
@Override
public IEnvironmentContextInfo getContextInfo(Object level) {
IEnvironmentContextInfo startInfo = getStartInfo();
@ -153,9 +147,6 @@ public class BuildSystemEnvironmentSupplier implements ICoreEnvironmentVariableS
}
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.envvar.IEnvironmentVariableSupplier#getVariable()
*/
@Override
public IEnvironmentVariable getVariable(String name, Object context) {
if (context == null)
@ -175,9 +166,6 @@ public class BuildSystemEnvironmentSupplier implements ICoreEnvironmentVariableS
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.envvar.IEnvironmentVariableSupplier#getVariables()
*/
@Override
public IEnvironmentVariable[] getVariables(Object context) {
if (context == null)

View file

@ -57,9 +57,6 @@ public class DefaultEnvironmentContextInfo implements IEnvironmentContextInfo {
return suppliers;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.internal.envvar.IContextInfo#getNext()
*/
@Override
public IEnvironmentContextInfo getNext() {
DefaultEnvironmentContextInfo next = null;
@ -71,9 +68,6 @@ public class DefaultEnvironmentContextInfo implements IEnvironmentContextInfo {
return next;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.internal.envvar.IContextInfo#getSuppliers()
*/
@Override
public ICoreEnvironmentVariableSupplier[] getSuppliers() {
if (fContextSuppliers == null)
@ -85,9 +79,6 @@ public class DefaultEnvironmentContextInfo implements IEnvironmentContextInfo {
fContextSuppliers = suppliers;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.internal.envvar.IContextInfo#getContext()
*/
@Override
public Object getContext() {
return fContextObject;

View file

@ -28,9 +28,6 @@ import org.eclipse.cdt.utils.spawner.EnvironmentReader;
*/
public class EclipseEnvironmentSupplier implements ICoreEnvironmentVariableSupplier {
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.envvar.IEnvironmentVariableSupplier#getVariable()
*/
@Override
public IEnvironmentVariable getVariable(String name, Object context) {
if (context == null) {
@ -42,9 +39,6 @@ public class EclipseEnvironmentSupplier implements ICoreEnvironmentVariableSuppl
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.envvar.IEnvironmentVariableSupplier#getVariables()
*/
@Override
public IEnvironmentVariable[] getVariables(Object context) {
if (context == null) {

View file

@ -20,65 +20,41 @@ import org.eclipse.cdt.core.IAddressFactory2;
public class Addr32Factory implements IAddressFactory2 {
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IAddressFactory#getZero()
*/
@Override
public IAddress getZero() {
return Addr32.ZERO;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IAddressFactory#getMax()
*/
@Override
public IAddress getMax() {
return Addr32.MAX;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IAddressFactory#createAddress(java.lang.String)
*/
@Override
public IAddress createAddress(String addr) {
return createAddress(addr, true);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IAddressFactory2#createAddress(java.lang.String, boolean)
*/
@Override
public IAddress createAddress(String addr, boolean truncate) {
return new Addr32(addr, truncate);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IAddressFactory#createAddress(java.lang.String, int)
*/
@Override
public IAddress createAddress(String addr, int radix) {
return createAddress(addr, radix, true);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IAddressFactory2#createAddress(java.lang.String, int, boolean)
*/
@Override
public IAddress createAddress(String addr, int radix, boolean truncate) {
return new Addr32(addr, radix, truncate);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IAddressFactory#createAddress(java.math.BigInteger)
*/
@Override
public IAddress createAddress(BigInteger addr) {
return createAddress(addr, true);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IAddressFactory2#createAddress(java.math.BigInteger, boolean)
*/
@Override
public IAddress createAddress(BigInteger addr, boolean truncate) {
return new Addr32(addr.longValue(), truncate);

View file

@ -20,65 +20,41 @@ import org.eclipse.cdt.core.IAddressFactory2;
public class Addr64Factory implements IAddressFactory2 {
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IAddressFactory#getZero()
*/
@Override
public IAddress getZero() {
return Addr64.ZERO;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IAddressFactory#getMax()
*/
@Override
public IAddress getMax() {
return Addr64.MAX;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IAddressFactory#createAddress(java.lang.String)
*/
@Override
public IAddress createAddress(String addr) {
return createAddress(addr, true);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IAddressFactory2#createAddress(java.lang.String, boolean)
*/
@Override
public IAddress createAddress(String addr, boolean truncate) {
return new Addr64(addr, truncate);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IAddressFactory#createAddress(java.lang.String, int)
*/
@Override
public IAddress createAddress(String addr, int radix) {
return createAddress(addr, radix, true);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IAddressFactory2#createAddress(java.lang.String, int, boolean)
*/
@Override
public IAddress createAddress(String addr, int radix, boolean truncate) {
return new Addr64(addr, radix, truncate);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IAddressFactory#createAddress(java.math.BigInteger)
*/
@Override
public IAddress createAddress(BigInteger addr) {
return createAddress(addr, true);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IAddressFactory2#createAddress(java.math.BigInteger, boolean)
*/
@Override
public IAddress createAddress(BigInteger addr, boolean truncate) {
return new Addr64(addr, truncate);

View file

@ -48,9 +48,6 @@ public abstract class BinaryObjectAdapter extends BinaryFile implements IBinaryO
super(parser, path, type);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser.IBinaryObject#getSymbol(long)
*/
@Override
public ISymbol getSymbol(IAddress addr) {
ISymbol[] syms = getSymbols();

View file

@ -23,16 +23,10 @@ import org.eclipse.core.runtime.Path;
public class DefaultGnuToolFactory implements IGnuToolFactory {
protected ICExtension fExtension;
/**
*
*/
public DefaultGnuToolFactory(ICExtension ext) {
fExtension = ext;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.IGnuToolProvider#getAddr2line(org.eclipse.core.runtime.IPath)
*/
@Override
public Addr2line getAddr2line(IPath path) {
IPath addr2LinePath = getAddr2linePath();
@ -46,9 +40,6 @@ public class DefaultGnuToolFactory implements IGnuToolFactory {
return addr2line;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.IGnuToolProvider#getCPPFilt()
*/
@Override
public CPPFilt getCPPFilt() {
IPath cppFiltPath = getCPPFiltPath();
@ -62,9 +53,6 @@ public class DefaultGnuToolFactory implements IGnuToolFactory {
return cppfilt;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.IGnuToolProvider#getObjdump(org.eclipse.core.runtime.IPath)
*/
@Override
public Objdump getObjdump(IPath path) {
IPath objdumpPath = getObjdumpPath();
@ -79,9 +67,6 @@ public class DefaultGnuToolFactory implements IGnuToolFactory {
return objdump;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.IGnuToolProvider#getObjdump(org.eclipse.core.runtime.IPath)
*/
@Override
public NM getNM(IPath path) {
IPath nmPath = getNMPath();

View file

@ -53,33 +53,21 @@ public class Symbol implements ISymbol {
this.sourceFile = null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser.ISymbol#getBinarObject()
*/
@Override
public IBinaryObject getBinaryObject() {
return binary;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser.ISymbol#getFilename()
*/
@Override
public IPath getFilename() {
return sourceFile;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser.ISymbol#getName()
*/
@Override
public String getName() {
return name;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser.ISymbol#getType()
*/
@Override
public int getType() {
return type;

View file

@ -62,9 +62,6 @@ public class SupplierBasedCdtVariableSubstitutor implements IVariableSubstitutor
fIsList = true;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacro#getStringValue()
*/
@Override
public String getStringValue() throws CdtVariableException {
// if(!fIsDefined)
@ -74,9 +71,6 @@ public class SupplierBasedCdtVariableSubstitutor implements IVariableSubstitutor
return fStringValue;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacro#getStringListValue()
*/
@Override
public String[] getStringListValue() throws CdtVariableException {
// if(!fIsDefined)
@ -235,9 +229,6 @@ public class SupplierBasedCdtVariableSubstitutor implements IVariableSubstitutor
return result;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.internal.macros.IMacroSubstitutor#resolveToString(java.lang.String)
*/
@Override
public String resolveToString(String macroName) throws CdtVariableException {
return resolveToString(new MacroDescriptor(macroName, fContextInfo));
@ -274,9 +265,6 @@ public class SupplierBasedCdtVariableSubstitutor implements IVariableSubstitutor
return des.fMacro != null ? resolveMacro(des.fMacro) : resolveMacro(des.fName);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.internal.macros.IMacroSubstitutor#resolveToStringList(java.lang.String)
*/
@Override
public String[] resolveToStringList(String macroName) throws CdtVariableException {
return resolveToStringList(new MacroDescriptor(macroName, fContextInfo));
@ -419,9 +407,6 @@ public class SupplierBasedCdtVariableSubstitutor implements IVariableSubstitutor
return fResolvedMacros.remove(name);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.internal.macros.IMacroSubstitutor#getMacroContextInfo()
*/
public IVariableContextInfo getMacroContextInfo() {
return fContextInfo;
}

View file

@ -66,9 +66,6 @@ public class CygwinPEParser extends PEParser {
return new DefaultCygwinToolFactory(this);
}
/* (non-Javadoc)
* @see org.eclipse.core.runtime.PlatformObject#getAdapter(java.lang.Class)
*/
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public Object getAdapter(Class adapter) {

View file

@ -64,9 +64,6 @@ public class CygwinPEParser64 extends PEParser64 {
return new DefaultCygwinToolFactory(this);
}
/* (non-Javadoc)
* @see org.eclipse.core.runtime.PlatformObject#getAdapter(java.lang.Class)
*/
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public Object getAdapter(Class adapter) {

View file

@ -59,9 +59,6 @@ class CygwinSymbol extends Symbol {
super(binary, name, type, addr, size);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.Symbol#getLineNumber(long)
*/
@Override
public int getLineNumber(long offset) {
int line = -1;

View file

@ -61,9 +61,6 @@ class CygwinSymbol64 extends Symbol {
super(binary, name, type, addr, size);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.Symbol#getLineNumber(long)
*/
@Override
public int getLineNumber(long offset) {
int line = -1;

View file

@ -53,9 +53,6 @@ public class PEBinaryObject64 extends BinaryObjectAdapter {
super(parser, p, type);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.BinaryObjectAdapter#getName()
*/
@Override
public String getName() {
if (header != null) {
@ -64,9 +61,6 @@ public class PEBinaryObject64 extends BinaryObjectAdapter {
return super.getName();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser.IBinaryFile#getContents()
*/
@Override
public InputStream getContents() throws IOException {
if (getPath() != null && header != null) {
@ -190,9 +184,6 @@ public class PEBinaryObject64 extends BinaryObjectAdapter {
}
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.BinaryObjectAdapter#getAddressFactory()
*/
@Override
public IAddressFactory getAddressFactory() {
if (addressFactory == null) {

View file

@ -32,17 +32,11 @@ import org.eclipse.core.runtime.IPath;
*/
public class PEParser64 extends AbstractCExtension implements IBinaryParser {
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser#getBinary(org.eclipse.core.runtime.IPath)
*/
@Override
public IBinaryFile getBinary(IPath path) throws IOException {
return getBinary(null, path);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser#getBinary(byte[], org.eclipse.core.runtime.IPath)
*/
@Override
public IBinaryFile getBinary(byte[] hints, IPath path) throws IOException {
if (path == null) {
@ -99,9 +93,6 @@ public class PEParser64 extends AbstractCExtension implements IBinaryParser {
return "PE"; //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser#isBinary(byte[], org.eclipse.core.runtime.IPath)
*/
@Override
public boolean isBinary(byte[] array, IPath path) {
boolean isBin = PE64.isExeHeader(array) || AR.isARHeader(array);
@ -134,9 +125,6 @@ public class PEParser64 extends AbstractCExtension implements IBinaryParser {
return isBin;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser#getHintBufferSize()
*/
@Override
public int getHintBufferSize() {
return 512;

View file

@ -48,9 +48,6 @@ public class TypeNumber {
return super.equals(obj);
}
/* (non-Javadoc)
* @see java.lang.Object#hashCode()
*/
@Override
public int hashCode() {
return fileno * 10 + typeno;

View file

@ -70,9 +70,6 @@ public class DebugSymsRequestor implements IDebugEntryRequestor {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#enterCompilationUnit(java.lang.String, long)
*/
@Override
public void enterCompilationUnit(String name, long address) {
DebugSym sym = new DebugSym();
@ -84,9 +81,6 @@ public class DebugSymsRequestor implements IDebugEntryRequestor {
list.add(sym);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#exitCompilationUnit(long)
*/
@Override
public void exitCompilationUnit(long address) {
if (currentCU != null) {
@ -95,23 +89,14 @@ public class DebugSymsRequestor implements IDebugEntryRequestor {
currentCU = null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#enterInclude(java.lang.String)
*/
@Override
public void enterInclude(String name) {
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#exitInclude()
*/
@Override
public void exitInclude() {
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#enterFunction(java.lang.String, int, boolean, long)
*/
@Override
public void enterFunction(String name, DebugType type, boolean isGlobal, long address) {
DebugSym sym = new DebugSym();
@ -125,9 +110,6 @@ public class DebugSymsRequestor implements IDebugEntryRequestor {
list.add(sym);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#exitFunction(long)
*/
@Override
public void exitFunction(long address) {
if (currentFunction != null) {
@ -136,23 +118,14 @@ public class DebugSymsRequestor implements IDebugEntryRequestor {
currentFunction = null;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#enterCodeBlock(long)
*/
@Override
public void enterCodeBlock(long offset) {
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#exitCodeBlock(long)
*/
@Override
public void exitCodeBlock(long offset) {
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#acceptStatement(int, long)
*/
@Override
public void acceptStatement(int line, long address) {
DebugSym sym = new DebugSym();
@ -172,30 +145,18 @@ public class DebugSymsRequestor implements IDebugEntryRequestor {
list.add(sym);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#acceptIntegerConst(java.lang.String, long)
*/
@Override
public void acceptIntegerConst(String name, int value) {
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#acceptFloatConst(java.lang.String, double)
*/
@Override
public void acceptFloatConst(String name, double value) {
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#acceptTypeConst(java.lang.String, org.eclipse.cdt.utils.debug.DebugType, int)
*/
@Override
public void acceptTypeConst(String name, DebugType type, int value) {
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#acceptParameter(java.lang.String, int, int, long)
*/
@Override
public void acceptParameter(String name, DebugType type, DebugParameterKind kind, long offset) {
DebugSym sym = new DebugSym();
@ -208,9 +169,6 @@ public class DebugSymsRequestor implements IDebugEntryRequestor {
list.add(sym);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#acceptVariable(java.lang.String, int, int, long)
*/
@Override
public void acceptVariable(String name, DebugType type, DebugVariableKind kind, long address) {
DebugSym sym = new DebugSym();
@ -223,16 +181,10 @@ public class DebugSymsRequestor implements IDebugEntryRequestor {
list.add(sym);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#acceptCaughtException(java.lang.String, org.eclipse.cdt.utils.debug.DebugType, long)
*/
@Override
public void acceptCaughtException(String name, DebugType type, long address) {
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#acceptTypeDef(java.lang.String, org.eclipse.cdt.utils.debug.DebugType)
*/
@Override
public void acceptTypeDef(String name, DebugType type) {
}

View file

@ -61,9 +61,6 @@ public class ElfBinaryObject extends BinaryObjectAdapter {
fElfAttributes = elfAttributes;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.BinaryObjectAdapter#getName()
*/
@Override
public String getName() {
if (header != null) {
@ -72,9 +69,6 @@ public class ElfBinaryObject extends BinaryObjectAdapter {
return super.getName();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser.IBinaryFile#getContents()
*/
@Override
public InputStream getContents() throws IOException {
if (getPath() != null && header != null) {
@ -83,9 +77,6 @@ public class ElfBinaryObject extends BinaryObjectAdapter {
return super.getContents();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser.IBinaryObject#getSymbols()
*/
@Override
public ISymbol[] getSymbols() {
// Call the hasChanged first, to initialize the timestamp
@ -99,9 +90,6 @@ public class ElfBinaryObject extends BinaryObjectAdapter {
return symbols;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.BinaryObjectAdapter#getBinaryObjectInfo()
*/
@Override
protected BinaryObjectInfo getBinaryObjectInfo() {
// Call the hasChanged first, to initialize the timestamp
@ -219,9 +207,6 @@ public class ElfBinaryObject extends BinaryObjectAdapter {
return super.getAdapter(adapter);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.utils.BinaryObjectAdapter#getAddressFactory()
*/
@Override
public IAddressFactory getAddressFactory() {
if (addressFactory == null) {
@ -239,9 +224,6 @@ public class ElfBinaryObject extends BinaryObjectAdapter {
return addressFactory;
}
/*
* @see org.eclipse.cdt.utils.BinaryObjectAdapter#isLittleEndian()
*/
@Override
public boolean isLittleEndian() {
if (fElfAttributes != null) {
@ -250,9 +232,6 @@ public class ElfBinaryObject extends BinaryObjectAdapter {
return super.isLittleEndian();
}
/*
* @see org.eclipse.cdt.utils.BinaryObjectAdapter#getCPU()
*/
@Override
public String getCPU() {
if (fElfAttributes != null) {

View file

@ -33,13 +33,8 @@ import org.eclipse.cdt.utils.elf.Elf.PHdr;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IStatus;
/**
*/
public class ElfParser extends AbstractCExtension implements IBinaryParser {
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser#getBinary(org.eclipse.core.runtime.IPath)
*/
@Override
public IBinaryFile getBinary(IPath path) throws IOException {
return getBinary(null, path);
@ -95,25 +90,16 @@ public class ElfParser extends AbstractCExtension implements IBinaryParser {
return binary;
}
/**
* @see org.eclipse.cdt.core.IBinaryParser#getFormat()
*/
@Override
public String getFormat() {
return "ELF"; //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser#isBinary(byte[], org.eclipse.core.runtime.IPath)
*/
@Override
public boolean isBinary(byte[] array, IPath path) {
return Elf.isElfHeader(array) || AR.isARHeader(array);
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.IBinaryParser#getBufferSize()
*/
@Override
public int getHintBufferSize() {
return 128;

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