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:
parent
259908f6ae
commit
ae8d8b16b8
177 changed files with 190 additions and 2401 deletions
|
@ -35,25 +35,16 @@ public class LanguageMappingChangeEvent implements ILanguageMappingChangeEvent {
|
||||||
private String fFileName;
|
private String fFileName;
|
||||||
private IContentType[] fContentTypes;
|
private IContentType[] fContentTypes;
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ILanguageMappingsChangeEvent#getAffectedContentTypes()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IContentType[] getAffectedContentTypes() {
|
public IContentType[] getAffectedContentTypes() {
|
||||||
return fContentTypes;
|
return fContentTypes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ILanguageMappingsChangeEvent#getFile()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IFile getFile() {
|
public IFile getFile() {
|
||||||
return fFile;
|
return fFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ILanguageMappingsChangeEvent#getFilename()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getFilename() {
|
public String getFilename() {
|
||||||
|
|
||||||
|
@ -85,9 +76,6 @@ public class LanguageMappingChangeEvent implements ILanguageMappingChangeEvent {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ILanguageMappingsChangeEvent#getPath()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IPath getPath() {
|
public IPath getPath() {
|
||||||
|
|
||||||
|
@ -104,9 +92,6 @@ public class LanguageMappingChangeEvent implements ILanguageMappingChangeEvent {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ILanguageMappingsChangeEvent#getProject()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IProject getProject() {
|
public IProject getProject() {
|
||||||
|
|
||||||
|
@ -123,9 +108,6 @@ public class LanguageMappingChangeEvent implements ILanguageMappingChangeEvent {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ILanguageMappingsChangeEvent#getType()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getType() {
|
public int getType() {
|
||||||
return fType;
|
return fType;
|
||||||
|
|
|
@ -19,9 +19,6 @@ package org.eclipse.cdt.core.settings.model;
|
||||||
* See {@link ICSettingEntry#MACRO}.
|
* See {@link ICSettingEntry#MACRO}.
|
||||||
*/
|
*/
|
||||||
public interface ICMacroEntry extends ICLanguageSettingEntry {
|
public interface ICMacroEntry extends ICLanguageSettingEntry {
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingEntry#getValue()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
String getValue();
|
String getValue();
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,15 +25,9 @@ public abstract class MultiItemsHolder implements ICMultiItemsHolder {
|
||||||
/** @since 5.2 */
|
/** @since 5.2 */
|
||||||
protected static final boolean DEBUG = false;
|
protected static final boolean DEBUG = false;
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICMultiItemsHolder#getItems()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public abstract Object[] getItems();
|
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
|
* This method is put here to prevent UI from
|
||||||
* accessing constructors in "internal" dirs.
|
* accessing constructors in "internal" dirs.
|
||||||
|
|
|
@ -29,17 +29,11 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
|
||||||
cfgd = cf;
|
cfgd = cf;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#getLanguageId()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getLanguageId() {
|
public String getLanguageId() {
|
||||||
return items[0].getLanguageId(); // Assuming language is the same.
|
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) {
|
public ICLanguageSettingEntry[][] getSettingEntriesM(int kind) {
|
||||||
ICLanguageSettingEntry[][] le = new ICLanguageSettingEntry[items.length][];
|
ICLanguageSettingEntry[][] le = new ICLanguageSettingEntry[items.length][];
|
||||||
for (int i = 0; i < items.length; i++)
|
for (int i = 0; i < items.length; i++)
|
||||||
|
@ -48,17 +42,11 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
|
||||||
// return conv2LSE(getListForDisplay(le, comp));
|
// return conv2LSE(getListForDisplay(le, comp));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#getSettingEntriesList(int)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public List<ICLanguageSettingEntry> getSettingEntriesList(int kind) {
|
public List<ICLanguageSettingEntry> getSettingEntriesList(int kind) {
|
||||||
return Arrays.asList(getSettingEntries(kind));
|
return Arrays.asList(getSettingEntries(kind));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#getSourceContentTypeIds()
|
|
||||||
*/
|
|
||||||
public String[][] getSourceContentTypeIdsM() {
|
public String[][] getSourceContentTypeIdsM() {
|
||||||
String[][] ss = new String[items.length][];
|
String[][] ss = new String[items.length][];
|
||||||
for (int i = 0; i < items.length; i++)
|
for (int i = 0; i < items.length; i++)
|
||||||
|
@ -66,9 +54,6 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
|
||||||
return ss;
|
return ss;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#getSourceExtensions()
|
|
||||||
*/
|
|
||||||
public String[][] getSourceExtensionsM() {
|
public String[][] getSourceExtensionsM() {
|
||||||
String[][] ss = new String[items.length][];
|
String[][] ss = new String[items.length][];
|
||||||
for (int i = 0; i < items.length; i++)
|
for (int i = 0; i < items.length; i++)
|
||||||
|
@ -76,9 +61,6 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
|
||||||
return ss;
|
return ss;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#getSupportedEntryKinds()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getSupportedEntryKinds() {
|
public int getSupportedEntryKinds() {
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
@ -87,52 +69,34 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#setLanguageId(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setLanguageId(String id) {
|
public void setLanguageId(String id) {
|
||||||
} // Do nothing
|
} // Do nothing
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#setSettingEntries(int, org.eclipse.cdt.core.settings.model.ICLanguageSettingEntry[])
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setSettingEntries(int kind, ICLanguageSettingEntry[] entries) {
|
public void setSettingEntries(int kind, ICLanguageSettingEntry[] entries) {
|
||||||
for (ICLanguageSetting item : items)
|
for (ICLanguageSetting item : items)
|
||||||
item.setSettingEntries(kind, entries);
|
item.setSettingEntries(kind, entries);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#setSettingEntries(int, java.util.List)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setSettingEntries(int kind, List<ICLanguageSettingEntry> entriesList) {
|
public void setSettingEntries(int kind, List<ICLanguageSettingEntry> entriesList) {
|
||||||
for (ICLanguageSetting item : items)
|
for (ICLanguageSetting item : items)
|
||||||
item.setSettingEntries(kind, entriesList);
|
item.setSettingEntries(kind, entriesList);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#setSourceContentTypeIds(java.lang.String[])
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setSourceContentTypeIds(String[] ids) {
|
public void setSourceContentTypeIds(String[] ids) {
|
||||||
for (ICLanguageSetting item : items)
|
for (ICLanguageSetting item : items)
|
||||||
item.setSourceContentTypeIds(ids);
|
item.setSourceContentTypeIds(ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#setSourceExtensions(java.lang.String[])
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setSourceExtensions(String[] exts) {
|
public void setSourceExtensions(String[] exts) {
|
||||||
for (ICLanguageSetting item : items)
|
for (ICLanguageSetting item : items)
|
||||||
item.setSourceExtensions(exts);
|
item.setSourceExtensions(exts);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#supportsEntryKind(int)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean supportsEntryKind(int kind) {
|
public boolean supportsEntryKind(int kind) {
|
||||||
for (ICLanguageSetting item : items)
|
for (ICLanguageSetting item : items)
|
||||||
|
@ -141,9 +105,6 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getConfiguration()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICConfigurationDescription getConfiguration() {
|
public ICConfigurationDescription getConfiguration() {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -151,9 +112,6 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
|
||||||
return null; // CFGs are different
|
return null; // CFGs are different
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getId()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getId() { // IDs are different
|
public String getId() { // IDs are different
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -161,17 +119,11 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getName()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getName() { // names are proposed to be equal
|
public String getName() { // names are proposed to be equal
|
||||||
return items[0].getName();
|
return items[0].getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getParent()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICSettingContainer getParent() {
|
public ICSettingContainer getParent() {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -179,9 +131,6 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
|
||||||
return null; // Parents are different
|
return null; // Parents are different
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getType()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getType() {
|
public int getType() {
|
||||||
int x = items[0].getType();
|
int x = items[0].getType();
|
||||||
|
@ -191,9 +140,6 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#isReadOnly()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isReadOnly() {
|
public boolean isReadOnly() {
|
||||||
for (int i = 0; i < items.length; i++)
|
for (int i = 0; i < items.length; i++)
|
||||||
|
@ -202,9 +148,6 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#isValid()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
for (int i = 0; i < items.length; i++)
|
for (int i = 0; i < items.length; i++)
|
||||||
|
|
|
@ -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
|
* Handle the renaming and deletion of project resources
|
||||||
* This is necessary in order to update ResourceConfigurations and AdditionalInputs
|
* This is necessary in order to update ResourceConfigurations and AdditionalInputs
|
||||||
*
|
*
|
||||||
|
|
|
@ -139,9 +139,6 @@ public abstract class APathEntry extends PathEntry {
|
||||||
return super.equals(obj);
|
return super.equals(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.lang.Object#toString()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
|
@ -52,9 +52,6 @@ public class Archive extends Openable implements IArchive {
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElement#isReadOnly()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isReadOnly() {
|
public boolean isReadOnly() {
|
||||||
return true;
|
return true;
|
||||||
|
@ -89,9 +86,6 @@ public class Archive extends Openable implements IArchive {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
|
|
||||||
*/
|
|
||||||
@SuppressWarnings("rawtypes")
|
@SuppressWarnings("rawtypes")
|
||||||
@Override
|
@Override
|
||||||
public Object getAdapter(Class adapter) {
|
public Object getAdapter(Class adapter) {
|
||||||
|
@ -105,9 +99,6 @@ public class Archive extends Openable implements IArchive {
|
||||||
return binaryArchive;
|
return binaryArchive;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElement#exists()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean exists() {
|
public boolean exists() {
|
||||||
IResource res = getResource();
|
IResource res = getResource();
|
||||||
|
@ -116,9 +107,6 @@ public class Archive extends Openable implements IArchive {
|
||||||
return super.exists();
|
return super.exists();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.CElement#closing(java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected void closing(Object info) throws CModelException {
|
protected void closing(Object info) throws CModelException {
|
||||||
ICProject cproject = getCProject();
|
ICProject cproject = getCProject();
|
||||||
|
|
|
@ -61,9 +61,6 @@ public class ArchiveContainer extends Openable implements IArchiveContainer {
|
||||||
return new ArchiveContainerInfo(this);
|
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
|
@Override
|
||||||
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map<ICElement, CElementInfo> newElements,
|
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map<ICElement, CElementInfo> newElements,
|
||||||
IResource underlyingResource) throws CModelException {
|
IResource underlyingResource) throws CModelException {
|
||||||
|
|
|
@ -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
|
@Override
|
||||||
protected void addChild(ICElement child) {
|
protected void addChild(ICElement child) {
|
||||||
if (!includesChild(child)) {
|
if (!includesChild(child)) {
|
||||||
|
|
|
@ -30,9 +30,6 @@ public class BatchOperation extends CModelOperation {
|
||||||
this.runnable = runnable;
|
this.runnable = runnable;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.jdt.internal.core.JavaModelOperation#executeOperation()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected void executeOperation() throws CModelException {
|
protected void executeOperation() throws CModelException {
|
||||||
try {
|
try {
|
||||||
|
@ -51,9 +48,6 @@ public class BatchOperation extends CModelOperation {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.jdt.internal.core.JavaModelOperation#verify()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected ICModelStatus verify() {
|
protected ICModelStatus verify() {
|
||||||
// cannot verify user defined operation
|
// cannot verify user defined operation
|
||||||
|
|
|
@ -212,9 +212,6 @@ public class Binary extends Openable implements IBinary {
|
||||||
return binaryObject;
|
return binaryObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
|
|
||||||
*/
|
|
||||||
@SuppressWarnings("rawtypes")
|
@SuppressWarnings("rawtypes")
|
||||||
@Override
|
@Override
|
||||||
public Object getAdapter(Class adapter) {
|
public Object getAdapter(Class adapter) {
|
||||||
|
@ -258,9 +255,6 @@ public class Binary extends Openable implements IBinary {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElement#isReadOnly()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isReadOnly() {
|
public boolean isReadOnly() {
|
||||||
return true;
|
return true;
|
||||||
|
@ -271,9 +265,6 @@ public class Binary extends Openable implements IBinary {
|
||||||
return new BinaryInfo(this);
|
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
|
@Override
|
||||||
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map<ICElement, CElementInfo> newElements,
|
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map<ICElement, CElementInfo> newElements,
|
||||||
IResource underlyingResource) throws CModelException {
|
IResource underlyingResource) throws CModelException {
|
||||||
|
@ -470,9 +461,6 @@ public class Binary extends Openable implements IBinary {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.Openable#openBuffer(org.eclipse.core.runtime.IProgressMonitor)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected IBuffer openBuffer(IProgressMonitor pm) throws CModelException {
|
protected IBuffer openBuffer(IProgressMonitor pm) throws CModelException {
|
||||||
|
|
||||||
|
@ -515,17 +503,11 @@ public class Binary extends Openable implements IBinary {
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.Openable#hasBuffer()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean hasBuffer() {
|
protected boolean hasBuffer() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElement#exists()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean exists() {
|
public boolean exists() {
|
||||||
IResource res = getResource();
|
IResource res = getResource();
|
||||||
|
@ -534,9 +516,6 @@ public class Binary extends Openable implements IBinary {
|
||||||
return super.exists();
|
return super.exists();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.CElement#closing(java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected void closing(Object info) throws CModelException {
|
protected void closing(Object info) throws CModelException {
|
||||||
ICProject cproject = getCProject();
|
ICProject cproject = getCProject();
|
||||||
|
|
|
@ -78,9 +78,6 @@ public class BinaryContainer extends Openable implements IBinaryContainer {
|
||||||
return new BinaryContainerInfo(this);
|
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
|
@Override
|
||||||
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map<ICElement, CElementInfo> newElements,
|
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map<ICElement, CElementInfo> newElements,
|
||||||
IResource underlyingResource) throws CModelException {
|
IResource underlyingResource) throws CModelException {
|
||||||
|
|
|
@ -27,9 +27,6 @@ public class BinaryContainerInfo extends OpenableInfo {
|
||||||
super(element);
|
super(element);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.CElementInfo#addChild(org.eclipse.cdt.core.model.ICElement)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected void addChild(ICElement child) {
|
protected void addChild(ICElement child) {
|
||||||
if (!includesChild(child)) {
|
if (!includesChild(child)) {
|
||||||
|
|
|
@ -50,43 +50,28 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
|
||||||
addr = a;
|
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
|
@Override
|
||||||
public void copy(ICElement container, ICElement sibling, String rename, boolean replace, IProgressMonitor monitor)
|
public void copy(ICElement container, ICElement sibling, String rename, boolean replace, IProgressMonitor monitor)
|
||||||
throws CModelException {
|
throws CModelException {
|
||||||
throw new CModelException(new CModelStatus(ICModelStatusConstants.READ_ONLY, this));
|
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
|
@Override
|
||||||
public void delete(boolean force, IProgressMonitor monitor) throws CModelException {
|
public void delete(boolean force, IProgressMonitor monitor) throws CModelException {
|
||||||
throw new CModelException(new CModelStatus(ICModelStatusConstants.READ_ONLY, this));
|
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
|
@Override
|
||||||
public void move(ICElement container, ICElement sibling, String rename, boolean replace, IProgressMonitor monitor)
|
public void move(ICElement container, ICElement sibling, String rename, boolean replace, IProgressMonitor monitor)
|
||||||
throws CModelException {
|
throws CModelException {
|
||||||
throw new CModelException(new CModelStatus(ICModelStatusConstants.READ_ONLY, this));
|
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
|
@Override
|
||||||
public void rename(String name, boolean replace, IProgressMonitor monitor) throws CModelException {
|
public void rename(String name, boolean replace, IProgressMonitor monitor) throws CModelException {
|
||||||
throw new CModelException(new CModelStatus(ICModelStatusConstants.READ_ONLY, this));
|
throw new CModelException(new CModelStatus(ICModelStatusConstants.READ_ONLY, this));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ISourceReference#getSource()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getSource() throws CModelException {
|
public String getSource() throws CModelException {
|
||||||
ITranslationUnit tu = getTranslationUnit();
|
ITranslationUnit tu = getTranslationUnit();
|
||||||
|
@ -104,18 +89,12 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
|
||||||
return ""; //$NON-NLS-1$
|
return ""; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ISourceReference#getSourceRange()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ISourceRange getSourceRange() throws CModelException {
|
public ISourceRange getSourceRange() throws CModelException {
|
||||||
return new SourceRange(getStartPos(), getLength(), getIdStartPos(), getIdLength(), getStartLine(),
|
return new SourceRange(getStartPos(), getLength(), getIdStartPos(), getIdLength(), getStartLine(),
|
||||||
getEndLine());
|
getEndLine());
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ISourceReference#getTranslationUnit()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ITranslationUnit getTranslationUnit() {
|
public ITranslationUnit getTranslationUnit() {
|
||||||
if (fSourceTU == null) {
|
if (fSourceTU == null) {
|
||||||
|
@ -157,25 +136,16 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
|
||||||
return fSourceTU;
|
return fSourceTU;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.CElement#createElementInfo()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected CElementInfo createElementInfo() {
|
protected CElementInfo createElementInfo() {
|
||||||
return new CElementInfo(this);
|
return new CElementInfo(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElement#getResource()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IResource getResource() {
|
public IResource getResource() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IBinaryElement#getAddress()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddress getAddress() throws CModelException {
|
public IAddress getAddress() throws CModelException {
|
||||||
return addr;
|
return addr;
|
||||||
|
@ -214,9 +184,6 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IBinaryElement#getBinary()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IBinary getBinary() {
|
public IBinary getBinary() {
|
||||||
ICElement current = this;
|
ICElement current = this;
|
||||||
|
@ -228,9 +195,6 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
|
||||||
return null;
|
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
|
@Override
|
||||||
protected void generateInfos(CElementInfo info, Map<ICElement, CElementInfo> newElements, IProgressMonitor monitor)
|
protected void generateInfos(CElementInfo info, Map<ICElement, CElementInfo> newElements, IProgressMonitor monitor)
|
||||||
throws CModelException {
|
throws CModelException {
|
||||||
|
|
|
@ -18,87 +18,58 @@ import org.eclipse.cdt.core.IAddress;
|
||||||
import org.eclipse.cdt.core.model.IBinaryFunction;
|
import org.eclipse.cdt.core.model.IBinaryFunction;
|
||||||
import org.eclipse.cdt.core.model.ICElement;
|
import org.eclipse.cdt.core.model.ICElement;
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public class BinaryFunction extends BinaryElement implements IBinaryFunction {
|
public class BinaryFunction extends BinaryElement implements IBinaryFunction {
|
||||||
|
|
||||||
public BinaryFunction(ICElement parent, String name, IAddress a) {
|
public BinaryFunction(ICElement parent, String name, IAddress a) {
|
||||||
super(parent, name, ICElement.C_FUNCTION, a);
|
super(parent, name, ICElement.C_FUNCTION, a);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IFunctionDeclaration#getExceptions()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String[] getExceptions() {
|
public String[] getExceptions() {
|
||||||
return new String[0];
|
return new String[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IFunctionDeclaration#getNumberOfParameters()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getNumberOfParameters() {
|
public int getNumberOfParameters() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IFunctionDeclaration#getParameterInitializer(int)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getParameterInitializer(int pos) {
|
public String getParameterInitializer(int pos) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return ""; //$NON-NLS-1$
|
return ""; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IFunctionDeclaration#getParameterTypes()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String[] getParameterTypes() {
|
public String[] getParameterTypes() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return new String[0];
|
return new String[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IFunctionDeclaration#getReturnType()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getReturnType() {
|
public String getReturnType() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return ""; //$NON-NLS-1$
|
return ""; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IFunctionDeclaration#getSignature()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getSignature() {
|
public String getSignature() {
|
||||||
return getElementName();
|
return getElementName();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IDeclaration#isStatic()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isStatic() {
|
public boolean isStatic() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IDeclaration#isConst()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isConst() {
|
public boolean isConst() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IDeclaration#isVolatile()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isVolatile() {
|
public boolean isVolatile() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
|
@ -41,9 +41,6 @@ public class BinaryModule extends Parent implements IBinaryModule {
|
||||||
fPath = p;
|
fPath = p;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IBinaryModule#getBinaryElements()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IBinaryElement[] getBinaryElements() throws CModelException {
|
public IBinaryElement[] getBinaryElements() throws CModelException {
|
||||||
ICElement[] e = getChildren();
|
ICElement[] e = getChildren();
|
||||||
|
@ -52,25 +49,16 @@ public class BinaryModule extends Parent implements IBinaryModule {
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IBinaryElement#getAddress()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddress getAddress() throws CModelException {
|
public IAddress getAddress() throws CModelException {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IBinaryElement#getBinary()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IBinary getBinary() {
|
public IBinary getBinary() {
|
||||||
return (IBinary) getParent();
|
return (IBinary) getParent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElement#getResource()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IResource getResource() {
|
public IResource getResource() {
|
||||||
IWorkspaceRoot root = getCModel().getWorkspace().getRoot();
|
IWorkspaceRoot root = getCModel().getWorkspace().getRoot();
|
||||||
|
@ -81,33 +69,21 @@ public class BinaryModule extends Parent implements IBinaryModule {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElement#isReadOnly()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isReadOnly() {
|
public boolean isReadOnly() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.CElement#createElementInfo()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected CElementInfo createElementInfo() {
|
protected CElementInfo createElementInfo() {
|
||||||
return new CElementInfo(this);
|
return new CElementInfo(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElement#getPath()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IPath getPath() {
|
public IPath getPath() {
|
||||||
return fPath;
|
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
|
@Override
|
||||||
protected void generateInfos(CElementInfo info, Map<ICElement, CElementInfo> newElements, IProgressMonitor monitor)
|
protected void generateInfos(CElementInfo info, Map<ICElement, CElementInfo> newElements, IProgressMonitor monitor)
|
||||||
throws CModelException {
|
throws CModelException {
|
||||||
|
|
|
@ -49,9 +49,6 @@ public class BinaryRunner {
|
||||||
super(cproj);
|
super(cproj);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.CModelOperation#isReadOnly()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isReadOnly() {
|
public boolean isReadOnly() {
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -17,62 +17,41 @@ import org.eclipse.cdt.core.IAddress;
|
||||||
import org.eclipse.cdt.core.model.ICElement;
|
import org.eclipse.cdt.core.model.ICElement;
|
||||||
import org.eclipse.cdt.core.model.IVariable;
|
import org.eclipse.cdt.core.model.IVariable;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public class BinaryVariable extends BinaryElement implements IVariable {
|
public class BinaryVariable extends BinaryElement implements IVariable {
|
||||||
|
|
||||||
public BinaryVariable(ICElement parent, String name, IAddress a) {
|
public BinaryVariable(ICElement parent, String name, IAddress a) {
|
||||||
super(parent, name, ICElement.C_VARIABLE, a);
|
super(parent, name, ICElement.C_VARIABLE, a);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IVariable#getInitializer()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getInitializer() {
|
public String getInitializer() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return ""; //$NON-NLS-1$
|
return ""; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IVariableDeclaration#getTypeName()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getTypeName() {
|
public String getTypeName() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return ""; //$NON-NLS-1$
|
return ""; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IVariableDeclaration#setTypeName(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setTypeName(String type) {
|
public void setTypeName(String type) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IDeclaration#isStatic()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isStatic() {
|
public boolean isStatic() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IDeclaration#isConst()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isConst() {
|
public boolean isConst() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IDeclaration#isVolatile()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isVolatile() {
|
public boolean isVolatile() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
|
@ -49,81 +49,51 @@ public class CShiftData implements ICElementDelta {
|
||||||
return lines;
|
return lines;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElementDelta#getAddedChildren()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICElementDelta[] getAddedChildren() {
|
public ICElementDelta[] getAddedChildren() {
|
||||||
return new ICElementDelta[0];
|
return new ICElementDelta[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElementDelta#getAffectedChildren()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICElementDelta[] getAffectedChildren() {
|
public ICElementDelta[] getAffectedChildren() {
|
||||||
return new ICElementDelta[0];
|
return new ICElementDelta[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElementDelta#getChangedChildren()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICElementDelta[] getChangedChildren() {
|
public ICElementDelta[] getChangedChildren() {
|
||||||
return new ICElementDelta[0];
|
return new ICElementDelta[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElementDelta#getElement()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICElement getElement() {
|
public ICElement getElement() {
|
||||||
return element;
|
return element;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElementDelta#getFlags()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getFlags() {
|
public int getFlags() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElementDelta#getKind()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getKind() {
|
public int getKind() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElementDelta#getMovedFromElement()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICElement getMovedFromElement() {
|
public ICElement getMovedFromElement() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElementDelta#getMovedToElement()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICElement getMovedToElement() {
|
public ICElement getMovedToElement() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElementDelta#getRemovedChildren()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICElementDelta[] getRemovedChildren() {
|
public ICElementDelta[] getRemovedChildren() {
|
||||||
return new ICElementDelta[0];
|
return new ICElementDelta[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElementDelta#getResourceDeltas()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IResourceDelta[] getResourceDeltas() {
|
public IResourceDelta[] getResourceDeltas() {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -48,9 +48,6 @@ public class CreateFieldOperation extends CreateMemberOperation {
|
||||||
fInitializer = initializer;
|
fInitializer = initializer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @see CreateElementInTUOperation#getMainTaskName
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getMainTaskName() {
|
public String getMainTaskName() {
|
||||||
return CoreModelMessages.getString("operation.createFieldProgress"); //$NON-NLS-1$
|
return CoreModelMessages.getString("operation.createFieldProgress"); //$NON-NLS-1$
|
||||||
|
@ -78,25 +75,16 @@ public class CreateFieldOperation extends CreateMemberOperation {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @see CreateElementInTUOperation#generateResultHandle
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected ICElement generateResultHandle() {
|
protected ICElement generateResultHandle() {
|
||||||
return getStructure().getField(fName);
|
return getStructure().getField(fName);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @see CreateMemberOperation#verifyNameCollision
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected ICModelStatus verifyNameCollision() {
|
protected ICModelStatus verifyNameCollision() {
|
||||||
return super.verifyNameCollision();
|
return super.verifyNameCollision();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.CreateElementInTUOperation#generateElement(org.eclipse.cdt.core.model.ITranslationUnit)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected String generateElement(ITranslationUnit unit) throws CModelException {
|
protected String generateElement(ITranslationUnit unit) throws CModelException {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
|
@ -51,26 +51,17 @@ public class CreateMethodOperation extends CreateMemberOperation {
|
||||||
fSource = source;
|
fSource = source;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @see CreateElementInTUOperation#generateResultHandle
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected ICElement generateResultHandle() {
|
protected ICElement generateResultHandle() {
|
||||||
//TODO: what about collisions, we need the signature here.
|
//TODO: what about collisions, we need the signature here.
|
||||||
return getStructure().getMethod(fName);
|
return getStructure().getMethod(fName);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @see CreateElementInTUOperation#getMainTaskName
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getMainTaskName() {
|
public String getMainTaskName() {
|
||||||
return CoreModelMessages.getString("operation.createMethodProgress"); //$NON-NLS-1$
|
return CoreModelMessages.getString("operation.createMethodProgress"); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @see CreateMemberOperation#verifyNameCollision
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected ICModelStatus verifyNameCollision() {
|
protected ICModelStatus verifyNameCollision() {
|
||||||
ICModelStatus status = super.verify();
|
ICModelStatus status = super.verify();
|
||||||
|
@ -92,9 +83,6 @@ public class CreateMethodOperation extends CreateMemberOperation {
|
||||||
return CModelStatus.VERIFIED_OK;
|
return CModelStatus.VERIFIED_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.CreateElementInTUOperation#generateElement(org.eclipse.cdt.core.model.ITranslationUnit)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected String generateElement(ITranslationUnit unit) throws CModelException {
|
protected String generateElement(ITranslationUnit unit) throws CModelException {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
|
@ -50,17 +50,11 @@ public class CreateSourceReferenceOperation extends CreateElementInTUOperation {
|
||||||
fSource = source;
|
fSource = source;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.CreateElementInTUOperation#generateElement(org.eclipse.cdt.core.model.ITranslationUnit)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected String generateElement(ITranslationUnit unit) throws CModelException {
|
protected String generateElement(ITranslationUnit unit) throws CModelException {
|
||||||
return fSource;
|
return fSource;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.CreateElementInTUOperation#generateResultHandle()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected ICElement generateResultHandle() {
|
protected ICElement generateResultHandle() {
|
||||||
IParent parent = (IParent) getParentElement();
|
IParent parent = (IParent) getParentElement();
|
||||||
|
@ -80,9 +74,6 @@ public class CreateSourceReferenceOperation extends CreateElementInTUOperation {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.CreateElementInTUOperation#getMainTaskName()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected String getMainTaskName() {
|
protected String getMainTaskName() {
|
||||||
return "operation.createsourceReference"; //$NON-NLS-1$
|
return "operation.createsourceReference"; //$NON-NLS-1$
|
||||||
|
|
|
@ -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
|
@Override
|
||||||
public void addPathEntryStoreListener(IPathEntryStoreListener listener) {
|
public void addPathEntryStoreListener(IPathEntryStoreListener listener) {
|
||||||
listeners.add(listener);
|
listeners.add(listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.resources.IPathEntryStore#removePathEntryStoreListener(org.eclipse.cdt.core.resources.IPathEntryStoreListener)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void removePathEntryStoreListener(IPathEntryStoreListener listener) {
|
public void removePathEntryStoreListener(IPathEntryStoreListener listener) {
|
||||||
listeners.remove(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
|
@Override
|
||||||
public void close() {
|
public void close() {
|
||||||
PathEntryStoreChangedEvent evt = new PathEntryStoreChangedEvent(this, fProject,
|
PathEntryStoreChangedEvent evt = new PathEntryStoreChangedEvent(this, fProject,
|
||||||
|
|
|
@ -96,9 +96,6 @@ public class IncludeEntry extends APathEntry implements IIncludeEntry {
|
||||||
return super.equals(obj);
|
return super.equals(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IIncludeEntry#getFullIncludePath()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IPath getFullIncludePath() {
|
public IPath getFullIncludePath() {
|
||||||
final IPath inc = getIncludePath();
|
final IPath inc = getIncludePath();
|
||||||
|
@ -129,9 +126,6 @@ public class IncludeEntry extends APathEntry implements IIncludeEntry {
|
||||||
return inc;
|
return inc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.lang.Object#toString()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
|
@ -82,9 +82,6 @@ public class IncludeFileEntry extends APathEntry implements IIncludeFileEntry {
|
||||||
return super.equals(obj);
|
return super.equals(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IIncludeEntry#getFullIncludePath()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IPath getFullIncludeFilePath() {
|
public IPath getFullIncludeFilePath() {
|
||||||
final IPath inc = getIncludeFilePath();
|
final IPath inc = getIncludeFilePath();
|
||||||
|
@ -115,9 +112,6 @@ public class IncludeFileEntry extends APathEntry implements IIncludeFileEntry {
|
||||||
return inc;
|
return inc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.lang.Object#toString()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
|
@ -58,17 +58,11 @@ public class IncludeReference extends Openable implements IIncludeReference {
|
||||||
fPath = PathUtil.getCanonicalPathWindows(path);
|
fPath = PathUtil.getCanonicalPathWindows(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElement#getResource()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IResource getResource() {
|
public IResource getResource() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.CElement#exists()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean exists() {
|
public boolean exists() {
|
||||||
File file = null;
|
File file = null;
|
||||||
|
@ -80,42 +74,27 @@ public class IncludeReference extends Openable implements IIncludeReference {
|
||||||
return file != null && file.isDirectory();
|
return file != null && file.isDirectory();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.CElement#createElementInfo()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected CElementInfo createElementInfo() {
|
protected CElementInfo createElementInfo() {
|
||||||
return new OpenableInfo(this);
|
return new OpenableInfo(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IIncludeReference#getIncludeEntry()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IIncludeEntry getIncludeEntry() {
|
public IIncludeEntry getIncludeEntry() {
|
||||||
return fIncludeEntry;
|
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
|
@Override
|
||||||
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map<ICElement, CElementInfo> newElements,
|
protected boolean buildStructure(OpenableInfo info, IProgressMonitor pm, Map<ICElement, CElementInfo> newElements,
|
||||||
IResource underlyingResource) throws CModelException {
|
IResource underlyingResource) throws CModelException {
|
||||||
return computeChildren(info, pm, underlyingResource);
|
return computeChildren(info, pm, underlyingResource);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IIncludeReference#getAffectedPath()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IPath getAffectedPath() {
|
public IPath getAffectedPath() {
|
||||||
return fIncludeEntry.getPath();
|
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 {
|
protected boolean computeChildren(OpenableInfo info, IProgressMonitor pm, IResource res) throws CModelException {
|
||||||
ArrayList<ICElement> vChildren = new ArrayList<>();
|
ArrayList<ICElement> vChildren = new ArrayList<>();
|
||||||
IPath filePath = null;
|
IPath filePath = null;
|
||||||
|
@ -178,9 +157,6 @@ public class IncludeReference extends Openable implements IIncludeReference {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IIncludeReference#isOnIncludeEntry(org.eclipse.core.runtime.IPath)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isOnIncludeEntry(IPath path) {
|
public boolean isOnIncludeEntry(IPath path) {
|
||||||
if (fIncludeEntry.getFullIncludePath().isPrefixOf(path)
|
if (fIncludeEntry.getFullIncludePath().isPrefixOf(path)
|
||||||
|
@ -190,9 +166,6 @@ public class IncludeReference extends Openable implements IIncludeReference {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElement#getPath()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IPath getPath() {
|
public IPath getPath() {
|
||||||
return fPath;
|
return fPath;
|
||||||
|
|
|
@ -182,17 +182,11 @@ public class LibraryEntry extends APathEntry implements ILibraryEntry {
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ILibraryEntry#getLibraryPath()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IPath getLibraryPath() {
|
public IPath getLibraryPath() {
|
||||||
return libraryPath;
|
return libraryPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.lang.Object#toString()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
|
@ -38,41 +38,26 @@ public class LibraryReference extends Parent implements ILibraryReference {
|
||||||
entry = e;
|
entry = e;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElement#getResource()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IResource getResource() {
|
public IResource getResource() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.CElement#createElementInfo()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected CElementInfo createElementInfo() {
|
protected CElementInfo createElementInfo() {
|
||||||
return new CElementInfo(this);
|
return new CElementInfo(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElement#getPath()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IPath getPath() {
|
public IPath getPath() {
|
||||||
return entry.getFullLibraryPath();
|
return entry.getFullLibraryPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ILibraryReference#getLibraryEntry()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ILibraryEntry getLibraryEntry() {
|
public ILibraryEntry getLibraryEntry() {
|
||||||
return entry;
|
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
|
@Override
|
||||||
protected void generateInfos(CElementInfo info, Map<ICElement, CElementInfo> newElements, IProgressMonitor monitor)
|
protected void generateInfos(CElementInfo info, Map<ICElement, CElementInfo> newElements, IProgressMonitor monitor)
|
||||||
throws CModelException {
|
throws CModelException {
|
||||||
|
|
|
@ -34,25 +34,16 @@ public class LibraryReferenceArchive extends Archive implements ILibraryReferenc
|
||||||
entry = e;
|
entry = e;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElement#getResource()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IResource getResource() {
|
public IResource getResource() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElement#getPath()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IPath getPath() {
|
public IPath getPath() {
|
||||||
return entry.getFullLibraryPath();
|
return entry.getFullLibraryPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElement#exists()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean exists() {
|
public boolean exists() {
|
||||||
File f = getPath().toFile();
|
File f = getPath().toFile();
|
||||||
|
@ -62,9 +53,6 @@ public class LibraryReferenceArchive extends Archive implements ILibraryReferenc
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ILibraryReference#getLibraryEntry()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ILibraryEntry getLibraryEntry() {
|
public ILibraryEntry getLibraryEntry() {
|
||||||
return entry;
|
return entry;
|
||||||
|
|
|
@ -39,9 +39,6 @@ public class LibraryReferenceShared extends Binary implements ILibraryReference
|
||||||
entry = e;
|
entry = e;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.Binary#getModificationStamp()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected long getModificationStamp() {
|
protected long getModificationStamp() {
|
||||||
File f = getPath().toFile();
|
File f = getPath().toFile();
|
||||||
|
@ -51,17 +48,11 @@ public class LibraryReferenceShared extends Binary implements ILibraryReference
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElement#getResource()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IResource getResource() {
|
public IResource getResource() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElement#exists()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean exists() {
|
public boolean exists() {
|
||||||
File f = getPath().toFile();
|
File f = getPath().toFile();
|
||||||
|
@ -71,17 +62,11 @@ public class LibraryReferenceShared extends Binary implements ILibraryReference
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ICElement#getPath()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IPath getPath() {
|
public IPath getPath() {
|
||||||
return entry.getFullLibraryPath();
|
return entry.getFullLibraryPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ILibraryReference#getLibraryEntry()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ILibraryEntry getLibraryEntry() {
|
public ILibraryEntry getLibraryEntry() {
|
||||||
return entry;
|
return entry;
|
||||||
|
|
|
@ -89,9 +89,6 @@ public class MacroEntry extends APathEntry implements IMacroEntry {
|
||||||
return super.equals(obj);
|
return super.equals(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.lang.Object#toString()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
|
@ -81,9 +81,6 @@ public class MacroFileEntry extends APathEntry implements IMacroFileEntry {
|
||||||
return super.equals(obj);
|
return super.equals(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IIncludeEntry#getFullIncludePath()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IPath getFullMacroFilePath() {
|
public IPath getFullMacroFilePath() {
|
||||||
IPath p;
|
IPath p;
|
||||||
|
@ -118,9 +115,6 @@ public class MacroFileEntry extends APathEntry implements IMacroFileEntry {
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.lang.Object#toString()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
|
@ -21,45 +21,28 @@ import org.eclipse.cdt.core.IBinaryParser;
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.PlatformObject;
|
import org.eclipse.core.runtime.PlatformObject;
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public class NullBinaryParser extends PlatformObject implements IBinaryParser {
|
public class NullBinaryParser extends PlatformObject implements IBinaryParser {
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser#getBinary(org.eclipse.core.runtime.IPath)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IBinaryFile getBinary(byte[] data, IPath path) throws IOException {
|
public IBinaryFile getBinary(byte[] data, IPath path) throws IOException {
|
||||||
throw new IOException(CCorePlugin.getResourceString("CoreModel.NullBinaryParser.Not_binary_file")); //$NON-NLS-1$
|
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
|
@Override
|
||||||
public IBinaryFile getBinary(IPath path) throws IOException {
|
public IBinaryFile getBinary(IPath path) throws IOException {
|
||||||
throw new IOException(CCorePlugin.getResourceString("CoreModel.NullBinaryParser.Not_binary_file")); //$NON-NLS-1$
|
throw new IOException(CCorePlugin.getResourceString("CoreModel.NullBinaryParser.Not_binary_file")); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser#getFormat()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getFormat() {
|
public String getFormat() {
|
||||||
return CCorePlugin.getResourceString("CoreModel.NullBinaryParser.Null_Format"); //$NON-NLS-1$
|
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
|
@Override
|
||||||
public boolean isBinary(byte[] array, IPath path) {
|
public boolean isBinary(byte[] array, IPath path) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser#getBufferSize()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getHintBufferSize() {
|
public int getHintBufferSize() {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -38,9 +38,6 @@ public class PathEntryContainerUpdatesOperation extends CModelOperation {
|
||||||
this.events = events;
|
this.events = events;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.CModelOperation#isReadOnly()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isReadOnly() {
|
public boolean isReadOnly() {
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -25,9 +25,6 @@ public class PathEntryStoreChangedOperation extends CModelOperation {
|
||||||
super(cproject);
|
super(cproject);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.CModelOperation#isReadOnly()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isReadOnly() {
|
public boolean isReadOnly() {
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -46,9 +46,6 @@ public class SetPathEntriesOperation extends CModelOperation {
|
||||||
this.cproject = project;
|
this.cproject = project;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.CModelOperation#executeOperation()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected void executeOperation() throws CModelException {
|
protected void executeOperation() throws CModelException {
|
||||||
// project reference updated - may throw an exception if unable to write .cdtproject file
|
// project reference updated - may throw an exception if unable to write .cdtproject file
|
||||||
|
|
|
@ -45,9 +45,6 @@ public class SetPathEntryContainerOperation extends CModelOperation {
|
||||||
fPathEntryManager = PathEntryManager.getDefault();
|
fPathEntryManager = PathEntryManager.getDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.model.CModelOperation#isReadOnly()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isReadOnly() {
|
public boolean isReadOnly() {
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -18,9 +18,6 @@ import org.eclipse.cdt.core.model.CModelException;
|
||||||
import org.eclipse.cdt.core.model.ICElement;
|
import org.eclipse.cdt.core.model.ICElement;
|
||||||
import org.eclipse.cdt.core.model.IStructureDeclaration;
|
import org.eclipse.cdt.core.model.IStructureDeclaration;
|
||||||
|
|
||||||
/**
|
|
||||||
* StructureDeclaration
|
|
||||||
*/
|
|
||||||
public class StructureDeclaration extends SourceManipulation implements IStructureDeclaration {
|
public class StructureDeclaration extends SourceManipulation implements IStructureDeclaration {
|
||||||
|
|
||||||
public StructureDeclaration(ICElement parent, String name, int kind) {
|
public StructureDeclaration(ICElement parent, String name, int kind) {
|
||||||
|
@ -60,25 +57,16 @@ public class StructureDeclaration extends SourceManipulation implements IStructu
|
||||||
return new StructureInfo(this);
|
return new StructureInfo(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IDeclaration#isStatic()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isStatic() throws CModelException {
|
public boolean isStatic() throws CModelException {
|
||||||
return getStructureInfo().isStatic();
|
return getStructureInfo().isStatic();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IDeclaration#isConst()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isConst() throws CModelException {
|
public boolean isConst() throws CModelException {
|
||||||
return getStructureInfo().isConst();
|
return getStructureInfo().isConst();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IDeclaration#isVolatile()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isVolatile() throws CModelException {
|
public boolean isVolatile() throws CModelException {
|
||||||
return getStructureInfo().isVolatile();
|
return getStructureInfo().isVolatile();
|
||||||
|
|
|
@ -30,9 +30,6 @@ public class Using extends SourceManipulation implements IUsing {
|
||||||
return new SourceManipulationInfo(this);
|
return new SourceManipulationInfo(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.IUsing#isDirective()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isDirective() {
|
public boolean isDirective() {
|
||||||
return directive;
|
return directive;
|
||||||
|
|
|
@ -27,17 +27,11 @@ public class VariableTemplate extends Variable implements ITemplate {
|
||||||
templateParameterTypes = fgEmptyList;
|
templateParameterTypes = fgEmptyList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ITemplate#getNumberOfTemplateParameters()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getNumberOfTemplateParameters() {
|
public int getNumberOfTemplateParameters() {
|
||||||
return templateParameterTypes == null ? 0 : templateParameterTypes.length;
|
return templateParameterTypes == null ? 0 : templateParameterTypes.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ITemplate#getTemplateParameterTypes()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String[] getTemplateParameterTypes() {
|
public String[] getTemplateParameterTypes() {
|
||||||
return templateParameterTypes;
|
return templateParameterTypes;
|
||||||
|
@ -48,16 +42,10 @@ public class VariableTemplate extends Variable implements ITemplate {
|
||||||
return fgEmptyList;
|
return fgEmptyList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ITemplate#setTemplateParameterTypes(java.lang.String[])
|
|
||||||
*/
|
|
||||||
public void setTemplateParameterTypes(String[] templateParameterTypes) {
|
public void setTemplateParameterTypes(String[] templateParameterTypes) {
|
||||||
this.templateParameterTypes = templateParameterTypes;
|
this.templateParameterTypes = templateParameterTypes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.model.ITemplate#getTemplateSignature()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getTemplateSignature() throws CModelException {
|
public String getTemplateSignature() throws CModelException {
|
||||||
StringBuilder sig = new StringBuilder(getElementName());
|
StringBuilder sig = new StringBuilder(getElementName());
|
||||||
|
|
|
@ -51,9 +51,6 @@ public class ConfigBasedPathEntryStore implements IPathEntryStore, ICProjectDesc
|
||||||
static final QualifiedName PATH_ENTRY_COLLECTOR_PROPERTY_NAME = new QualifiedName(CCorePlugin.PLUGIN_ID,
|
static final QualifiedName PATH_ENTRY_COLLECTOR_PROPERTY_NAME = new QualifiedName(CCorePlugin.PLUGIN_ID,
|
||||||
"PathEntryStoreCollector"); //$NON-NLS-1$
|
"PathEntryStoreCollector"); //$NON-NLS-1$
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public ConfigBasedPathEntryStore(IProject project) {
|
public ConfigBasedPathEntryStore(IProject project) {
|
||||||
fProject = project;
|
fProject = project;
|
||||||
fListeners = Collections.synchronizedList(new ArrayList<IPathEntryStoreListener>());
|
fListeners = Collections.synchronizedList(new ArrayList<IPathEntryStoreListener>());
|
||||||
|
@ -62,17 +59,11 @@ public class ConfigBasedPathEntryStore implements IPathEntryStore, ICProjectDesc
|
||||||
CProjectDescriptionEvent.APPLIED | CProjectDescriptionEvent.LOADED);
|
CProjectDescriptionEvent.APPLIED | CProjectDescriptionEvent.LOADED);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.resources.IPathEntryStore#addPathEntryStoreListener(org.eclipse.cdt.core.resources.IPathEntryStoreListener)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void addPathEntryStoreListener(IPathEntryStoreListener listener) {
|
public void addPathEntryStoreListener(IPathEntryStoreListener listener) {
|
||||||
fListeners.add(listener);
|
fListeners.add(listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.resources.IPathEntryStore#removePathEntryStoreListener(org.eclipse.cdt.core.resources.IPathEntryStoreListener)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void removePathEntryStoreListener(IPathEntryStoreListener listener) {
|
public void removePathEntryStoreListener(IPathEntryStoreListener listener) {
|
||||||
fListeners.remove(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
|
@Override
|
||||||
public void close() {
|
public void close() {
|
||||||
PathEntryStoreChangedEvent evt = new PathEntryStoreChangedEvent(this, fProject,
|
PathEntryStoreChangedEvent evt = new PathEntryStoreChangedEvent(this, fProject,
|
||||||
|
|
|
@ -55,17 +55,11 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
fCfgs = des;
|
fCfgs = des;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.settings.model.MultiItemsHolder#getItems()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Object[] getItems() {
|
public Object[] getItems() {
|
||||||
return fCfgs;
|
return fCfgs;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#create(java.lang.String, java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICConfigExtensionReference create(String extensionPoint, String extension) throws CoreException {
|
public ICConfigExtensionReference create(String extensionPoint, String extension) throws CoreException {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -73,9 +67,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
throw new UnsupportedOperationException();
|
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
|
@Override
|
||||||
public ICExternalSetting createExternalSetting(String[] languageIDs, String[] contentTypeIds, String[] extensions,
|
public ICExternalSetting createExternalSetting(String[] languageIDs, String[] contentTypeIds, String[] extensions,
|
||||||
ICSettingEntry[] entries) throws WriteAccessException {
|
ICSettingEntry[] entries) throws WriteAccessException {
|
||||||
|
@ -84,9 +75,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return null;
|
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
|
@Override
|
||||||
public ICFileDescription createFileDescription(IPath path, ICResourceDescription base)
|
public ICFileDescription createFileDescription(IPath path, ICResourceDescription base)
|
||||||
throws CoreException, WriteAccessException {
|
throws CoreException, WriteAccessException {
|
||||||
|
@ -95,9 +83,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return null;
|
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
|
@Override
|
||||||
public ICFolderDescription createFolderDescription(IPath path, ICFolderDescription base)
|
public ICFolderDescription createFolderDescription(IPath path, ICFolderDescription base)
|
||||||
throws CoreException, WriteAccessException {
|
throws CoreException, WriteAccessException {
|
||||||
|
@ -106,9 +91,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#get(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICConfigExtensionReference[] get(String extensionPointID) {
|
public ICConfigExtensionReference[] get(String extensionPointID) {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -116,9 +98,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getBuildSetting()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICBuildSetting getBuildSetting() {
|
public ICBuildSetting getBuildSetting() {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -140,25 +119,16 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
fCfgs[i].getBuildSetting().setErrorParserIDs(ids);
|
fCfgs[i].getBuildSetting().setErrorParserIDs(ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getBuildSystemId()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getBuildSystemId() {
|
public String getBuildSystemId() {
|
||||||
return fCfgs[0].getBuildSystemId();
|
return fCfgs[0].getBuildSystemId();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getBuildVariablesContributor()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICdtVariablesContributor getBuildVariablesContributor() {
|
public ICdtVariablesContributor getBuildVariablesContributor() {
|
||||||
return fCfgs[0].getBuildVariablesContributor();
|
return fCfgs[0].getBuildVariablesContributor();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getConfigurationData()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public CConfigurationData getConfigurationData() {
|
public CConfigurationData getConfigurationData() {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -166,9 +136,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getConfigurationStatus()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public CConfigurationStatus getConfigurationStatus() {
|
public CConfigurationStatus getConfigurationStatus() {
|
||||||
CConfigurationStatus st = null;
|
CConfigurationStatus st = null;
|
||||||
|
@ -180,25 +147,16 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return st;
|
return st;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getDescription()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getDescription() {
|
public String getDescription() {
|
||||||
return "Multi Configuration"; //$NON-NLS-1$
|
return "Multi Configuration"; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getExternalSettings()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICExternalSetting[] getExternalSettings() {
|
public ICExternalSetting[] getExternalSettings() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getExternalSettingsProviderIds()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String[] getExternalSettingsProviderIds() {
|
public String[] getExternalSettingsProviderIds() {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -206,9 +164,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getFileDescriptions()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICFileDescription[] getFileDescriptions() {
|
public ICFileDescription[] getFileDescriptions() {
|
||||||
ArrayList<ICFileDescription> lst = new ArrayList<>();
|
ArrayList<ICFileDescription> lst = new ArrayList<>();
|
||||||
|
@ -217,9 +172,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return lst.toArray(new ICFileDescription[lst.size()]);
|
return lst.toArray(new ICFileDescription[lst.size()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getFolderDescriptions()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICFolderDescription[] getFolderDescriptions() {
|
public ICFolderDescription[] getFolderDescriptions() {
|
||||||
ArrayList<ICFolderDescription> lst = new ArrayList<>();
|
ArrayList<ICFolderDescription> lst = new ArrayList<>();
|
||||||
|
@ -228,9 +180,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return lst.toArray(new ICFolderDescription[lst.size()]);
|
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
|
@Override
|
||||||
public ICLanguageSetting getLanguageSettingForFile(IPath path, boolean ignoreExludeStatus) {
|
public ICLanguageSetting getLanguageSettingForFile(IPath path, boolean ignoreExludeStatus) {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -238,9 +187,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getProjectDescription()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICProjectDescription getProjectDescription() {
|
public ICProjectDescription getProjectDescription() {
|
||||||
ICProjectDescription pd = fCfgs[0].getProjectDescription();
|
ICProjectDescription pd = fCfgs[0].getProjectDescription();
|
||||||
|
@ -252,9 +198,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return pd;
|
return pd;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getReferenceInfo()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, String> getReferenceInfo() {
|
public Map<String, String> getReferenceInfo() {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -262,17 +205,11 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return Collections.emptyMap();
|
return Collections.emptyMap();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getResolvedSourceEntries()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICSourceEntry[] getResolvedSourceEntries() {
|
public ICSourceEntry[] getResolvedSourceEntries() {
|
||||||
return new ICSourceEntry[0];
|
return new ICSourceEntry[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getResourceDescription(org.eclipse.core.runtime.IPath, boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICResourceDescription getResourceDescription(IPath path, boolean isForFolder) {
|
public ICResourceDescription getResourceDescription(IPath path, boolean isForFolder) {
|
||||||
ArrayList<ICResourceDescription> lst = new ArrayList<>();
|
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()]));
|
return new MultiFileDescription(lst.toArray(new ICFileDescription[lst.size()]));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getResourceDescriptions()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICResourceDescription[] getResourceDescriptions() {
|
public ICResourceDescription[] getResourceDescriptions() {
|
||||||
ArrayList<ICResourceDescription> lst = new ArrayList<>();
|
ArrayList<ICResourceDescription> lst = new ArrayList<>();
|
||||||
|
@ -311,9 +245,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return lst.toArray(new ICResourceDescription[lst.size()]);
|
return lst.toArray(new ICResourceDescription[lst.size()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getRootFolderDescription()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICFolderDescription getRootFolderDescription() {
|
public ICFolderDescription getRootFolderDescription() {
|
||||||
ICFolderDescription[] rds = new ICFolderDescription[fCfgs.length];
|
ICFolderDescription[] rds = new ICFolderDescription[fCfgs.length];
|
||||||
|
@ -322,9 +253,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return new MultiFolderDescription(rds);
|
return new MultiFolderDescription(rds);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getSessionProperty(org.eclipse.core.runtime.QualifiedName)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Object getSessionProperty(QualifiedName name) {
|
public Object getSessionProperty(QualifiedName name) {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -332,17 +260,11 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getSourceEntries()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICSourceEntry[] getSourceEntries() {
|
public ICSourceEntry[] getSourceEntries() {
|
||||||
return new ICSourceEntry[0];
|
return new ICSourceEntry[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#getTargetPlatformSetting()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICTargetPlatformSetting getTargetPlatformSetting() {
|
public ICTargetPlatformSetting getTargetPlatformSetting() {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -350,9 +272,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#isActive()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isActive() {
|
public boolean isActive() {
|
||||||
for (int i = 0; i < fCfgs.length; i++)
|
for (int i = 0; i < fCfgs.length; i++)
|
||||||
|
@ -361,9 +280,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#isModified()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isModified() {
|
public boolean isModified() {
|
||||||
for (int i = 0; i < fCfgs.length; i++)
|
for (int i = 0; i < fCfgs.length; i++)
|
||||||
|
@ -372,70 +288,46 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#isPreferenceConfiguration()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isPreferenceConfiguration() {
|
public boolean isPreferenceConfiguration() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#remove(org.eclipse.cdt.core.settings.model.ICConfigExtensionReference)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void remove(ICConfigExtensionReference ext) throws CoreException {
|
public void remove(ICConfigExtensionReference ext) throws CoreException {
|
||||||
for (int i = 0; i < fCfgs.length; i++)
|
for (int i = 0; i < fCfgs.length; i++)
|
||||||
fCfgs[i].remove(ext);
|
fCfgs[i].remove(ext);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#remove(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void remove(String extensionPoint) throws CoreException {
|
public void remove(String extensionPoint) throws CoreException {
|
||||||
for (int i = 0; i < fCfgs.length; i++)
|
for (int i = 0; i < fCfgs.length; i++)
|
||||||
fCfgs[i].remove(extensionPoint);
|
fCfgs[i].remove(extensionPoint);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#removeExternalSetting(org.eclipse.cdt.core.settings.model.ICExternalSetting)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void removeExternalSetting(ICExternalSetting setting) throws WriteAccessException {
|
public void removeExternalSetting(ICExternalSetting setting) throws WriteAccessException {
|
||||||
for (int i = 0; i < fCfgs.length; i++)
|
for (int i = 0; i < fCfgs.length; i++)
|
||||||
fCfgs[i].removeExternalSetting(setting);
|
fCfgs[i].removeExternalSetting(setting);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#removeExternalSettings()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void removeExternalSettings() throws WriteAccessException {
|
public void removeExternalSettings() throws WriteAccessException {
|
||||||
for (int i = 0; i < fCfgs.length; i++)
|
for (int i = 0; i < fCfgs.length; i++)
|
||||||
fCfgs[i].removeExternalSettings();
|
fCfgs[i].removeExternalSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#removeResourceDescription(org.eclipse.cdt.core.settings.model.ICResourceDescription)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void removeResourceDescription(ICResourceDescription des) throws CoreException, WriteAccessException {
|
public void removeResourceDescription(ICResourceDescription des) throws CoreException, WriteAccessException {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#setActive()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setActive() throws WriteAccessException {
|
public void setActive() throws WriteAccessException {
|
||||||
for (int i = 0; i < fCfgs.length; i++)
|
for (int i = 0; i < fCfgs.length; i++)
|
||||||
fCfgs[i].setActive();
|
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
|
@Override
|
||||||
public void setConfigurationData(String buildSystemId, CConfigurationData data) throws WriteAccessException {
|
public void setConfigurationData(String buildSystemId, CConfigurationData data) throws WriteAccessException {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -443,9 +335,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#setDescription(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setDescription(String des) throws WriteAccessException {
|
public void setDescription(String des) throws WriteAccessException {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -453,18 +342,12 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#setExternalSettingsProviderIds(java.lang.String[])
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setExternalSettingsProviderIds(String[] ids) {
|
public void setExternalSettingsProviderIds(String[] ids) {
|
||||||
for (int i = 0; i < fCfgs.length; i++)
|
for (int i = 0; i < fCfgs.length; i++)
|
||||||
fCfgs[i].setExternalSettingsProviderIds(ids);
|
fCfgs[i].setExternalSettingsProviderIds(ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#setName(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setName(String name) throws WriteAccessException {
|
public void setName(String name) throws WriteAccessException {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -472,77 +355,50 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#setReferenceInfo(java.util.Map)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setReferenceInfo(Map<String, String> refs) throws WriteAccessException {
|
public void setReferenceInfo(Map<String, String> refs) throws WriteAccessException {
|
||||||
for (int i = 0; i < fCfgs.length; i++)
|
for (int i = 0; i < fCfgs.length; i++)
|
||||||
fCfgs[i].setReferenceInfo(refs);
|
fCfgs[i].setReferenceInfo(refs);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#setSessionProperty(org.eclipse.core.runtime.QualifiedName, java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setSessionProperty(QualifiedName name, Object value) {
|
public void setSessionProperty(QualifiedName name, Object value) {
|
||||||
for (int i = 0; i < fCfgs.length; i++)
|
for (int i = 0; i < fCfgs.length; i++)
|
||||||
fCfgs[i].setSessionProperty(name, value);
|
fCfgs[i].setSessionProperty(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#setSourceEntries(org.eclipse.cdt.core.settings.model.ICSourceEntry[])
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setSourceEntries(ICSourceEntry[] entries) throws CoreException, WriteAccessException {
|
public void setSourceEntries(ICSourceEntry[] entries) throws CoreException, WriteAccessException {
|
||||||
for (int i = 0; i < fCfgs.length; i++)
|
for (int i = 0; i < fCfgs.length; i++)
|
||||||
fCfgs[i].setSourceEntries(entries);
|
fCfgs[i].setSourceEntries(entries);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICConfigurationDescription#updateExternalSettingsProviders(java.lang.String[])
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void updateExternalSettingsProviders(String[] ids) throws WriteAccessException {
|
public void updateExternalSettingsProviders(String[] ids) throws WriteAccessException {
|
||||||
for (int i = 0; i < fCfgs.length; i++)
|
for (int i = 0; i < fCfgs.length; i++)
|
||||||
fCfgs[i].updateExternalSettingsProviders(ids);
|
fCfgs[i].updateExternalSettingsProviders(ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingContainer#getChildSettings()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICSettingObject[] getChildSettings() {
|
public ICSettingObject[] getChildSettings() {
|
||||||
return new ICSettingObject[0];
|
return new ICSettingObject[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getConfiguration()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICConfigurationDescription getConfiguration() {
|
public ICConfigurationDescription getConfiguration() {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getId()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return fCfgs[0].getId() + "_etc"; //$NON-NLS-1$
|
return fCfgs[0].getId() + "_etc"; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getName()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return "Multiple Config Description"; //$NON-NLS-1$
|
return "Multiple Config Description"; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getParent()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICSettingContainer getParent() {
|
public ICSettingContainer getParent() {
|
||||||
ICSettingContainer p = fCfgs[0].getParent();
|
ICSettingContainer p = fCfgs[0].getParent();
|
||||||
|
@ -554,9 +410,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getType()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getType() {
|
public int getType() {
|
||||||
int t = fCfgs[0].getType();
|
int t = fCfgs[0].getType();
|
||||||
|
@ -566,9 +419,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#isReadOnly()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isReadOnly() {
|
public boolean isReadOnly() {
|
||||||
for (int i = 0; i < fCfgs.length; i++)
|
for (int i = 0; i < fCfgs.length; i++)
|
||||||
|
@ -583,9 +433,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
cfg.setReadOnly(readOnly, keepModify);
|
cfg.setReadOnly(readOnly, keepModify);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#isValid()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
for (int i = 0; i < fCfgs.length; i++)
|
for (int i = 0; i < fCfgs.length; i++)
|
||||||
|
@ -594,9 +441,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingsStorage#getStorage(java.lang.String, boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICStorageElement getStorage(String id, boolean create) throws CoreException {
|
public ICStorageElement getStorage(String id, boolean create) throws CoreException {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -604,9 +448,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingsStorage#getStorage(java.lang.String, boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICStorageElement importStorage(String id, ICStorageElement el)
|
public ICStorageElement importStorage(String id, ICStorageElement el)
|
||||||
throws UnsupportedOperationException, CoreException {
|
throws UnsupportedOperationException, CoreException {
|
||||||
|
@ -615,9 +456,6 @@ public class MultiConfigDescription extends MultiItemsHolder implements ICMultiC
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingsStorage#removeStorage(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void removeStorage(String id) throws CoreException {
|
public void removeStorage(String id) throws CoreException {
|
||||||
for (int i = 0; i < fCfgs.length; i++)
|
for (int i = 0; i < fCfgs.length; i++)
|
||||||
|
|
|
@ -27,9 +27,6 @@ public class MultiFileDescription extends MultiResourceDescription implements IC
|
||||||
super(res);
|
super(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICFileDescription#getLanguageSetting()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICLanguageSetting getLanguageSetting() {
|
public ICLanguageSetting getLanguageSetting() {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
|
|
@ -33,9 +33,6 @@ public class MultiFolderDescription extends MultiResourceDescription implements
|
||||||
super(res);
|
super(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICFolderDescription#createLanguageSettingForContentTypes(java.lang.String, java.lang.String[])
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICLanguageSetting createLanguageSettingForContentTypes(String languageId, String[] typeIds)
|
public ICLanguageSetting createLanguageSettingForContentTypes(String languageId, String[] typeIds)
|
||||||
throws CoreException {
|
throws CoreException {
|
||||||
|
@ -44,9 +41,6 @@ public class MultiFolderDescription extends MultiResourceDescription implements
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICFolderDescription#createLanguageSettingForExtensions(java.lang.String, java.lang.String[])
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICLanguageSetting createLanguageSettingForExtensions(String languageId, String[] extensions)
|
public ICLanguageSetting createLanguageSettingForExtensions(String languageId, String[] extensions)
|
||||||
throws CoreException {
|
throws CoreException {
|
||||||
|
@ -55,9 +49,6 @@ public class MultiFolderDescription extends MultiResourceDescription implements
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICFolderDescription#getLanguageSettingForFile(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICLanguageSetting getLanguageSettingForFile(String fileName) {
|
public ICLanguageSetting getLanguageSettingForFile(String fileName) {
|
||||||
ICLanguageSetting ls0 = ((ICFolderDescription) fRess[0]).getLanguageSettingForFile(fileName);
|
ICLanguageSetting ls0 = ((ICFolderDescription) fRess[0]).getLanguageSettingForFile(fileName);
|
||||||
|
@ -73,9 +64,6 @@ public class MultiFolderDescription extends MultiResourceDescription implements
|
||||||
return ls0;
|
return ls0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICFolderDescription#getLanguageSettings()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICLanguageSetting[][] getLanguageSettingsM(Comparator<Object> comp) {
|
public ICLanguageSetting[][] getLanguageSettingsM(Comparator<Object> comp) {
|
||||||
ICLanguageSetting[][] ls = new ICLanguageSetting[fRess.length][];
|
ICLanguageSetting[][] ls = new ICLanguageSetting[fRess.length][];
|
||||||
|
@ -88,9 +76,6 @@ public class MultiFolderDescription extends MultiResourceDescription implements
|
||||||
return ls;
|
return ls;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICFolderDescription#getNestedResourceDescription(org.eclipse.core.runtime.IPath, boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICResourceDescription getNestedResourceDescription(IPath relPath, boolean exactPath) {
|
public ICResourceDescription getNestedResourceDescription(IPath relPath, boolean exactPath) {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -98,9 +83,6 @@ public class MultiFolderDescription extends MultiResourceDescription implements
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICFolderDescription#getNestedResourceDescriptions(int)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICResourceDescription[] getNestedResourceDescriptions(int kind) {
|
public ICResourceDescription[] getNestedResourceDescriptions(int kind) {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -108,9 +90,6 @@ public class MultiFolderDescription extends MultiResourceDescription implements
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICFolderDescription#getNestedResourceDescriptions()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICResourceDescription[] getNestedResourceDescriptions() {
|
public ICResourceDescription[] getNestedResourceDescriptions() {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -118,9 +97,6 @@ public class MultiFolderDescription extends MultiResourceDescription implements
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICFolderDescription#isRoot()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isRoot() {
|
public boolean isRoot() {
|
||||||
for (int i = 0; i < fRess.length; i++)
|
for (int i = 0; i < fRess.length; i++)
|
||||||
|
|
|
@ -39,9 +39,7 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
|
||||||
fRess = res;
|
fRess = res;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/*
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICResourceDescription#canExclude(boolean)
|
|
||||||
*
|
|
||||||
* returns TRUE only if all res.configurations return true
|
* returns TRUE only if all res.configurations return true
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@ -52,9 +50,6 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICResourceDescription#getParentFolderDescription()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICFolderDescription getParentFolderDescription() {
|
public ICFolderDescription getParentFolderDescription() {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -62,9 +57,6 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICResourceDescription#getPath()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IPath getPath() {
|
public IPath getPath() {
|
||||||
IPath p = fRess[0].getPath();
|
IPath p = fRess[0].getPath();
|
||||||
|
@ -78,9 +70,6 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICResourceDescription#isExcluded()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isExcluded() {
|
public boolean isExcluded() {
|
||||||
for (int i = 0; i < fRess.length; i++)
|
for (int i = 0; i < fRess.length; i++)
|
||||||
|
@ -89,27 +78,18 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICResourceDescription#setExcluded(boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setExcluded(boolean excluded) throws WriteAccessException {
|
public void setExcluded(boolean excluded) throws WriteAccessException {
|
||||||
for (int i = 0; i < fRess.length; i++)
|
for (int i = 0; i < fRess.length; i++)
|
||||||
fRess[i].setExcluded(excluded);
|
fRess[i].setExcluded(excluded);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICResourceDescription#setPath(org.eclipse.core.runtime.IPath)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setPath(IPath path) throws WriteAccessException {
|
public void setPath(IPath path) throws WriteAccessException {
|
||||||
for (int i = 0; i < fRess.length; i++)
|
for (int i = 0; i < fRess.length; i++)
|
||||||
fRess[i].setPath(path);
|
fRess[i].setPath(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingContainer#getChildSettings()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICSettingObject[] getChildSettings() {
|
public ICSettingObject[] getChildSettings() {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
|
@ -117,9 +97,7 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/*
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getConfiguration()
|
|
||||||
*
|
|
||||||
* returns multi-configuration object
|
* returns multi-configuration object
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@ -133,25 +111,17 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
|
||||||
return fCfg;
|
return fCfg;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getId()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return fRess[0].getId() + "_etc"; //$NON-NLS-1$
|
return fRess[0].getId() + "_etc"; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#getName()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return "Multiple Resource Description"; //$NON-NLS-1$
|
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.
|
* If there's the same parent for all res cfgs, return it.
|
||||||
* Else return null;
|
* Else return null;
|
||||||
*/
|
*/
|
||||||
|
@ -166,9 +136,7 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
|
||||||
return sc;
|
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.
|
* If there's the same type for all res cfgs, return it.
|
||||||
* Else return null;
|
* Else return null;
|
||||||
*/
|
*/
|
||||||
|
@ -181,9 +149,6 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#isReadOnly()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isReadOnly() {
|
public boolean isReadOnly() {
|
||||||
for (int i = 0; i < fRess.length; i++)
|
for (int i = 0; i < fRess.length; i++)
|
||||||
|
@ -192,9 +157,6 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICSettingObject#isValid()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
for (int i = 0; i < fRess.length; i++)
|
for (int i = 0; i < fRess.length; i++)
|
||||||
|
@ -203,9 +165,6 @@ public abstract class MultiResourceDescription extends MultiItemsHolder implemen
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICMultiItemsHolder#getItems()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Object[] getItems() {
|
public Object[] getItems() {
|
||||||
return fRess;
|
return fRess;
|
||||||
|
|
|
@ -284,36 +284,20 @@ public class ResourceChangeHandler extends ResourceChangeHandlerBase implements
|
||||||
return new RcMoveHandler();
|
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
|
@Override
|
||||||
public void saving(ISaveContext context) throws CoreException {
|
public void saving(ISaveContext context) throws CoreException {
|
||||||
//Request a resource delta to be used on next activation.
|
//Request a resource delta to be used on next activation.
|
||||||
context.needDelta();
|
context.needDelta();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.core.resources.ISaveParticipant#doneSaving(org.eclipse.core.resources.ISaveContext)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void doneSaving(ISaveContext context) {
|
public void doneSaving(ISaveContext context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.core.resources.ISaveParticipant#prepareToSave(org.eclipse.core.resources.ISaveContext)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void prepareToSave(ISaveContext context) throws CoreException {
|
public void prepareToSave(ISaveContext context) throws CoreException {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.core.resources.ISaveParticipant#rollback(org.eclipse.core.resources.ISaveContext)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void rollback(ISaveContext context) {
|
public void rollback(ISaveContext context) {
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,8 +170,6 @@ public class SetCProjectDescriptionOperation extends CModelOperation {
|
||||||
// /*
|
// /*
|
||||||
// * Instead of using the workspace scheduling rule, use a more refined project scoped rule.
|
// * Instead of using the workspace scheduling rule, use a more refined project scoped rule.
|
||||||
// * This must contain the rule in CConfigBasedDescriptor.setApply(...)
|
// * This must contain the rule in CConfigBasedDescriptor.setApply(...)
|
||||||
// * (non-Javadoc)
|
|
||||||
// * @see org.eclipse.cdt.internal.core.model.CModelOperation#getSchedulingRule()
|
|
||||||
// */
|
// */
|
||||||
// @Override
|
// @Override
|
||||||
// public ISchedulingRule getSchedulingRule() {
|
// public ISchedulingRule getSchedulingRule() {
|
||||||
|
|
|
@ -367,8 +367,6 @@ public class XmlProjectDescriptionStorage extends AbstractCProjectDescriptionSto
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sets the current read-only descriptions -- uses the write lock
|
/* 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
|
@Override
|
||||||
public boolean setCurrentDescription(ICProjectDescription des, boolean overwriteIfExists) {
|
public boolean setCurrentDescription(ICProjectDescription des, boolean overwriteIfExists) {
|
||||||
|
|
|
@ -78,8 +78,6 @@ public class XmlProjectDescriptionStorage2 extends XmlProjectDescriptionStorage
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check for external modification in the module files in the .csettings directory
|
* 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
|
@Override
|
||||||
protected synchronized boolean checkExternalModification() {
|
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)
|
* - 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
|
* 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
|
* 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
|
@Override
|
||||||
protected long serialize(IContainer container, String file, ICStorageElement element) throws CoreException {
|
protected long serialize(IContainer container, String file, ICStorageElement element) throws CoreException {
|
||||||
|
|
|
@ -97,9 +97,6 @@ public class CEnumeration extends PlatformObject implements IEnumeration, ICInte
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IBinding#getName()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
if (definition != null)
|
if (definition != null)
|
||||||
|
@ -116,9 +113,6 @@ public class CEnumeration extends PlatformObject implements IEnumeration, ICInte
|
||||||
return declarations[0].toCharArray();
|
return declarations[0].toCharArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IBinding#getScope()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IScope getScope() {
|
public IScope getScope() {
|
||||||
return CVisitor.getContainingScope(definition != null ? definition : declarations[0].getParent());
|
return CVisitor.getContainingScope(definition != null ? definition : declarations[0].getParent());
|
||||||
|
@ -135,9 +129,6 @@ public class CEnumeration extends PlatformObject implements IEnumeration, ICInte
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IEnumeration#getEnumerators()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IEnumerator[] getEnumerators() {
|
public IEnumerator[] getEnumerators() {
|
||||||
if (definition == null) {
|
if (definition == null) {
|
||||||
|
@ -162,9 +153,6 @@ public class CEnumeration extends PlatformObject implements IEnumeration, ICInte
|
||||||
definition = name;
|
definition = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IType#isSameType(org.eclipse.cdt.core.dom.ast.IType)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isSameType(IType type) {
|
public boolean isSameType(IType type) {
|
||||||
if (type == this)
|
if (type == this)
|
||||||
|
|
|
@ -56,9 +56,6 @@ public class CEnumerator extends PlatformObject implements IEnumerator {
|
||||||
return enumeratorName;
|
return enumeratorName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IBinding#getName()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return enumeratorName.toString();
|
return enumeratorName.toString();
|
||||||
|
@ -69,17 +66,11 @@ public class CEnumerator extends PlatformObject implements IEnumerator {
|
||||||
return enumeratorName.toCharArray();
|
return enumeratorName.toCharArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IBinding#getScope()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IScope getScope() {
|
public IScope getScope() {
|
||||||
return CVisitor.getContainingScope(enumeratorName.getParent());
|
return CVisitor.getContainingScope(enumeratorName.getParent());
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IEnumerator#getType()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IType getType() {
|
public IType getType() {
|
||||||
return (IType) getOwner();
|
return (IType) getOwner();
|
||||||
|
|
|
@ -27,9 +27,6 @@ public class CFunctionScope extends CScope implements ICFunctionScope {
|
||||||
super(function, EScopeKind.eLocal);
|
super(function, EScopeKind.eLocal);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.c.ICFunctionScope#getBinding(char[])
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IBinding getBinding(char[] name) {
|
public IBinding getBinding(char[] name) {
|
||||||
return super.getBinding(NAMESPACE_TYPE_OTHER, name);
|
return super.getBinding(NAMESPACE_TYPE_OTHER, name);
|
||||||
|
|
|
@ -57,9 +57,6 @@ public class CImplicitTypedef extends CTypedef {
|
||||||
return scope;
|
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) {
|
// public boolean isSameType(IType t) {
|
||||||
// if (t == this)
|
// if (t == this)
|
||||||
// return true;
|
// return true;
|
||||||
|
|
|
@ -42,9 +42,6 @@ public class CKnRParameter extends PlatformObject implements IParameter {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IVariable#getType()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IType getType() {
|
public IType getType() {
|
||||||
IASTDeclSpecifier declSpec = null;
|
IASTDeclSpecifier declSpec = null;
|
||||||
|
@ -62,56 +59,35 @@ public class CKnRParameter extends PlatformObject implements IParameter {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IBinding#getName()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name.toString();
|
return name.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IBinding#getNameCharArray()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public char[] getNameCharArray() {
|
public char[] getNameCharArray() {
|
||||||
return name.toCharArray();
|
return name.toCharArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IBinding#getScope()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IScope getScope() {
|
public IScope getScope() {
|
||||||
return CVisitor.getContainingScope(declaration);
|
return CVisitor.getContainingScope(declaration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IBinding#getPhysicalNode()
|
|
||||||
*/
|
|
||||||
public IASTNode getPhysicalNode() {
|
public IASTNode getPhysicalNode() {
|
||||||
return declaration;
|
return declaration;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IVariable#isStatic()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isStatic() {
|
public boolean isStatic() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IVariable#isExtern()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isExtern() {
|
public boolean isExtern() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IVariable#isAuto()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isAuto() {
|
public boolean isAuto() {
|
||||||
if (declaration instanceof IASTSimpleDeclaration)
|
if (declaration instanceof IASTSimpleDeclaration)
|
||||||
|
@ -120,9 +96,6 @@ public class CKnRParameter extends PlatformObject implements IParameter {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IVariable#isRegister()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isRegister() {
|
public boolean isRegister() {
|
||||||
if (declaration instanceof IASTSimpleDeclaration)
|
if (declaration instanceof IASTSimpleDeclaration)
|
||||||
|
|
|
@ -68,25 +68,16 @@ public class CQualifierType implements ICQualifierType, ITypeContainer, ISeriali
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IQualifierType#isConst()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isConst() {
|
public boolean isConst() {
|
||||||
return isConst;
|
return isConst;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IQualifierType#isVolatile()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isVolatile() {
|
public boolean isVolatile() {
|
||||||
return isVolatile;
|
return isVolatile;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.c.ICQualifierType#isRestrict()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isRestrict() {
|
public boolean isRestrict() {
|
||||||
return isRestrict;
|
return isRestrict;
|
||||||
|
|
|
@ -174,9 +174,6 @@ public class CVisitor extends ASTQueries {
|
||||||
return removeNullFromProblems();
|
return removeNullFromProblems();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.internal.core.dom.parser.c.CVisitor.CBaseVisitorAction#processDeclaration(org.eclipse.cdt.core.dom.ast.IASTDeclaration)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int visit(IASTDeclaration declaration) {
|
public int visit(IASTDeclaration declaration) {
|
||||||
if (declaration instanceof IASTProblemHolder)
|
if (declaration instanceof IASTProblemHolder)
|
||||||
|
@ -185,9 +182,6 @@ public class CVisitor extends ASTQueries {
|
||||||
return PROCESS_CONTINUE;
|
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
|
@Override
|
||||||
public int visit(IASTExpression expression) {
|
public int visit(IASTExpression expression) {
|
||||||
if (expression instanceof IASTProblemHolder)
|
if (expression instanceof IASTProblemHolder)
|
||||||
|
@ -196,9 +190,6 @@ public class CVisitor extends ASTQueries {
|
||||||
return PROCESS_CONTINUE;
|
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
|
@Override
|
||||||
public int visit(IASTStatement statement) {
|
public int visit(IASTStatement statement) {
|
||||||
if (statement instanceof IASTProblemHolder)
|
if (statement instanceof IASTProblemHolder)
|
||||||
|
@ -207,9 +198,6 @@ public class CVisitor extends ASTQueries {
|
||||||
return PROCESS_CONTINUE;
|
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
|
@Override
|
||||||
public int visit(IASTTypeId typeId) {
|
public int visit(IASTTypeId typeId) {
|
||||||
if (typeId instanceof IASTProblemHolder)
|
if (typeId instanceof IASTProblemHolder)
|
||||||
|
@ -266,9 +254,6 @@ public class CVisitor extends ASTQueries {
|
||||||
this.binding = binding;
|
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
|
@Override
|
||||||
public int visit(IASTDeclarator declarator) {
|
public int visit(IASTDeclarator declarator) {
|
||||||
//GCC allows declarations in expressions, so we have to continue from the
|
//GCC allows declarations in expressions, so we have to continue from the
|
||||||
|
@ -309,9 +294,6 @@ public class CVisitor extends ASTQueries {
|
||||||
return PROCESS_CONTINUE;
|
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
|
@Override
|
||||||
public int visit(IASTDeclSpecifier declSpec) {
|
public int visit(IASTDeclSpecifier declSpec) {
|
||||||
if (compositeTypeDeclared && declSpec instanceof ICASTTypedefNameSpecifier)
|
if (compositeTypeDeclared && declSpec instanceof ICASTTypedefNameSpecifier)
|
||||||
|
@ -348,9 +330,6 @@ public class CVisitor extends ASTQueries {
|
||||||
return PROCESS_CONTINUE;
|
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
|
@Override
|
||||||
public int visit(IASTEnumerator enumerator) {
|
public int visit(IASTEnumerator enumerator) {
|
||||||
if (binding instanceof IEnumerator && enumerator.getName().resolveBinding() == binding) {
|
if (binding instanceof IEnumerator && enumerator.getName().resolveBinding() == binding) {
|
||||||
|
@ -360,9 +339,6 @@ public class CVisitor extends ASTQueries {
|
||||||
return PROCESS_CONTINUE;
|
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
|
@Override
|
||||||
public int visit(IASTStatement statement) {
|
public int visit(IASTStatement statement) {
|
||||||
if (statement instanceof IASTLabelStatement && binding instanceof ILabel) {
|
if (statement instanceof IASTLabelStatement && binding instanceof ILabel) {
|
||||||
|
|
|
@ -64,9 +64,6 @@ public class CPPFunctionInstance extends CPPFunctionSpecialization implements IC
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* For debug purposes only
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return getName() + " " + ASTTypeUtil.getArgumentListString(fArguments, true); //$NON-NLS-1$
|
return getName() + " " + ASTTypeUtil.getArgumentListString(fArguments, true); //$NON-NLS-1$
|
||||||
|
|
|
@ -27,25 +27,16 @@ public final class EmptyIterator<T> implements Iterator<T> {
|
||||||
private EmptyIterator() {
|
private EmptyIterator() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.util.Iterator#hasNext()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public final boolean hasNext() {
|
public final boolean hasNext() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.util.Iterator#next()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public final T next() {
|
public final T next() {
|
||||||
throw new NoSuchElementException();
|
throw new NoSuchElementException();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.util.Iterator#remove()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public final void remove() {
|
public final void remove() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
|
|
|
@ -66,41 +66,26 @@ public class CommandLauncher implements ICommandLauncher {
|
||||||
fShowCommand = false;
|
fShowCommand = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.ICommandLauncher#showCommand(boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void showCommand(boolean show) {
|
public void showCommand(boolean show) {
|
||||||
fShowCommand = show;
|
fShowCommand = show;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.ICommandLauncher#getErrorMessage()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getErrorMessage() {
|
public String getErrorMessage() {
|
||||||
return fErrorMessage;
|
return fErrorMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.ICommandLauncher#setErrorMessage(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setErrorMessage(String error) {
|
public void setErrorMessage(String error) {
|
||||||
fErrorMessage = error;
|
fErrorMessage = error;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.ICommandLauncher#getCommandArgs()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String[] getCommandArgs() {
|
public String[] getCommandArgs() {
|
||||||
return fCommandArgs;
|
return fCommandArgs;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.ICommandLauncher#getEnvironment()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Properties getEnvironment() {
|
public Properties getEnvironment() {
|
||||||
if (fEnvironment == null) {
|
if (fEnvironment == null) {
|
||||||
|
@ -121,9 +106,6 @@ public class CommandLauncher implements ICommandLauncher {
|
||||||
return fEnvironment.getProperty(key);
|
return fEnvironment.getProperty(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.ICommandLauncher#getCommandLine()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getCommandLine() {
|
public String getCommandLine() {
|
||||||
return getCommandLine(getCommandArgs());
|
return getCommandLine(getCommandArgs());
|
||||||
|
@ -239,9 +221,6 @@ public class CommandLauncher implements ICommandLauncher {
|
||||||
return fProcess;
|
return fProcess;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.ICommandLauncher#waitAndRead(java.io.OutputStream, java.io.OutputStream)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public int waitAndRead(OutputStream out, OutputStream err) {
|
public int waitAndRead(OutputStream out, OutputStream err) {
|
||||||
|
@ -258,9 +237,6 @@ public class CommandLauncher implements ICommandLauncher {
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.ICommandLauncher#waitAndRead(java.io.OutputStream, java.io.OutputStream, org.eclipse.core.runtime.IProgressMonitor)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int waitAndRead(OutputStream output, OutputStream err, IProgressMonitor monitor) {
|
public int waitAndRead(OutputStream output, OutputStream err, IProgressMonitor monitor) {
|
||||||
if (fShowCommand) {
|
if (fShowCommand) {
|
||||||
|
|
|
@ -56,25 +56,16 @@ public class CdtVariable implements ICdtVariable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacro#getName()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return fName;
|
return fName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacro#getMacroValueType()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getValueType() {
|
public int getValueType() {
|
||||||
return fType;
|
return fType;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacro#getStringValue()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getStringValue() throws CdtVariableException {
|
public String getStringValue() throws CdtVariableException {
|
||||||
if (CdtVariableResolver.isStringListVariable(fType))
|
if (CdtVariableResolver.isStringListVariable(fType))
|
||||||
|
@ -83,9 +74,6 @@ public class CdtVariable implements ICdtVariable {
|
||||||
return fStringValue;
|
return fStringValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacro#getStringListValue()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String[] getStringListValue() throws CdtVariableException {
|
public String[] getStringListValue() throws CdtVariableException {
|
||||||
if (!CdtVariableResolver.isStringListVariable(fType))
|
if (!CdtVariableResolver.isStringListVariable(fType))
|
||||||
|
|
|
@ -159,40 +159,25 @@ public class CdtVariableStatus extends Status implements ICdtVariableStatus {
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroStatus#getMacroName()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getVariableName() {
|
public String getVariableName() {
|
||||||
return fMacroName;
|
return fMacroName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroStatus#getExpression()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getExpression() {
|
public String getExpression() {
|
||||||
return fExpression;
|
return fExpression;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroStatus#getReferencedName()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getReferencedMacroName() {
|
public String getReferencedMacroName() {
|
||||||
return fReferencedName;
|
return fReferencedName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroStatus#getContextType()
|
|
||||||
*/
|
|
||||||
// public int getContextType() {
|
// public int getContextType() {
|
||||||
// return fContextType;
|
// return fContextType;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroStatus#getContextData()
|
|
||||||
*/
|
|
||||||
// public Object getContextData() {
|
// public Object getContextData() {
|
||||||
// return fContextData;
|
// return fContextData;
|
||||||
// }
|
// }
|
||||||
|
|
|
@ -43,25 +43,16 @@ public class ErrorParserNamedWrapper implements IErrorParserNamed {
|
||||||
this.fErrorParser = errorParser;
|
this.fErrorParser = errorParser;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IErrorParser#processLine(java.lang.String, org.eclipse.cdt.core.ErrorParserManager)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean processLine(String line, ErrorParserManager epm) {
|
public boolean processLine(String line, ErrorParserManager epm) {
|
||||||
return fErrorParser.processLine(line, epm);
|
return fErrorParser.processLine(line, epm);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IErrorParserNamed#getId()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return fId;
|
return fId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IErrorParserNamed#getName()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return fName;
|
return fName;
|
||||||
|
@ -74,25 +65,16 @@ public class ErrorParserNamedWrapper implements IErrorParserNamed {
|
||||||
return fErrorParser;
|
return fErrorParser;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IErrorParserNamed#setId(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setId(String id) {
|
public void setId(String id) {
|
||||||
this.fId = id;
|
this.fId = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IErrorParserNamed#setName(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setName(String name) {
|
public void setName(String name) {
|
||||||
this.fName = name;
|
this.fName = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.lang.Object#equals(java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (o instanceof ErrorParserNamedWrapper) {
|
if (o instanceof ErrorParserNamedWrapper) {
|
||||||
|
@ -105,9 +87,6 @@ public class ErrorParserNamedWrapper implements IErrorParserNamed {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.lang.Object#clone()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Object clone() throws CloneNotSupportedException {
|
public Object clone() throws CloneNotSupportedException {
|
||||||
// shallow copy since IErrorParser is not {@link Cloneable} in general.
|
// shallow copy since IErrorParser is not {@link Cloneable} in general.
|
||||||
|
|
|
@ -89,9 +89,6 @@ public class FixitErrorParser extends RegexErrorParser {
|
||||||
return super.processLine(line, epManager);
|
return super.processLine(line, epManager);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.lang.Object#clone()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Object clone() throws CloneNotSupportedException {
|
public Object clone() throws CloneNotSupportedException {
|
||||||
FixitErrorParser that = new FixitErrorParser(getId(), getName());
|
FixitErrorParser that = new FixitErrorParser(getId(), getName());
|
||||||
|
|
|
@ -157,9 +157,6 @@ public class RegexErrorParser implements IErrorParserNamed {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.lang.Object#equals(java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (o instanceof RegexErrorParser) {
|
if (o instanceof RegexErrorParser) {
|
||||||
|
@ -170,9 +167,6 @@ public class RegexErrorParser implements IErrorParserNamed {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.lang.Object#clone()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Object clone() throws CloneNotSupportedException {
|
public Object clone() throws CloneNotSupportedException {
|
||||||
RegexErrorParser that = new RegexErrorParser(fId, fName);
|
RegexErrorParser that = new RegexErrorParser(fId, fName);
|
||||||
|
|
|
@ -344,9 +344,6 @@ public class RegexErrorPattern implements Cloneable {
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.lang.Object#equals(java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (o instanceof RegexErrorPattern) {
|
if (o instanceof RegexErrorPattern) {
|
||||||
|
@ -362,9 +359,6 @@ public class RegexErrorPattern implements Cloneable {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.lang.Object#clone()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Object clone() throws CloneNotSupportedException {
|
public Object clone() throws CloneNotSupportedException {
|
||||||
return new RegexErrorPattern(pattern.toString(), fileExpression, lineExpression, descriptionExpression,
|
return new RegexErrorPattern(pattern.toString(), fileExpression, lineExpression, descriptionExpression,
|
||||||
|
|
|
@ -42,9 +42,6 @@ public class EFSFileStorage extends PlatformObject implements IStorage {
|
||||||
this.locationURI = locationURI;
|
this.locationURI = locationURI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.core.resources.IStorage#getContents()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public InputStream getContents() throws CoreException {
|
public InputStream getContents() throws CoreException {
|
||||||
if (inputStream == null) {
|
if (inputStream == null) {
|
||||||
|
@ -59,17 +56,11 @@ public class EFSFileStorage extends PlatformObject implements IStorage {
|
||||||
return inputStream;
|
return inputStream;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.core.resources.IStorage#getFullPath()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IPath getFullPath() {
|
public IPath getFullPath() {
|
||||||
return URIUtil.toPath(locationURI);
|
return URIUtil.toPath(locationURI);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.core.resources.IStorage#getName()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
IFileStore fileStore = null;
|
IFileStore fileStore = null;
|
||||||
|
@ -88,9 +79,6 @@ public class EFSFileStorage extends PlatformObject implements IStorage {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.core.resources.IStorage#isReadOnly()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isReadOnly() {
|
public boolean isReadOnly() {
|
||||||
IFileStore fileStore = null;
|
IFileStore fileStore = null;
|
||||||
|
|
|
@ -390,9 +390,6 @@ public abstract class RefreshExclusion implements Cloneable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.lang.Object#clone()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public abstract Object clone();
|
public abstract Object clone();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
@Override
|
||||||
public void elementChanged(ElementChangedEvent event) {
|
public void elementChanged(ElementChangedEvent event) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -244,8 +244,6 @@ final public class CConfigBasedDescriptorManager implements ICDescriptorManager
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Run the descriptor operation. Lock the descriptor while this takes place...
|
* 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
|
@Override
|
||||||
public void runDescriptorOperation(IProject project, ICDescriptorOperation op, IProgressMonitor monitor)
|
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.
|
* 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
|
@Override
|
||||||
public void runDescriptorOperation(IProject project, ICProjectDescription des, ICDescriptorOperation op,
|
public void runDescriptorOperation(IProject project, ICProjectDescription des, ICDescriptorOperation op,
|
||||||
|
|
|
@ -77,9 +77,6 @@ class PositionTrackerChain implements IDocumentListener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.jface.text.IPositionUpdater#update(DocumentEvent)
|
|
||||||
*/
|
|
||||||
private void update(DocumentEvent event) {
|
private void update(DocumentEvent event) {
|
||||||
String text = event.getText();
|
String text = event.getText();
|
||||||
int insertLen = text != null ? text.length() : 0;
|
int insertLen = text != null ? text.length() : 0;
|
||||||
|
|
|
@ -160,9 +160,6 @@ public class CdtMacroSupplier extends CoreMacroSupplierBase {
|
||||||
return fInstance;
|
return fInstance;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacro(java.lang.String, int, java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICdtVariable getMacro(String macroName, int contextType, Object contextData) {
|
public ICdtVariable getMacro(String macroName, int contextType, Object contextData) {
|
||||||
ICdtVariable macro = null;
|
ICdtVariable macro = null;
|
||||||
|
@ -460,9 +457,6 @@ public class CdtMacroSupplier extends CoreMacroSupplierBase {
|
||||||
return macro;
|
return macro;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacros(int, java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICdtVariable[] getMacros(int contextType, Object contextData) {
|
public ICdtVariable[] getMacros(int contextType, Object contextData) {
|
||||||
String names[] = getMacroNames(contextType, false);
|
String names[] = getMacroNames(contextType, false);
|
||||||
|
|
|
@ -56,9 +56,6 @@ public class CdtVariableManager implements ICdtVariableManager {
|
||||||
return fDefault;
|
return fDefault;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroProvider#getMacro(java.lang.String, int, java.lang.Object, boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICdtVariable getVariable(String macroName, ICConfigurationDescription cfg) {
|
public ICdtVariable getVariable(String macroName, ICConfigurationDescription cfg) {
|
||||||
if (cfg instanceof CConfigurationDescriptionCache) {
|
if (cfg instanceof CConfigurationDescriptionCache) {
|
||||||
|
@ -75,9 +72,6 @@ public class CdtVariableManager implements ICdtVariableManager {
|
||||||
return getMacroContextInfo(type, cfg);
|
return getMacroContextInfo(type, cfg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroProvider#getMacros(int, java.lang.Object, boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICdtVariable[] getVariables(ICConfigurationDescription cfg) {
|
public ICdtVariable[] getVariables(ICConfigurationDescription cfg) {
|
||||||
if (cfg instanceof CConfigurationDescriptionCache) {
|
if (cfg instanceof CConfigurationDescriptionCache) {
|
||||||
|
@ -89,9 +83,6 @@ public class CdtVariableManager implements ICdtVariableManager {
|
||||||
return SupplierBasedCdtVariableManager.getVariables(getMacroContextInfo(type, cfg), true);
|
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) {
|
public ICdtVariableSupplier[] getSuppliers(int contextType, Object contextData) {
|
||||||
IVariableContextInfo info = getMacroContextInfo(contextType, contextData);
|
IVariableContextInfo info = getMacroContextInfo(contextType, contextData);
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
@ -106,17 +97,11 @@ public class CdtVariableManager implements ICdtVariableManager {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroProvider#convertStringListToString(java.lang.String[], java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String convertStringListToString(String[] value, String listDelimiter) {
|
public String convertStringListToString(String[] value, String listDelimiter) {
|
||||||
return CdtVariableResolver.convertStringListToString(value, 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
|
@Override
|
||||||
public String resolveValue(String value, String nonexistentMacrosValue, String listDelimiter,
|
public String resolveValue(String value, String nonexistentMacrosValue, String listDelimiter,
|
||||||
ICConfigurationDescription cfg) throws CdtVariableException {
|
ICConfigurationDescription cfg) throws CdtVariableException {
|
||||||
|
@ -128,9 +113,6 @@ public class CdtVariableManager implements ICdtVariableManager {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroProvider#resolveStringListValue(java.lang.String, java.lang.String, int, java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String[] resolveStringListValue(String value, String nonexistentMacrosValue, String listDelimiter,
|
public String[] resolveStringListValue(String value, String nonexistentMacrosValue, String listDelimiter,
|
||||||
ICConfigurationDescription cfg) throws CdtVariableException {
|
ICConfigurationDescription cfg) throws CdtVariableException {
|
||||||
|
@ -142,9 +124,6 @@ public class CdtVariableManager implements ICdtVariableManager {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroProvider#isStringListValue(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isStringListValue(String value, ICConfigurationDescription cfg) throws CdtVariableException {
|
public boolean isStringListValue(String value, ICConfigurationDescription cfg) throws CdtVariableException {
|
||||||
try {
|
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
|
@Override
|
||||||
public void checkVariableIntegrity(ICConfigurationDescription cfg) throws CdtVariableException {
|
public void checkVariableIntegrity(ICConfigurationDescription cfg) throws CdtVariableException {
|
||||||
|
|
||||||
|
@ -188,9 +164,6 @@ public class CdtVariableManager implements ICdtVariableManager {
|
||||||
return new CoreVariableSubstitutor(info, inexistentMacroValue, listDelimiter);
|
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
|
@Override
|
||||||
public String[] resolveStringListValues(String[] value, String nonexistentMacrosValue, String listDelimiter,
|
public String[] resolveStringListValues(String[] value, String nonexistentMacrosValue, String listDelimiter,
|
||||||
ICConfigurationDescription cfg) throws CdtVariableException {
|
ICConfigurationDescription cfg) throws CdtVariableException {
|
||||||
|
|
|
@ -30,18 +30,13 @@ public class CoreVariableSubstitutor extends SupplierBasedCdtVariableSubstitutor
|
||||||
public CoreVariableSubstitutor(IVariableContextInfo contextInfo, String inexistentMacroValue, String listDelimiter,
|
public CoreVariableSubstitutor(IVariableContextInfo contextInfo, String inexistentMacroValue, String listDelimiter,
|
||||||
Map<?, ?> delimiterMap, String incorrectlyReferencedMacroValue) {
|
Map<?, ?> delimiterMap, String incorrectlyReferencedMacroValue) {
|
||||||
super(contextInfo, inexistentMacroValue, listDelimiter, delimiterMap, incorrectlyReferencedMacroValue);
|
super(contextInfo, inexistentMacroValue, listDelimiter, delimiterMap, incorrectlyReferencedMacroValue);
|
||||||
// TODO Auto-generated constructor stub
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public CoreVariableSubstitutor(IVariableContextInfo contextInfo, String inexistentMacroValue,
|
public CoreVariableSubstitutor(IVariableContextInfo contextInfo, String inexistentMacroValue,
|
||||||
String listDelimiter) {
|
String listDelimiter) {
|
||||||
super(contextInfo, inexistentMacroValue, 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 {
|
public void setMacroContextInfo(int contextType, Object contextData) throws CdtVariableException {
|
||||||
setMacroContextInfo(getMacroContextInfo(contextType, contextData));
|
setMacroContextInfo(getMacroContextInfo(contextType, contextData));
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,25 +71,16 @@ public class DefaultVariableContextInfo implements ICoreVariableContextInfo {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.internal.macros.IMacroContextInfo#getContextType()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getContextType() {
|
public int getContextType() {
|
||||||
return fType;
|
return fType;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.internal.macros.IMacroContextInfo#getContextData()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Object getContextData() {
|
public Object getContextData() {
|
||||||
return fData;
|
return fData;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.internal.macros.IMacroContextInfo#getSuppliers()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICdtVariableSupplier[] getSuppliers() {
|
public ICdtVariableSupplier[] getSuppliers() {
|
||||||
if (fSuppliers == null)
|
if (fSuppliers == null)
|
||||||
|
@ -97,9 +88,6 @@ public class DefaultVariableContextInfo implements ICoreVariableContextInfo {
|
||||||
return fSuppliers;
|
return fSuppliers;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.internal.macros.IMacroContextInfo#getNext()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IVariableContextInfo getNext() {
|
public IVariableContextInfo getNext() {
|
||||||
switch (fType) {
|
switch (fType) {
|
||||||
|
|
|
@ -77,9 +77,6 @@ public class EclipseVariablesVariableSupplier implements ICdtVariableSupplier {
|
||||||
fArgument = argument;
|
fArgument = argument;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacro#getStringValue()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getStringValue() throws CdtVariableException {
|
public String getStringValue() throws CdtVariableException {
|
||||||
if (!fInitialized) {
|
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
|
@Override
|
||||||
public ICdtVariable getVariable(String macroName, IVariableContextInfo info) {
|
public ICdtVariable getVariable(String macroName, IVariableContextInfo info) {
|
||||||
return getVariable(macroName);
|
return getVariable(macroName);
|
||||||
|
@ -162,9 +156,6 @@ public class EclipseVariablesVariableSupplier implements ICdtVariableSupplier {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacros(int, java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICdtVariable[] getVariables(IVariableContextInfo info) {
|
public ICdtVariable[] getVariables(IVariableContextInfo info) {
|
||||||
return getVariables();
|
return getVariables();
|
||||||
|
|
|
@ -123,9 +123,6 @@ public class EnvironmentVariableSupplier extends CoreMacroSupplierBase {
|
||||||
return fInstance;
|
return fInstance;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacro(java.lang.String, int, java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICdtVariable getMacro(String macroName, int contextType, Object contextData) {
|
public ICdtVariable getMacro(String macroName, int contextType, Object contextData) {
|
||||||
if (macroName == null || macroName.isEmpty())
|
if (macroName == null || macroName.isEmpty())
|
||||||
|
@ -155,9 +152,6 @@ public class EnvironmentVariableSupplier extends CoreMacroSupplierBase {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacros(int, java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICdtVariable[] getMacros(int contextType, Object contextData) {
|
public ICdtVariable[] getMacros(int contextType, Object contextData) {
|
||||||
IEnvironmentVariable vars[] = null;
|
IEnvironmentVariable vars[] = null;
|
||||||
|
|
|
@ -109,9 +109,6 @@ public class UserDefinedVariableSupplier extends CoreMacroSupplierBase {
|
||||||
return fInstance;
|
return fInstance;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacro(java.lang.String, int, java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICdtVariable getMacro(String macroName, int contextType, Object contextData) {
|
public ICdtVariable getMacro(String macroName, int contextType, Object contextData) {
|
||||||
if (macroName == null || macroName.isEmpty())
|
if (macroName == null || macroName.isEmpty())
|
||||||
|
@ -123,9 +120,6 @@ public class UserDefinedVariableSupplier extends CoreMacroSupplierBase {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacros(int, java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICdtVariable[] getMacros(int contextType, Object contextData) {
|
public ICdtVariable[] getMacros(int contextType, Object contextData) {
|
||||||
StorableCdtVariables macros = getStorableMacros(contextType, contextData);
|
StorableCdtVariables macros = getStorableMacros(contextType, contextData);
|
||||||
|
|
|
@ -37,50 +37,32 @@ public class UserVarSupplier implements IUserVarSupplier {
|
||||||
return sup;
|
return sup;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.cdtvariables.IUserVarSupplier#createMacro(org.eclipse.cdt.core.cdtvariables.ICdtVariable, int, java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICdtVariable createMacro(ICdtVariable copy, ICConfigurationDescription contextData) {
|
public ICdtVariable createMacro(ICdtVariable copy, ICConfigurationDescription contextData) {
|
||||||
return CdtVariableManager.fUserDefinedMacroSupplier.createMacro(copy, CTX, 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
|
@Override
|
||||||
public ICdtVariable createMacro(String macroName, int type, String value, ICConfigurationDescription contextData) {
|
public ICdtVariable createMacro(String macroName, int type, String value, ICConfigurationDescription contextData) {
|
||||||
return CdtVariableManager.fUserDefinedMacroSupplier.createMacro(macroName, type, value, CTX, 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
|
@Override
|
||||||
public ICdtVariable createMacro(String macroName, int type, String[] value,
|
public ICdtVariable createMacro(String macroName, int type, String[] value,
|
||||||
ICConfigurationDescription contextData) {
|
ICConfigurationDescription contextData) {
|
||||||
return CdtVariableManager.fUserDefinedMacroSupplier.createMacro(macroName, type, value, CTX, contextData);
|
return CdtVariableManager.fUserDefinedMacroSupplier.createMacro(macroName, type, value, CTX, contextData);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.cdtvariables.IUserVarSupplier#deleteAll(java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void deleteAll(ICConfigurationDescription contextData) {
|
public void deleteAll(ICConfigurationDescription contextData) {
|
||||||
CdtVariableManager.fUserDefinedMacroSupplier.deleteAll(CTX, contextData);
|
CdtVariableManager.fUserDefinedMacroSupplier.deleteAll(CTX, contextData);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.cdtvariables.IUserVarSupplier#deleteMacro(java.lang.String, java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICdtVariable deleteMacro(String name, ICConfigurationDescription contextData) {
|
public ICdtVariable deleteMacro(String name, ICConfigurationDescription contextData) {
|
||||||
return CdtVariableManager.fUserDefinedMacroSupplier.deleteMacro(name, CTX, contextData);
|
return CdtVariableManager.fUserDefinedMacroSupplier.deleteMacro(name, CTX, contextData);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.cdtvariables.IUserVarSupplier#getMacros(java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICdtVariable[] getMacros(ICConfigurationDescription contextData) {
|
public ICdtVariable[] getMacros(ICConfigurationDescription contextData) {
|
||||||
return CdtVariableManager.fUserDefinedMacroSupplier.getMacros(CTX, contextData);
|
return CdtVariableManager.fUserDefinedMacroSupplier.getMacros(CTX, contextData);
|
||||||
|
|
|
@ -65,35 +65,23 @@ public class InternalASTServiceProvider implements IASTServiceProvider {
|
||||||
"GNUC++" //$NON-NLS-1$
|
"GNUC++" //$NON-NLS-1$
|
||||||
};
|
};
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.IASTServiceProvider#getName()
|
|
||||||
*/
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
// TODO is this a name or an id?
|
// TODO is this a name or an id?
|
||||||
return "CDT AST Service"; //$NON-NLS-1$
|
return "CDT AST Service"; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.IASTServiceProvider#getTranslationUnit()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IASTTranslationUnit getTranslationUnit(IFile fileToParse) throws UnsupportedDialectException {
|
public IASTTranslationUnit getTranslationUnit(IFile fileToParse) throws UnsupportedDialectException {
|
||||||
return getTranslationUnit(fileToParse.getLocation().toOSString(), fileToParse,
|
return getTranslationUnit(fileToParse.getLocation().toOSString(), fileToParse,
|
||||||
SavedCodeReaderFactory.getInstance(), null);
|
SavedCodeReaderFactory.getInstance(), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.IASTServiceProvider#getTranslationUnit(org.eclipse.cdt.core.dom.ICodeReaderFactory)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IASTTranslationUnit getTranslationUnit(IFile fileToParse, ICodeReaderFactory fileCreator)
|
public IASTTranslationUnit getTranslationUnit(IFile fileToParse, ICodeReaderFactory fileCreator)
|
||||||
throws UnsupportedDialectException {
|
throws UnsupportedDialectException {
|
||||||
return getTranslationUnit(fileToParse.getLocation().toOSString(), fileToParse, fileCreator, null);
|
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
|
@Override
|
||||||
public IASTTranslationUnit getTranslationUnit(IFile fileToParse, ICodeReaderFactory fileCreator,
|
public IASTTranslationUnit getTranslationUnit(IFile fileToParse, ICodeReaderFactory fileCreator,
|
||||||
IParserConfiguration configuration) throws UnsupportedDialectException {
|
IParserConfiguration configuration) throws UnsupportedDialectException {
|
||||||
|
|
|
@ -28,18 +28,12 @@ import org.eclipse.cdt.core.parser.ParserUtil;
|
||||||
import org.eclipse.cdt.internal.core.parser.EmptyIterator;
|
import org.eclipse.cdt.internal.core.parser.EmptyIterator;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author jcamelon
|
|
||||||
*/
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public class PartialWorkingCopyCodeReaderFactory extends AbstractCodeReaderFactory {
|
public class PartialWorkingCopyCodeReaderFactory extends AbstractCodeReaderFactory {
|
||||||
|
|
||||||
private final IWorkingCopyProvider provider;
|
private final IWorkingCopyProvider provider;
|
||||||
private ICodeReaderCache cache = null;
|
private ICodeReaderCache cache = null;
|
||||||
|
|
||||||
/**
|
|
||||||
* @param provider
|
|
||||||
*/
|
|
||||||
public PartialWorkingCopyCodeReaderFactory(IWorkingCopyProvider provider,
|
public PartialWorkingCopyCodeReaderFactory(IWorkingCopyProvider provider,
|
||||||
IIncludeFileResolutionHeuristics heuristics) {
|
IIncludeFileResolutionHeuristics heuristics) {
|
||||||
super(heuristics);
|
super(heuristics);
|
||||||
|
@ -47,17 +41,11 @@ public class PartialWorkingCopyCodeReaderFactory extends AbstractCodeReaderFacto
|
||||||
cache = SavedCodeReaderFactory.getInstance().getCodeReaderCache();
|
cache = SavedCodeReaderFactory.getInstance().getCodeReaderCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ICodeReaderFactory#getUniqueIdentifier()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getUniqueIdentifier() {
|
public int getUniqueIdentifier() {
|
||||||
return CDOM.PARSE_WORKING_COPY_WITH_SAVED_INCLUSIONS;
|
return CDOM.PARSE_WORKING_COPY_WITH_SAVED_INCLUSIONS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ICodeReaderFactory#createCodeReaderForTranslationUnit(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public CodeReader createCodeReaderForTranslationUnit(String path) {
|
public CodeReader createCodeReaderForTranslationUnit(String path) {
|
||||||
return checkWorkingCopyThenCache(path);
|
return checkWorkingCopyThenCache(path);
|
||||||
|
@ -74,9 +62,6 @@ public class PartialWorkingCopyCodeReaderFactory extends AbstractCodeReaderFacto
|
||||||
return cache.get(path);
|
return cache.get(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ICodeReaderFactory#createCodeReaderForInclusion(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public CodeReader createCodeReaderForInclusion(String path) {
|
public CodeReader createCodeReaderForInclusion(String path) {
|
||||||
return cache.get(path);
|
return cache.get(path);
|
||||||
|
@ -94,9 +79,6 @@ public class PartialWorkingCopyCodeReaderFactory extends AbstractCodeReaderFacto
|
||||||
return Arrays.asList(provider.getWorkingCopies()).iterator();
|
return Arrays.asList(provider.getWorkingCopies()).iterator();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ICodeReaderFactory#getCodeReaderCache()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICodeReaderCache getCodeReaderCache() {
|
public ICodeReaderCache getCodeReaderCache() {
|
||||||
return cache;
|
return cache;
|
||||||
|
|
|
@ -73,17 +73,11 @@ public class SavedCodeReaderFactory extends AbstractCodeReaderFactory {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ICodeReaderFactory#getUniqueIdentifier()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getUniqueIdentifier() {
|
public int getUniqueIdentifier() {
|
||||||
return CDOM.PARSE_SAVED_RESOURCES;
|
return CDOM.PARSE_SAVED_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ICodeReaderFactory#createCodeReaderForTranslationUnit(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public CodeReader createCodeReaderForTranslationUnit(String path) {
|
public CodeReader createCodeReaderForTranslationUnit(String path) {
|
||||||
return cache.get(path);
|
return cache.get(path);
|
||||||
|
@ -93,9 +87,6 @@ public class SavedCodeReaderFactory extends AbstractCodeReaderFactory {
|
||||||
return new CodeReader(tu.getResource().getLocation().toOSString(), tu.getContents());
|
return new CodeReader(tu.getResource().getLocation().toOSString(), tu.getContents());
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ICodeReaderFactory#createCodeReaderForInclusion(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public CodeReader createCodeReaderForInclusion(String path) {
|
public CodeReader createCodeReaderForInclusion(String path) {
|
||||||
return cache.get(path);
|
return cache.get(path);
|
||||||
|
@ -107,9 +98,6 @@ public class SavedCodeReaderFactory extends AbstractCodeReaderFactory {
|
||||||
return cache.get(astPath, ifl);
|
return cache.get(astPath, ifl);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ICodeReaderFactory#createCodeReaderForInclusion(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICodeReaderCache getCodeReaderCache() {
|
public ICodeReaderCache getCodeReaderCache() {
|
||||||
return cache;
|
return cache;
|
||||||
|
|
|
@ -55,9 +55,6 @@ public class BuildSystemEnvironmentSupplier implements ICoreEnvironmentVariableS
|
||||||
fStartData = level;
|
fStartData = level;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.envvar.IEnvironmentVariableProvider#getVariable(java.lang.String, java.lang.Object, boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IEnvironmentVariable getVariable(String variableName, ICConfigurationDescription cfg,
|
public IEnvironmentVariable getVariable(String variableName, ICConfigurationDescription cfg,
|
||||||
boolean resolveMacros) {
|
boolean resolveMacros) {
|
||||||
|
@ -71,9 +68,6 @@ public class BuildSystemEnvironmentSupplier implements ICoreEnvironmentVariableS
|
||||||
return filterVariables(super.getVariables(cfg, resolveMacros));
|
return filterVariables(super.getVariables(cfg, resolveMacros));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.internal.envvar.EnvironmentVariableProvider#getContextInfo(java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IEnvironmentContextInfo getContextInfo(Object level) {
|
public IEnvironmentContextInfo getContextInfo(Object level) {
|
||||||
IEnvironmentContextInfo startInfo = getStartInfo();
|
IEnvironmentContextInfo startInfo = getStartInfo();
|
||||||
|
@ -153,9 +147,6 @@ public class BuildSystemEnvironmentSupplier implements ICoreEnvironmentVariableS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.envvar.IEnvironmentVariableSupplier#getVariable()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IEnvironmentVariable getVariable(String name, Object context) {
|
public IEnvironmentVariable getVariable(String name, Object context) {
|
||||||
if (context == null)
|
if (context == null)
|
||||||
|
@ -175,9 +166,6 @@ public class BuildSystemEnvironmentSupplier implements ICoreEnvironmentVariableS
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.envvar.IEnvironmentVariableSupplier#getVariables()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IEnvironmentVariable[] getVariables(Object context) {
|
public IEnvironmentVariable[] getVariables(Object context) {
|
||||||
if (context == null)
|
if (context == null)
|
||||||
|
|
|
@ -57,9 +57,6 @@ public class DefaultEnvironmentContextInfo implements IEnvironmentContextInfo {
|
||||||
return suppliers;
|
return suppliers;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.internal.envvar.IContextInfo#getNext()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IEnvironmentContextInfo getNext() {
|
public IEnvironmentContextInfo getNext() {
|
||||||
DefaultEnvironmentContextInfo next = null;
|
DefaultEnvironmentContextInfo next = null;
|
||||||
|
@ -71,9 +68,6 @@ public class DefaultEnvironmentContextInfo implements IEnvironmentContextInfo {
|
||||||
return next;
|
return next;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.internal.envvar.IContextInfo#getSuppliers()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ICoreEnvironmentVariableSupplier[] getSuppliers() {
|
public ICoreEnvironmentVariableSupplier[] getSuppliers() {
|
||||||
if (fContextSuppliers == null)
|
if (fContextSuppliers == null)
|
||||||
|
@ -85,9 +79,6 @@ public class DefaultEnvironmentContextInfo implements IEnvironmentContextInfo {
|
||||||
fContextSuppliers = suppliers;
|
fContextSuppliers = suppliers;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.internal.envvar.IContextInfo#getContext()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Object getContext() {
|
public Object getContext() {
|
||||||
return fContextObject;
|
return fContextObject;
|
||||||
|
|
|
@ -28,9 +28,6 @@ import org.eclipse.cdt.utils.spawner.EnvironmentReader;
|
||||||
*/
|
*/
|
||||||
public class EclipseEnvironmentSupplier implements ICoreEnvironmentVariableSupplier {
|
public class EclipseEnvironmentSupplier implements ICoreEnvironmentVariableSupplier {
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.envvar.IEnvironmentVariableSupplier#getVariable()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IEnvironmentVariable getVariable(String name, Object context) {
|
public IEnvironmentVariable getVariable(String name, Object context) {
|
||||||
if (context == null) {
|
if (context == null) {
|
||||||
|
@ -42,9 +39,6 @@ public class EclipseEnvironmentSupplier implements ICoreEnvironmentVariableSuppl
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.envvar.IEnvironmentVariableSupplier#getVariables()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IEnvironmentVariable[] getVariables(Object context) {
|
public IEnvironmentVariable[] getVariables(Object context) {
|
||||||
if (context == null) {
|
if (context == null) {
|
||||||
|
|
|
@ -20,65 +20,41 @@ import org.eclipse.cdt.core.IAddressFactory2;
|
||||||
|
|
||||||
public class Addr32Factory implements IAddressFactory2 {
|
public class Addr32Factory implements IAddressFactory2 {
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IAddressFactory#getZero()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddress getZero() {
|
public IAddress getZero() {
|
||||||
return Addr32.ZERO;
|
return Addr32.ZERO;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IAddressFactory#getMax()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddress getMax() {
|
public IAddress getMax() {
|
||||||
return Addr32.MAX;
|
return Addr32.MAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IAddressFactory#createAddress(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddress createAddress(String addr) {
|
public IAddress createAddress(String addr) {
|
||||||
return createAddress(addr, true);
|
return createAddress(addr, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IAddressFactory2#createAddress(java.lang.String, boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddress createAddress(String addr, boolean truncate) {
|
public IAddress createAddress(String addr, boolean truncate) {
|
||||||
return new Addr32(addr, truncate);
|
return new Addr32(addr, truncate);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IAddressFactory#createAddress(java.lang.String, int)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddress createAddress(String addr, int radix) {
|
public IAddress createAddress(String addr, int radix) {
|
||||||
return createAddress(addr, radix, true);
|
return createAddress(addr, radix, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IAddressFactory2#createAddress(java.lang.String, int, boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddress createAddress(String addr, int radix, boolean truncate) {
|
public IAddress createAddress(String addr, int radix, boolean truncate) {
|
||||||
return new Addr32(addr, radix, truncate);
|
return new Addr32(addr, radix, truncate);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IAddressFactory#createAddress(java.math.BigInteger)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddress createAddress(BigInteger addr) {
|
public IAddress createAddress(BigInteger addr) {
|
||||||
return createAddress(addr, true);
|
return createAddress(addr, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IAddressFactory2#createAddress(java.math.BigInteger, boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddress createAddress(BigInteger addr, boolean truncate) {
|
public IAddress createAddress(BigInteger addr, boolean truncate) {
|
||||||
return new Addr32(addr.longValue(), truncate);
|
return new Addr32(addr.longValue(), truncate);
|
||||||
|
|
|
@ -20,65 +20,41 @@ import org.eclipse.cdt.core.IAddressFactory2;
|
||||||
|
|
||||||
public class Addr64Factory implements IAddressFactory2 {
|
public class Addr64Factory implements IAddressFactory2 {
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IAddressFactory#getZero()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddress getZero() {
|
public IAddress getZero() {
|
||||||
return Addr64.ZERO;
|
return Addr64.ZERO;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IAddressFactory#getMax()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddress getMax() {
|
public IAddress getMax() {
|
||||||
return Addr64.MAX;
|
return Addr64.MAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IAddressFactory#createAddress(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddress createAddress(String addr) {
|
public IAddress createAddress(String addr) {
|
||||||
return createAddress(addr, true);
|
return createAddress(addr, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IAddressFactory2#createAddress(java.lang.String, boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddress createAddress(String addr, boolean truncate) {
|
public IAddress createAddress(String addr, boolean truncate) {
|
||||||
return new Addr64(addr, truncate);
|
return new Addr64(addr, truncate);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IAddressFactory#createAddress(java.lang.String, int)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddress createAddress(String addr, int radix) {
|
public IAddress createAddress(String addr, int radix) {
|
||||||
return createAddress(addr, radix, true);
|
return createAddress(addr, radix, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IAddressFactory2#createAddress(java.lang.String, int, boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddress createAddress(String addr, int radix, boolean truncate) {
|
public IAddress createAddress(String addr, int radix, boolean truncate) {
|
||||||
return new Addr64(addr, radix, truncate);
|
return new Addr64(addr, radix, truncate);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IAddressFactory#createAddress(java.math.BigInteger)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddress createAddress(BigInteger addr) {
|
public IAddress createAddress(BigInteger addr) {
|
||||||
return createAddress(addr, true);
|
return createAddress(addr, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IAddressFactory2#createAddress(java.math.BigInteger, boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddress createAddress(BigInteger addr, boolean truncate) {
|
public IAddress createAddress(BigInteger addr, boolean truncate) {
|
||||||
return new Addr64(addr, truncate);
|
return new Addr64(addr, truncate);
|
||||||
|
|
|
@ -48,9 +48,6 @@ public abstract class BinaryObjectAdapter extends BinaryFile implements IBinaryO
|
||||||
super(parser, path, type);
|
super(parser, path, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser.IBinaryObject#getSymbol(long)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ISymbol getSymbol(IAddress addr) {
|
public ISymbol getSymbol(IAddress addr) {
|
||||||
ISymbol[] syms = getSymbols();
|
ISymbol[] syms = getSymbols();
|
||||||
|
|
|
@ -23,16 +23,10 @@ import org.eclipse.core.runtime.Path;
|
||||||
public class DefaultGnuToolFactory implements IGnuToolFactory {
|
public class DefaultGnuToolFactory implements IGnuToolFactory {
|
||||||
protected ICExtension fExtension;
|
protected ICExtension fExtension;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public DefaultGnuToolFactory(ICExtension ext) {
|
public DefaultGnuToolFactory(ICExtension ext) {
|
||||||
fExtension = ext;
|
fExtension = ext;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.IGnuToolProvider#getAddr2line(org.eclipse.core.runtime.IPath)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Addr2line getAddr2line(IPath path) {
|
public Addr2line getAddr2line(IPath path) {
|
||||||
IPath addr2LinePath = getAddr2linePath();
|
IPath addr2LinePath = getAddr2linePath();
|
||||||
|
@ -46,9 +40,6 @@ public class DefaultGnuToolFactory implements IGnuToolFactory {
|
||||||
return addr2line;
|
return addr2line;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.IGnuToolProvider#getCPPFilt()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public CPPFilt getCPPFilt() {
|
public CPPFilt getCPPFilt() {
|
||||||
IPath cppFiltPath = getCPPFiltPath();
|
IPath cppFiltPath = getCPPFiltPath();
|
||||||
|
@ -62,9 +53,6 @@ public class DefaultGnuToolFactory implements IGnuToolFactory {
|
||||||
return cppfilt;
|
return cppfilt;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.IGnuToolProvider#getObjdump(org.eclipse.core.runtime.IPath)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Objdump getObjdump(IPath path) {
|
public Objdump getObjdump(IPath path) {
|
||||||
IPath objdumpPath = getObjdumpPath();
|
IPath objdumpPath = getObjdumpPath();
|
||||||
|
@ -79,9 +67,6 @@ public class DefaultGnuToolFactory implements IGnuToolFactory {
|
||||||
return objdump;
|
return objdump;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.IGnuToolProvider#getObjdump(org.eclipse.core.runtime.IPath)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public NM getNM(IPath path) {
|
public NM getNM(IPath path) {
|
||||||
IPath nmPath = getNMPath();
|
IPath nmPath = getNMPath();
|
||||||
|
|
|
@ -53,33 +53,21 @@ public class Symbol implements ISymbol {
|
||||||
this.sourceFile = null;
|
this.sourceFile = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser.ISymbol#getBinarObject()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IBinaryObject getBinaryObject() {
|
public IBinaryObject getBinaryObject() {
|
||||||
return binary;
|
return binary;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser.ISymbol#getFilename()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IPath getFilename() {
|
public IPath getFilename() {
|
||||||
return sourceFile;
|
return sourceFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser.ISymbol#getName()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser.ISymbol#getType()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getType() {
|
public int getType() {
|
||||||
return type;
|
return type;
|
||||||
|
|
|
@ -62,9 +62,6 @@ public class SupplierBasedCdtVariableSubstitutor implements IVariableSubstitutor
|
||||||
fIsList = true;
|
fIsList = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacro#getStringValue()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getStringValue() throws CdtVariableException {
|
public String getStringValue() throws CdtVariableException {
|
||||||
// if(!fIsDefined)
|
// if(!fIsDefined)
|
||||||
|
@ -74,9 +71,6 @@ public class SupplierBasedCdtVariableSubstitutor implements IVariableSubstitutor
|
||||||
return fStringValue;
|
return fStringValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacro#getStringListValue()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String[] getStringListValue() throws CdtVariableException {
|
public String[] getStringListValue() throws CdtVariableException {
|
||||||
// if(!fIsDefined)
|
// if(!fIsDefined)
|
||||||
|
@ -235,9 +229,6 @@ public class SupplierBasedCdtVariableSubstitutor implements IVariableSubstitutor
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.internal.macros.IMacroSubstitutor#resolveToString(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String resolveToString(String macroName) throws CdtVariableException {
|
public String resolveToString(String macroName) throws CdtVariableException {
|
||||||
return resolveToString(new MacroDescriptor(macroName, fContextInfo));
|
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);
|
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
|
@Override
|
||||||
public String[] resolveToStringList(String macroName) throws CdtVariableException {
|
public String[] resolveToStringList(String macroName) throws CdtVariableException {
|
||||||
return resolveToStringList(new MacroDescriptor(macroName, fContextInfo));
|
return resolveToStringList(new MacroDescriptor(macroName, fContextInfo));
|
||||||
|
@ -419,9 +407,6 @@ public class SupplierBasedCdtVariableSubstitutor implements IVariableSubstitutor
|
||||||
return fResolvedMacros.remove(name);
|
return fResolvedMacros.remove(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.internal.macros.IMacroSubstitutor#getMacroContextInfo()
|
|
||||||
*/
|
|
||||||
public IVariableContextInfo getMacroContextInfo() {
|
public IVariableContextInfo getMacroContextInfo() {
|
||||||
return fContextInfo;
|
return fContextInfo;
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,9 +66,6 @@ public class CygwinPEParser extends PEParser {
|
||||||
return new DefaultCygwinToolFactory(this);
|
return new DefaultCygwinToolFactory(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.core.runtime.PlatformObject#getAdapter(java.lang.Class)
|
|
||||||
*/
|
|
||||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
@Override
|
@Override
|
||||||
public Object getAdapter(Class adapter) {
|
public Object getAdapter(Class adapter) {
|
||||||
|
|
|
@ -64,9 +64,6 @@ public class CygwinPEParser64 extends PEParser64 {
|
||||||
return new DefaultCygwinToolFactory(this);
|
return new DefaultCygwinToolFactory(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.core.runtime.PlatformObject#getAdapter(java.lang.Class)
|
|
||||||
*/
|
|
||||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
@Override
|
@Override
|
||||||
public Object getAdapter(Class adapter) {
|
public Object getAdapter(Class adapter) {
|
||||||
|
|
|
@ -59,9 +59,6 @@ class CygwinSymbol extends Symbol {
|
||||||
super(binary, name, type, addr, size);
|
super(binary, name, type, addr, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.Symbol#getLineNumber(long)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getLineNumber(long offset) {
|
public int getLineNumber(long offset) {
|
||||||
int line = -1;
|
int line = -1;
|
||||||
|
|
|
@ -61,9 +61,6 @@ class CygwinSymbol64 extends Symbol {
|
||||||
super(binary, name, type, addr, size);
|
super(binary, name, type, addr, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.Symbol#getLineNumber(long)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getLineNumber(long offset) {
|
public int getLineNumber(long offset) {
|
||||||
int line = -1;
|
int line = -1;
|
||||||
|
|
|
@ -53,9 +53,6 @@ public class PEBinaryObject64 extends BinaryObjectAdapter {
|
||||||
super(parser, p, type);
|
super(parser, p, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.BinaryObjectAdapter#getName()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
if (header != null) {
|
if (header != null) {
|
||||||
|
@ -64,9 +61,6 @@ public class PEBinaryObject64 extends BinaryObjectAdapter {
|
||||||
return super.getName();
|
return super.getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser.IBinaryFile#getContents()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public InputStream getContents() throws IOException {
|
public InputStream getContents() throws IOException {
|
||||||
if (getPath() != null && header != null) {
|
if (getPath() != null && header != null) {
|
||||||
|
@ -190,9 +184,6 @@ public class PEBinaryObject64 extends BinaryObjectAdapter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.BinaryObjectAdapter#getAddressFactory()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddressFactory getAddressFactory() {
|
public IAddressFactory getAddressFactory() {
|
||||||
if (addressFactory == null) {
|
if (addressFactory == null) {
|
||||||
|
|
|
@ -32,17 +32,11 @@ import org.eclipse.core.runtime.IPath;
|
||||||
*/
|
*/
|
||||||
public class PEParser64 extends AbstractCExtension implements IBinaryParser {
|
public class PEParser64 extends AbstractCExtension implements IBinaryParser {
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser#getBinary(org.eclipse.core.runtime.IPath)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IBinaryFile getBinary(IPath path) throws IOException {
|
public IBinaryFile getBinary(IPath path) throws IOException {
|
||||||
return getBinary(null, path);
|
return getBinary(null, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser#getBinary(byte[], org.eclipse.core.runtime.IPath)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IBinaryFile getBinary(byte[] hints, IPath path) throws IOException {
|
public IBinaryFile getBinary(byte[] hints, IPath path) throws IOException {
|
||||||
if (path == null) {
|
if (path == null) {
|
||||||
|
@ -99,9 +93,6 @@ public class PEParser64 extends AbstractCExtension implements IBinaryParser {
|
||||||
return "PE"; //$NON-NLS-1$
|
return "PE"; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser#isBinary(byte[], org.eclipse.core.runtime.IPath)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isBinary(byte[] array, IPath path) {
|
public boolean isBinary(byte[] array, IPath path) {
|
||||||
boolean isBin = PE64.isExeHeader(array) || AR.isARHeader(array);
|
boolean isBin = PE64.isExeHeader(array) || AR.isARHeader(array);
|
||||||
|
@ -134,9 +125,6 @@ public class PEParser64 extends AbstractCExtension implements IBinaryParser {
|
||||||
return isBin;
|
return isBin;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser#getHintBufferSize()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getHintBufferSize() {
|
public int getHintBufferSize() {
|
||||||
return 512;
|
return 512;
|
||||||
|
|
|
@ -48,9 +48,6 @@ public class TypeNumber {
|
||||||
return super.equals(obj);
|
return super.equals(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.lang.Object#hashCode()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return fileno * 10 + typeno;
|
return fileno * 10 + typeno;
|
||||||
|
|
|
@ -70,9 +70,6 @@ public class DebugSymsRequestor implements IDebugEntryRequestor {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#enterCompilationUnit(java.lang.String, long)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void enterCompilationUnit(String name, long address) {
|
public void enterCompilationUnit(String name, long address) {
|
||||||
DebugSym sym = new DebugSym();
|
DebugSym sym = new DebugSym();
|
||||||
|
@ -84,9 +81,6 @@ public class DebugSymsRequestor implements IDebugEntryRequestor {
|
||||||
list.add(sym);
|
list.add(sym);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#exitCompilationUnit(long)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void exitCompilationUnit(long address) {
|
public void exitCompilationUnit(long address) {
|
||||||
if (currentCU != null) {
|
if (currentCU != null) {
|
||||||
|
@ -95,23 +89,14 @@ public class DebugSymsRequestor implements IDebugEntryRequestor {
|
||||||
currentCU = null;
|
currentCU = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#enterInclude(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void enterInclude(String name) {
|
public void enterInclude(String name) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#exitInclude()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void exitInclude() {
|
public void exitInclude() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#enterFunction(java.lang.String, int, boolean, long)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void enterFunction(String name, DebugType type, boolean isGlobal, long address) {
|
public void enterFunction(String name, DebugType type, boolean isGlobal, long address) {
|
||||||
DebugSym sym = new DebugSym();
|
DebugSym sym = new DebugSym();
|
||||||
|
@ -125,9 +110,6 @@ public class DebugSymsRequestor implements IDebugEntryRequestor {
|
||||||
list.add(sym);
|
list.add(sym);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#exitFunction(long)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void exitFunction(long address) {
|
public void exitFunction(long address) {
|
||||||
if (currentFunction != null) {
|
if (currentFunction != null) {
|
||||||
|
@ -136,23 +118,14 @@ public class DebugSymsRequestor implements IDebugEntryRequestor {
|
||||||
currentFunction = null;
|
currentFunction = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#enterCodeBlock(long)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void enterCodeBlock(long offset) {
|
public void enterCodeBlock(long offset) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#exitCodeBlock(long)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void exitCodeBlock(long offset) {
|
public void exitCodeBlock(long offset) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#acceptStatement(int, long)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void acceptStatement(int line, long address) {
|
public void acceptStatement(int line, long address) {
|
||||||
DebugSym sym = new DebugSym();
|
DebugSym sym = new DebugSym();
|
||||||
|
@ -172,30 +145,18 @@ public class DebugSymsRequestor implements IDebugEntryRequestor {
|
||||||
list.add(sym);
|
list.add(sym);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#acceptIntegerConst(java.lang.String, long)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void acceptIntegerConst(String name, int value) {
|
public void acceptIntegerConst(String name, int value) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#acceptFloatConst(java.lang.String, double)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void acceptFloatConst(String name, double value) {
|
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
|
@Override
|
||||||
public void acceptTypeConst(String name, DebugType type, int value) {
|
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
|
@Override
|
||||||
public void acceptParameter(String name, DebugType type, DebugParameterKind kind, long offset) {
|
public void acceptParameter(String name, DebugType type, DebugParameterKind kind, long offset) {
|
||||||
DebugSym sym = new DebugSym();
|
DebugSym sym = new DebugSym();
|
||||||
|
@ -208,9 +169,6 @@ public class DebugSymsRequestor implements IDebugEntryRequestor {
|
||||||
list.add(sym);
|
list.add(sym);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#acceptVariable(java.lang.String, int, int, long)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void acceptVariable(String name, DebugType type, DebugVariableKind kind, long address) {
|
public void acceptVariable(String name, DebugType type, DebugVariableKind kind, long address) {
|
||||||
DebugSym sym = new DebugSym();
|
DebugSym sym = new DebugSym();
|
||||||
|
@ -223,16 +181,10 @@ public class DebugSymsRequestor implements IDebugEntryRequestor {
|
||||||
list.add(sym);
|
list.add(sym);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.debug.IDebugEntryRequestor#acceptCaughtException(java.lang.String, org.eclipse.cdt.utils.debug.DebugType, long)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void acceptCaughtException(String name, DebugType type, long address) {
|
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
|
@Override
|
||||||
public void acceptTypeDef(String name, DebugType type) {
|
public void acceptTypeDef(String name, DebugType type) {
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,9 +61,6 @@ public class ElfBinaryObject extends BinaryObjectAdapter {
|
||||||
fElfAttributes = elfAttributes;
|
fElfAttributes = elfAttributes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.BinaryObjectAdapter#getName()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
if (header != null) {
|
if (header != null) {
|
||||||
|
@ -72,9 +69,6 @@ public class ElfBinaryObject extends BinaryObjectAdapter {
|
||||||
return super.getName();
|
return super.getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser.IBinaryFile#getContents()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public InputStream getContents() throws IOException {
|
public InputStream getContents() throws IOException {
|
||||||
if (getPath() != null && header != null) {
|
if (getPath() != null && header != null) {
|
||||||
|
@ -83,9 +77,6 @@ public class ElfBinaryObject extends BinaryObjectAdapter {
|
||||||
return super.getContents();
|
return super.getContents();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser.IBinaryObject#getSymbols()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ISymbol[] getSymbols() {
|
public ISymbol[] getSymbols() {
|
||||||
// Call the hasChanged first, to initialize the timestamp
|
// Call the hasChanged first, to initialize the timestamp
|
||||||
|
@ -99,9 +90,6 @@ public class ElfBinaryObject extends BinaryObjectAdapter {
|
||||||
return symbols;
|
return symbols;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.BinaryObjectAdapter#getBinaryObjectInfo()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected BinaryObjectInfo getBinaryObjectInfo() {
|
protected BinaryObjectInfo getBinaryObjectInfo() {
|
||||||
// Call the hasChanged first, to initialize the timestamp
|
// Call the hasChanged first, to initialize the timestamp
|
||||||
|
@ -219,9 +207,6 @@ public class ElfBinaryObject extends BinaryObjectAdapter {
|
||||||
return super.getAdapter(adapter);
|
return super.getAdapter(adapter);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.utils.BinaryObjectAdapter#getAddressFactory()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IAddressFactory getAddressFactory() {
|
public IAddressFactory getAddressFactory() {
|
||||||
if (addressFactory == null) {
|
if (addressFactory == null) {
|
||||||
|
@ -239,9 +224,6 @@ public class ElfBinaryObject extends BinaryObjectAdapter {
|
||||||
return addressFactory;
|
return addressFactory;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see org.eclipse.cdt.utils.BinaryObjectAdapter#isLittleEndian()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isLittleEndian() {
|
public boolean isLittleEndian() {
|
||||||
if (fElfAttributes != null) {
|
if (fElfAttributes != null) {
|
||||||
|
@ -250,9 +232,6 @@ public class ElfBinaryObject extends BinaryObjectAdapter {
|
||||||
return super.isLittleEndian();
|
return super.isLittleEndian();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see org.eclipse.cdt.utils.BinaryObjectAdapter#getCPU()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getCPU() {
|
public String getCPU() {
|
||||||
if (fElfAttributes != null) {
|
if (fElfAttributes != null) {
|
||||||
|
|
|
@ -33,13 +33,8 @@ import org.eclipse.cdt.utils.elf.Elf.PHdr;
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.IStatus;
|
import org.eclipse.core.runtime.IStatus;
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public class ElfParser extends AbstractCExtension implements IBinaryParser {
|
public class ElfParser extends AbstractCExtension implements IBinaryParser {
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser#getBinary(org.eclipse.core.runtime.IPath)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IBinaryFile getBinary(IPath path) throws IOException {
|
public IBinaryFile getBinary(IPath path) throws IOException {
|
||||||
return getBinary(null, path);
|
return getBinary(null, path);
|
||||||
|
@ -95,25 +90,16 @@ public class ElfParser extends AbstractCExtension implements IBinaryParser {
|
||||||
return binary;
|
return binary;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser#getFormat()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getFormat() {
|
public String getFormat() {
|
||||||
return "ELF"; //$NON-NLS-1$
|
return "ELF"; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser#isBinary(byte[], org.eclipse.core.runtime.IPath)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isBinary(byte[] array, IPath path) {
|
public boolean isBinary(byte[] array, IPath path) {
|
||||||
return Elf.isElfHeader(array) || AR.isARHeader(array);
|
return Elf.isElfHeader(array) || AR.isARHeader(array);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.IBinaryParser#getBufferSize()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getHintBufferSize() {
|
public int getHintBufferSize() {
|
||||||
return 128;
|
return 128;
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue