mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-13 11:15:38 +02:00
bug 319777: Missing @Override annotations
patch from Petri Tuononen
This commit is contained in:
parent
f7156a727c
commit
dbe5a12393
112 changed files with 324 additions and 15 deletions
|
@ -176,6 +176,7 @@ public class MakefileContentOutlinePage extends ContentOutlinePage implements IC
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.jface.viewers.ILabelProvider#getImage(java.lang.Object)
|
* @see org.eclipse.jface.viewers.ILabelProvider#getImage(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public Image getImage(Object element) {
|
public Image getImage(Object element) {
|
||||||
if (element instanceof ITargetRule) {
|
if (element instanceof ITargetRule) {
|
||||||
return MakeUIImages.getImage(MakeUIImages.IMG_OBJS_MAKEFILE_TARGET_RULE);
|
return MakeUIImages.getImage(MakeUIImages.IMG_OBJS_MAKEFILE_TARGET_RULE);
|
||||||
|
@ -198,6 +199,7 @@ public class MakefileContentOutlinePage extends ContentOutlinePage implements IC
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object)
|
* @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String getText(Object element) {
|
public String getText(Object element) {
|
||||||
String name;
|
String name;
|
||||||
if (element instanceof IRule) {
|
if (element instanceof IRule) {
|
||||||
|
@ -233,6 +235,7 @@ public class MakefileContentOutlinePage extends ContentOutlinePage implements IC
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.ui.part.IPage#createControl(org.eclipse.swt.widgets.Composite)
|
* @see org.eclipse.ui.part.IPage#createControl(org.eclipse.swt.widgets.Composite)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void createControl(Composite parent) {
|
public void createControl(Composite parent) {
|
||||||
super.createControl(parent);
|
super.createControl(parent);
|
||||||
TreeViewer viewer = getTreeViewer();
|
TreeViewer viewer = getTreeViewer();
|
||||||
|
@ -322,6 +325,7 @@ public class MakefileContentOutlinePage extends ContentOutlinePage implements IC
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.ui.part.IPage#setActionBars(org.eclipse.ui.IActionBars)
|
* @see org.eclipse.ui.part.IPage#setActionBars(org.eclipse.ui.IActionBars)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void setActionBars(IActionBars actionBars) {
|
public void setActionBars(IActionBars actionBars) {
|
||||||
super.setActionBars(actionBars);
|
super.setActionBars(actionBars);
|
||||||
IToolBarManager toolBarManager= actionBars.getToolBarManager();
|
IToolBarManager toolBarManager= actionBars.getToolBarManager();
|
||||||
|
|
|
@ -52,6 +52,7 @@ public class MakefileEditorActionContributor extends BasicTextEditorActionContri
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.ui.IEditorActionBarContributor#setActiveEditor(IEditorPart)
|
* @see org.eclipse.ui.IEditorActionBarContributor#setActiveEditor(IEditorPart)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void setActiveEditor(IEditorPart targetEditor) {
|
public void setActiveEditor(IEditorPart targetEditor) {
|
||||||
super.setActiveEditor(targetEditor);
|
super.setActiveEditor(targetEditor);
|
||||||
doSetActiveEditor(targetEditor);
|
doSetActiveEditor(targetEditor);
|
||||||
|
@ -78,6 +79,7 @@ public class MakefileEditorActionContributor extends BasicTextEditorActionContri
|
||||||
/*
|
/*
|
||||||
* @see IEditorActionBarContributor#dispose()
|
* @see IEditorActionBarContributor#dispose()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void dispose() {
|
public void dispose() {
|
||||||
doSetActiveEditor(null);
|
doSetActiveEditor(null);
|
||||||
super.dispose();
|
super.dispose();
|
||||||
|
@ -86,6 +88,7 @@ public class MakefileEditorActionContributor extends BasicTextEditorActionContri
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.ui.part.EditorActionBarContributor#init(IActionBars)
|
* @see org.eclipse.ui.part.EditorActionBarContributor#init(IActionBars)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void init(IActionBars bars) {
|
public void init(IActionBars bars) {
|
||||||
super.init(bars);
|
super.init(bars);
|
||||||
IMenuManager menuManager = bars.getMenuManager();
|
IMenuManager menuManager = bars.getMenuManager();
|
||||||
|
|
|
@ -31,6 +31,7 @@ public class MakefileEditorTogglePresentationAction extends TextEditorAction {
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.jface.action.IAction#run()
|
* @see org.eclipse.jface.action.IAction#run()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
ITextEditor editor= getTextEditor();
|
ITextEditor editor= getTextEditor();
|
||||||
editor.resetHighlightRange();
|
editor.resetHighlightRange();
|
||||||
|
@ -42,6 +43,7 @@ public class MakefileEditorTogglePresentationAction extends TextEditorAction {
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.ui.texteditor.IUpdate#update()
|
* @see org.eclipse.ui.texteditor.IUpdate#update()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void update() {
|
public void update() {
|
||||||
setChecked(getTextEditor() != null && getTextEditor().showsHighlightRangeOnly());
|
setChecked(getTextEditor() != null && getTextEditor().showsHighlightRangeOnly());
|
||||||
setEnabled(true);
|
setEnabled(true);
|
||||||
|
|
|
@ -27,6 +27,7 @@ public class MakefileStorageDocumentProvider extends StorageDocumentProvider {
|
||||||
* @see org.eclipse.ui.editors.text.StorageDocumentProvider#setupDocument(java.lang.Object,
|
* @see org.eclipse.ui.editors.text.StorageDocumentProvider#setupDocument(java.lang.Object,
|
||||||
* org.eclipse.jface.text.IDocument)
|
* org.eclipse.jface.text.IDocument)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
protected void setupDocument(Object element, IDocument document) {
|
protected void setupDocument(Object element, IDocument document) {
|
||||||
if (document != null) {
|
if (document != null) {
|
||||||
IDocumentPartitioner partitioner= createDocumentPartitioner();
|
IDocumentPartitioner partitioner= createDocumentPartitioner();
|
||||||
|
|
|
@ -37,6 +37,7 @@ public class OpenDeclarationAction extends TextEditorAction {
|
||||||
*
|
*
|
||||||
* @see org.eclipse.jface.action.IAction#run()
|
* @see org.eclipse.jface.action.IAction#run()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
ITextEditor editor = getTextEditor();
|
ITextEditor editor = getTextEditor();
|
||||||
if (editor == null) {
|
if (editor == null) {
|
||||||
|
|
|
@ -59,6 +59,7 @@ public abstract class SharedPartWithButtons extends SharedPart {
|
||||||
/*
|
/*
|
||||||
* @see SharedPart#createControl(Composite, FormWidgetFactory)
|
* @see SharedPart#createControl(Composite, FormWidgetFactory)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void createControl(Composite parent, int style, int span) {
|
public void createControl(Composite parent, int style, int span) {
|
||||||
createMainLabel(parent, span);
|
createMainLabel(parent, span);
|
||||||
createMainControl(parent, style, span - 1);
|
createMainControl(parent, style, span - 1);
|
||||||
|
@ -98,6 +99,7 @@ public abstract class SharedPartWithButtons extends SharedPart {
|
||||||
return button;
|
return button;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void updateEnabledState() {
|
protected void updateEnabledState() {
|
||||||
for (int i = 0; i < controls.length; i++) {
|
for (int i = 0; i < controls.length; i++) {
|
||||||
Control c = controls[i];
|
Control c = controls[i];
|
||||||
|
|
|
@ -38,6 +38,7 @@ public abstract class StructuredViewerPart extends SharedPartWithButtons {
|
||||||
/*
|
/*
|
||||||
* @see SharedPartWithButtons#createMainControl(Composite, int, FormWidgetFactory)
|
* @see SharedPartWithButtons#createMainControl(Composite, int, FormWidgetFactory)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
protected void createMainControl(Composite parent, int style, int span) {
|
protected void createMainControl(Composite parent, int style, int span) {
|
||||||
viewer = createStructuredViewer(parent, style);
|
viewer = createStructuredViewer(parent, style);
|
||||||
Control control = viewer.getControl();
|
Control control = viewer.getControl();
|
||||||
|
@ -60,6 +61,7 @@ public abstract class StructuredViewerPart extends SharedPartWithButtons {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void updateEnabledState() {
|
protected void updateEnabledState() {
|
||||||
getControl().setEnabled(isEnabled());
|
getControl().setEnabled(isEnabled());
|
||||||
super.updateEnabledState();
|
super.updateEnabledState();
|
||||||
|
|
|
@ -59,6 +59,7 @@ public class WizardCheckboxTablePart extends CheckboxTablePart {
|
||||||
this.deselectAllIndex = index;
|
this.deselectAllIndex = index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void buttonSelected(Button button, int index) {
|
protected void buttonSelected(Button button, int index) {
|
||||||
if (index == selectAllIndex) {
|
if (index == selectAllIndex) {
|
||||||
handleSelectAll(true);
|
handleSelectAll(true);
|
||||||
|
@ -88,16 +89,19 @@ public class WizardCheckboxTablePart extends CheckboxTablePart {
|
||||||
updateCounter(0);
|
updateCounter(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected Button createButton(Composite parent, String label, int index) {
|
protected Button createButton(Composite parent, String label, int index) {
|
||||||
Button button = super.createButton(parent, label, index);
|
Button button = super.createButton(parent, label, index);
|
||||||
return button;
|
return button;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected StructuredViewer createStructuredViewer(Composite parent, int style) {
|
protected StructuredViewer createStructuredViewer(Composite parent, int style) {
|
||||||
StructuredViewer viewer = super.createStructuredViewer(parent, style);
|
StructuredViewer viewer = super.createStructuredViewer(parent, style);
|
||||||
return viewer;
|
return viewer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void createMainLabel(Composite parent, int span) {
|
protected void createMainLabel(Composite parent, int span) {
|
||||||
if (tableName == null)
|
if (tableName == null)
|
||||||
return;
|
return;
|
||||||
|
@ -144,6 +148,7 @@ public class WizardCheckboxTablePart extends CheckboxTablePart {
|
||||||
}
|
}
|
||||||
updateCounter(selected);
|
updateCounter(selected);
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
protected void elementChecked(Object element, boolean checked) {
|
protected void elementChecked(Object element, boolean checked) {
|
||||||
int count = getSelectionCount();
|
int count = getSelectionCount();
|
||||||
updateCounter(checked ? count + 1 : count - 1);
|
updateCounter(checked ? count + 1 : count - 1);
|
||||||
|
|
|
@ -20,6 +20,7 @@ import org.eclipse.swt.widgets.Layout;
|
||||||
|
|
||||||
public class TabFolderLayout extends Layout {
|
public class TabFolderLayout extends Layout {
|
||||||
|
|
||||||
|
@Override
|
||||||
protected Point computeSize (Composite composite, int wHint, int hHint, boolean flushCache) {
|
protected Point computeSize (Composite composite, int wHint, int hHint, boolean flushCache) {
|
||||||
if (wHint != SWT.DEFAULT && hHint != SWT.DEFAULT)
|
if (wHint != SWT.DEFAULT && hHint != SWT.DEFAULT)
|
||||||
return new Point(wHint, hHint);
|
return new Point(wHint, hHint);
|
||||||
|
@ -43,6 +44,7 @@ public class TabFolderLayout extends Layout {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void layout (Composite composite, boolean flushCache) {
|
protected void layout (Composite composite, boolean flushCache) {
|
||||||
Rectangle rect= composite.getClientArea();
|
Rectangle rect= composite.getClientArea();
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ import org.eclipse.cdt.ui.newui.AbstractPage;
|
||||||
|
|
||||||
public class PathAndSymbolPage extends AbstractPage {
|
public class PathAndSymbolPage extends AbstractPage {
|
||||||
|
|
||||||
|
@Override
|
||||||
protected boolean isSingle() {
|
protected boolean isSingle() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,6 +85,7 @@ public class WordPartDetector {
|
||||||
/**
|
/**
|
||||||
* @return String
|
* @return String
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return wordPart;
|
return wordPart;
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,7 @@ public abstract class StatusWizardPage extends WizardPage {
|
||||||
/*
|
/*
|
||||||
* @see WizardPage#becomesVisible
|
* @see WizardPage#becomesVisible
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void setVisible(boolean visible) {
|
public void setVisible(boolean visible) {
|
||||||
super.setVisible(visible);
|
super.setVisible(visible);
|
||||||
fPageVisible= visible;
|
fPageVisible= visible;
|
||||||
|
|
|
@ -27,6 +27,7 @@ public class TestPathConverter4 extends TestPathConverter1 {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.tests.TestPathConverter1#convertToPlatformLocation(java.lang.String)
|
* @see org.eclipse.cdt.managedbuilder.core.tests.TestPathConverter1#convertToPlatformLocation(java.lang.String)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public IPath convertToPlatformLocation(String toolSpecificPath, IOption option, ITool tool) {
|
public IPath convertToPlatformLocation(String toolSpecificPath, IOption option, ITool tool) {
|
||||||
String convertedString = toolSpecificPath.substring("file://".length());
|
String convertedString = toolSpecificPath.substring("file://".length());
|
||||||
IPath path = new Path(convertedString);
|
IPath path = new Path(convertedString);
|
||||||
|
|
|
@ -23,6 +23,7 @@ public class TestValueHandler extends ManagedOptionValueHandler implements
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IManagedOptionValueHandler#handleValue(IConfiguration,IToolChain,IOption,String,int)
|
* @see org.eclipse.cdt.managedbuilder.core.IManagedOptionValueHandler#handleValue(IConfiguration,IToolChain,IOption,String,int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean handleValue(IBuildObject configuration,
|
public boolean handleValue(IBuildObject configuration,
|
||||||
IHoldsOptions holder,
|
IHoldsOptions holder,
|
||||||
IOption option,
|
IOption option,
|
||||||
|
|
|
@ -44,11 +44,13 @@ public class TestProcesses extends TestCase {
|
||||||
|
|
||||||
String projectName;
|
String projectName;
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void setUp() throws Exception {
|
protected void setUp() throws Exception {
|
||||||
TemplateEngineTestsHelper.turnOffAutoBuild();
|
TemplateEngineTestsHelper.turnOffAutoBuild();
|
||||||
projectName= "TemplateEngineTestsProject"+System.currentTimeMillis();
|
projectName= "TemplateEngineTestsProject"+System.currentTimeMillis();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void tearDown() throws Exception {
|
protected void tearDown() throws Exception {
|
||||||
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
|
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
|
||||||
project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
|
project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
|
||||||
|
|
|
@ -76,10 +76,12 @@ public class BackwardCompatiblityTests extends TestCase {
|
||||||
return ManagedBuildTestHelper.loadProject(name, TEST_3X_STD_MAKE_PROJECTS);
|
return ManagedBuildTestHelper.loadProject(name, TEST_3X_STD_MAKE_PROJECTS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void setUp() throws Exception {
|
protected void setUp() throws Exception {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void tearDown() throws Exception {
|
protected void tearDown() throws Exception {
|
||||||
for(Iterator iter = projList.iterator(); iter.hasNext();){
|
for(Iterator iter = projList.iterator(); iter.hasNext();){
|
||||||
IProject proj = (IProject)iter.next();
|
IProject proj = (IProject)iter.next();
|
||||||
|
|
|
@ -52,9 +52,11 @@ public class OptionStringListValueTests extends TestCase {
|
||||||
return new TestSuite(OptionStringListValueTests.class);
|
return new TestSuite(OptionStringListValueTests.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void setUp() throws Exception {
|
protected void setUp() throws Exception {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void tearDown() throws Exception {
|
protected void tearDown() throws Exception {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -183,6 +183,7 @@ public final class CfgInfoContext{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if(this == obj)
|
if(this == obj)
|
||||||
return true;
|
return true;
|
||||||
|
@ -206,6 +207,7 @@ public final class CfgInfoContext{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int code = getCode(fCfg);
|
int code = getCode(fCfg);
|
||||||
code += getCode(fRcInfo);
|
code += getCode(fRcInfo);
|
||||||
|
|
|
@ -236,6 +236,7 @@ public class PerFileSettingsCalculator {
|
||||||
return fMaxMatchInfo;
|
return fMaxMatchInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if(obj == this)
|
if(obj == this)
|
||||||
return true;
|
return true;
|
||||||
|
@ -259,6 +260,7 @@ public class PerFileSettingsCalculator {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int hash = fHash;
|
int hash = fHash;
|
||||||
if(hash == 0){
|
if(hash == 0){
|
||||||
|
@ -287,6 +289,7 @@ public class PerFileSettingsCalculator {
|
||||||
fExts = exts == null || exts.length == 0 ? EMPTY_STRING_ARRAY : (String[])exts.clone();
|
fExts = exts == null || exts.length == 0 ? EMPTY_STRING_ARRAY : (String[])exts.clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if(this == obj)
|
if(this == obj)
|
||||||
return true;
|
return true;
|
||||||
|
@ -311,6 +314,7 @@ public class PerFileSettingsCalculator {
|
||||||
return (String[])fExts.clone();
|
return (String[])fExts.clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int hash = fHash;
|
int hash = fHash;
|
||||||
if(hash == 0){
|
if(hash == 0){
|
||||||
|
@ -329,6 +333,7 @@ public class PerFileSettingsCalculator {
|
||||||
return fExtsSet;
|
return fExtsSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
if(fExts.length == 0)
|
if(fExts.length == 0)
|
||||||
return "<empty>"; //$NON-NLS-1$
|
return "<empty>"; //$NON-NLS-1$
|
||||||
|
|
|
@ -49,6 +49,7 @@ public class CfgSCJobsUtil {
|
||||||
this.rc = rc;
|
this.rc = rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return rc ? "true" : "false"; //$NON-NLS-1$ //$NON-NLS-2$
|
return rc ? "true" : "false"; //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
}
|
}
|
||||||
|
|
|
@ -156,6 +156,7 @@ public final class OptionStringValue {
|
||||||
return srcPrefixMapping;
|
return srcPrefixMapping;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if(obj == this)
|
if(obj == this)
|
||||||
return true;
|
return true;
|
||||||
|
@ -183,6 +184,7 @@ public final class OptionStringValue {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return code(value);
|
return code(value);
|
||||||
}
|
}
|
||||||
|
@ -191,6 +193,7 @@ public final class OptionStringValue {
|
||||||
return str != null ? str.hashCode() : 0;
|
return str != null ? str.hashCode() : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new StringBuffer().append("ov:").append(value.toString()).toString(); //$NON-NLS-1$
|
return new StringBuffer().append("ov:").append(value.toString()).toString(); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,6 +82,7 @@ class ResourceChangeHandler2 extends ResourceChangeHandlerBase{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected IResourceMoveHandler createResourceMoveHandler(
|
protected IResourceMoveHandler createResourceMoveHandler(
|
||||||
IResourceChangeEvent event) {
|
IResourceChangeEvent event) {
|
||||||
return new RcMoveHandler();
|
return new RcMoveHandler();
|
||||||
|
@ -166,6 +167,7 @@ class ResourceChangeHandler2 extends ResourceChangeHandlerBase{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void resourceChanged(IResourceChangeEvent event) {
|
public void resourceChanged(IResourceChangeEvent event) {
|
||||||
super.resourceChanged(event);
|
super.resourceChanged(event);
|
||||||
|
|
||||||
|
@ -193,6 +195,7 @@ class ResourceChangeHandler2 extends ResourceChangeHandlerBase{
|
||||||
|
|
||||||
Job job = new Job(ManagedMakeMessages.getString("ResourceChangeHandler2.0")){ //$NON-NLS-1$
|
Job job = new Job(ManagedMakeMessages.getString("ResourceChangeHandler2.0")){ //$NON-NLS-1$
|
||||||
|
|
||||||
|
@Override
|
||||||
protected IStatus run(IProgressMonitor monitor) {
|
protected IStatus run(IProgressMonitor monitor) {
|
||||||
for(Iterator iter = projSet.iterator(); iter.hasNext();){
|
for(Iterator iter = projSet.iterator(); iter.hasNext();){
|
||||||
IProject project = (IProject)iter.next();
|
IProject project = (IProject)iter.next();
|
||||||
|
|
|
@ -63,6 +63,7 @@ public class BuildStateManager {
|
||||||
|
|
||||||
private class EventListener extends ResourceChangeHandlerBase implements ICProjectDescriptionListener {
|
private class EventListener extends ResourceChangeHandlerBase implements ICProjectDescriptionListener {
|
||||||
|
|
||||||
|
@Override
|
||||||
public void resourceChanged(IResourceChangeEvent event) {
|
public void resourceChanged(IResourceChangeEvent event) {
|
||||||
super.resourceChanged(event);
|
super.resourceChanged(event);
|
||||||
//TODO: may handle resource changes as well
|
//TODO: may handle resource changes as well
|
||||||
|
@ -113,6 +114,7 @@ public class BuildStateManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected IResourceMoveHandler createResourceMoveHandler(
|
protected IResourceMoveHandler createResourceMoveHandler(
|
||||||
IResourceChangeEvent event) {
|
IResourceChangeEvent event) {
|
||||||
return new ResourceMoveHandler();
|
return new ResourceMoveHandler();
|
||||||
|
|
|
@ -81,6 +81,7 @@ public class CommandBuilder implements IBuildModelBuilder {
|
||||||
*/
|
*/
|
||||||
private class CommandSearchLauncher extends CommandLauncher{
|
private class CommandSearchLauncher extends CommandLauncher{
|
||||||
|
|
||||||
|
@Override
|
||||||
protected String[] constructCommandArray(String command, String[] commandArgs) {
|
protected String[] constructCommandArray(String command, String[] commandArgs) {
|
||||||
String[] args = new String[1 + commandArgs.length];
|
String[] args = new String[1 + commandArgs.length];
|
||||||
if(!isWindows()){
|
if(!isWindows()){
|
||||||
|
@ -97,6 +98,7 @@ public class CommandBuilder implements IBuildModelBuilder {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void printCommandLine(OutputStream os) {
|
protected void printCommandLine(OutputStream os) {
|
||||||
if (os != null) {
|
if (os != null) {
|
||||||
String cmd = CommandBuilder.this.getCommandLine();
|
String cmd = CommandBuilder.this.getCommandLine();
|
||||||
|
@ -117,22 +119,27 @@ public class CommandBuilder implements IBuildModelBuilder {
|
||||||
fOut = out;
|
fOut = out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void write(int b) throws IOException {
|
public void write(int b) throws IOException {
|
||||||
fOut.write(b);
|
fOut.write(b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void write(byte b[]) throws IOException {
|
public void write(byte b[]) throws IOException {
|
||||||
fOut.write(b);
|
fOut.write(b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void write(byte b[], int off, int len) throws IOException {
|
public void write(byte b[], int off, int len) throws IOException {
|
||||||
fOut.write(b, off, len);
|
fOut.write(b, off, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void flush() throws IOException {
|
public void flush() throws IOException {
|
||||||
fOut.flush();
|
fOut.flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void close() throws IOException {
|
public void close() throws IOException {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@ public class FileMacroExplicitSubstitutor extends SupplierBasedCdtVariableSubsti
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.internal.macros.DefaultMacroSubstitutor#resolveMacro(org.eclipse.cdt.managedbuilder.macros.IBuildMacro)
|
* @see org.eclipse.cdt.managedbuilder.internal.macros.DefaultMacroSubstitutor#resolveMacro(org.eclipse.cdt.managedbuilder.macros.IBuildMacro)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
protected ResolvedMacro resolveMacro(ICdtVariable macro) throws CdtVariableException{
|
protected ResolvedMacro resolveMacro(ICdtVariable macro) throws CdtVariableException{
|
||||||
if(macro instanceof MbsMacroSupplier.FileContextMacro){
|
if(macro instanceof MbsMacroSupplier.FileContextMacro){
|
||||||
MbsMacroSupplier.FileContextMacro fileMacro = (MbsMacroSupplier.FileContextMacro)macro;
|
MbsMacroSupplier.FileContextMacro fileMacro = (MbsMacroSupplier.FileContextMacro)macro;
|
||||||
|
|
|
@ -86,6 +86,7 @@ public class ParallelBuilder {
|
||||||
level = _level;
|
level = _level;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return step.hashCode();
|
return step.hashCode();
|
||||||
}
|
}
|
||||||
|
@ -115,6 +116,7 @@ public class ParallelBuilder {
|
||||||
} else { return false; }
|
} else { return false; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return"[BuildQueueElement] " + DbgUtil.stepName(step) + " @ " + level; //$NON-NLS-1$ //$NON-NLS-2$
|
return"[BuildQueueElement] " + DbgUtil.stepName(step) + " @ " + level; //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,6 +96,7 @@ public class BuildProperties implements IBuildProperties {
|
||||||
fPropertiesMap.remove(property.getPropertyType().getId());
|
fPropertiesMap.remove(property.getPropertyType().getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString(){
|
public String toString(){
|
||||||
String props = toStringExistingProperties();
|
String props = toStringExistingProperties();
|
||||||
if(fInexistentProperties != null){
|
if(fInexistentProperties != null){
|
||||||
|
@ -127,6 +128,7 @@ public class BuildProperties implements IBuildProperties {
|
||||||
return buf.toString();
|
return buf.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Object clone() {
|
public Object clone() {
|
||||||
try {
|
try {
|
||||||
BuildProperties clone = (BuildProperties)super.clone();
|
BuildProperties clone = (BuildProperties)super.clone();
|
||||||
|
|
|
@ -29,10 +29,12 @@ public abstract class PropertyBase {
|
||||||
return fName;
|
return fName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString(){
|
public String toString(){
|
||||||
return getId();
|
return getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean equals(Object o){
|
public boolean equals(Object o){
|
||||||
if(!o.getClass().equals(getClass()))
|
if(!o.getClass().equals(getClass()))
|
||||||
return false;
|
return false;
|
||||||
|
@ -40,6 +42,7 @@ public abstract class PropertyBase {
|
||||||
return fId.equals(((PropertyBase)o).getId());
|
return fId.equals(((PropertyBase)o).getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int hashCode(){
|
public int hashCode(){
|
||||||
return fId.hashCode();
|
return fId.hashCode();
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,6 +55,7 @@ public class BuildObject implements IBuildObject {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see java.lang.Object#toString()
|
* @see java.lang.Object#toString()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,11 +105,13 @@ public class BuildObjectProperties extends BuildProperties implements
|
||||||
// return false;
|
// return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void clear() {
|
public void clear() {
|
||||||
super.clear();
|
super.clear();
|
||||||
fListener.propertiesChanged();
|
fListener.propertiesChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IBuildProperty removeProperty(String id) {
|
public IBuildProperty removeProperty(String id) {
|
||||||
IBuildProperty property = super.removeProperty(id);
|
IBuildProperty property = super.removeProperty(id);
|
||||||
if(property != null)
|
if(property != null)
|
||||||
|
@ -121,6 +123,7 @@ public class BuildObjectProperties extends BuildProperties implements
|
||||||
return super.setProperty(propertyId, propertyValue);
|
return super.setProperty(propertyId, propertyValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IBuildProperty setProperty(String propertyId, String propertyValue)
|
public IBuildProperty setProperty(String propertyId, String propertyValue)
|
||||||
throws CoreException {
|
throws CoreException {
|
||||||
// if(!supportsType(propertyId))
|
// if(!supportsType(propertyId))
|
||||||
|
|
|
@ -960,6 +960,7 @@ public class Builder extends BuildObject implements IBuilder, IMatchKeyProvider,
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.core.build.managed.IBuilder#getName()
|
* @see org.eclipse.cdt.core.build.managed.IBuilder#getName()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return (name == null && superClass != null) ? superClass.getName() : name;
|
return (name == null && superClass != null) ? superClass.getName() : name;
|
||||||
}
|
}
|
||||||
|
@ -2409,6 +2410,7 @@ public class Builder extends BuildObject implements IBuilder, IMatchKeyProvider,
|
||||||
this.builder = builder;
|
this.builder = builder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if(obj == this)
|
if(obj == this)
|
||||||
return true;
|
return true;
|
||||||
|
@ -2418,6 +2420,7 @@ public class Builder extends BuildObject implements IBuilder, IMatchKeyProvider,
|
||||||
return builder.performMatchComparison(other.builder);
|
return builder.performMatchComparison(other.builder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
String name = getName();
|
String name = getName();
|
||||||
if(name == null)
|
if(name == null)
|
||||||
|
@ -2719,6 +2722,7 @@ public class Builder extends BuildObject implements IBuilder, IMatchKeyProvider,
|
||||||
public boolean isExtensionBuildObject() {
|
public boolean isExtensionBuildObject() {
|
||||||
return isExtensionElement();
|
return isExtensionElement();
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return getUniqueRealName();
|
return getUniqueRealName();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1171,6 +1171,7 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getName()
|
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getName()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return (name == null && parent != null) ? parent.getName() : name;
|
return (name == null && parent != null) ? parent.getName() : name;
|
||||||
}
|
}
|
||||||
|
@ -1847,6 +1848,7 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
/**
|
/**
|
||||||
* @return Returns the version.
|
* @return Returns the version.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public Version getVersion() {
|
public Version getVersion() {
|
||||||
if ( version == null) {
|
if ( version == null) {
|
||||||
if ( rootFolderInfo.getToolChain() != null) {
|
if ( rootFolderInfo.getToolChain() != null) {
|
||||||
|
@ -1856,6 +1858,7 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setVersion(Version version) {
|
public void setVersion(Version version) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
}
|
}
|
||||||
|
@ -1881,6 +1884,7 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.internal.core.BuildObject#updateManagedBuildRevision(java.lang.String)
|
* @see org.eclipse.cdt.managedbuilder.internal.core.BuildObject#updateManagedBuildRevision(java.lang.String)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void updateManagedBuildRevision(String revision){
|
public void updateManagedBuildRevision(String revision){
|
||||||
super.updateManagedBuildRevision(revision);
|
super.updateManagedBuildRevision(revision);
|
||||||
|
|
||||||
|
|
|
@ -358,6 +358,7 @@ public class ConfigurationV2 extends BuildObject implements IConfigurationV2 {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfigurationV2#getName()
|
* @see org.eclipse.cdt.core.build.managed.IConfigurationV2#getName()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return (name == null && parent != null) ? parent.getName() : name;
|
return (name == null && parent != null) ? parent.getName() : name;
|
||||||
}
|
}
|
||||||
|
|
|
@ -457,6 +457,7 @@ public class OptionCategory extends BuildObject implements IOptionCategory {
|
||||||
/**
|
/**
|
||||||
* @return Returns the managedBuildRevision.
|
* @return Returns the managedBuildRevision.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String getManagedBuildRevision() {
|
public String getManagedBuildRevision() {
|
||||||
if ( managedBuildRevision == null) {
|
if ( managedBuildRevision == null) {
|
||||||
if ( getOptionHolder() != null) {
|
if ( getOptionHolder() != null) {
|
||||||
|
@ -469,6 +470,7 @@ public class OptionCategory extends BuildObject implements IOptionCategory {
|
||||||
/**
|
/**
|
||||||
* @return Returns the version.
|
* @return Returns the version.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public Version getVersion() {
|
public Version getVersion() {
|
||||||
if ( version == null) {
|
if ( version == null) {
|
||||||
if ( getOptionHolder() != null) {
|
if ( getOptionHolder() != null) {
|
||||||
|
@ -478,6 +480,7 @@ public class OptionCategory extends BuildObject implements IOptionCategory {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setVersion(Version version) {
|
public void setVersion(Version version) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
}
|
}
|
||||||
|
|
|
@ -446,6 +446,7 @@ public class OutputType extends BuildObject implements IOutputType {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.core.build.managed.IOutputType#getName()
|
* @see org.eclipse.cdt.core.build.managed.IOutputType#getName()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return (name == null && superClass != null) ? superClass.getName() : name;
|
return (name == null && superClass != null) ? superClass.getName() : name;
|
||||||
}
|
}
|
||||||
|
@ -863,6 +864,7 @@ public class OutputType extends BuildObject implements IOutputType {
|
||||||
/**
|
/**
|
||||||
* @return Returns the managedBuildRevision.
|
* @return Returns the managedBuildRevision.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String getManagedBuildRevision() {
|
public String getManagedBuildRevision() {
|
||||||
if ( managedBuildRevision == null) {
|
if ( managedBuildRevision == null) {
|
||||||
if ( getParent() != null) {
|
if ( getParent() != null) {
|
||||||
|
@ -875,6 +877,7 @@ public class OutputType extends BuildObject implements IOutputType {
|
||||||
/**
|
/**
|
||||||
* @return Returns the version.
|
* @return Returns the version.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public Version getVersion() {
|
public Version getVersion() {
|
||||||
if ( version == null) {
|
if ( version == null) {
|
||||||
if ( getParent() != null) {
|
if ( getParent() != null) {
|
||||||
|
@ -884,6 +887,7 @@ public class OutputType extends BuildObject implements IOutputType {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setVersion(Version version) {
|
public void setVersion(Version version) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
}
|
}
|
||||||
|
|
|
@ -311,6 +311,7 @@ public class ProjectType extends BuildObject implements IProjectType, IBuildProp
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IBuildObject#getName()
|
* @see org.eclipse.cdt.managedbuilder.core.IBuildObject#getName()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
String name = getNameAttribute();
|
String name = getNameAttribute();
|
||||||
if(name.length() == 0){
|
if(name.length() == 0){
|
||||||
|
|
|
@ -404,6 +404,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
||||||
* @param doc
|
* @param doc
|
||||||
* @param element
|
* @param element
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void serialize(ICStorageElement element) {
|
public void serialize(ICStorageElement element) {
|
||||||
super.serialize(element);
|
super.serialize(element);
|
||||||
if (toolsToInvoke != null) {
|
if (toolsToInvoke != null) {
|
||||||
|
@ -729,6 +730,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IResourceConfiguration#isDirty()
|
* @see org.eclipse.cdt.managedbuilder.core.IResourceConfiguration#isDirty()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean isDirty() {
|
public boolean isDirty() {
|
||||||
// This shouldn't be called for an extension tool-chain
|
// This shouldn't be called for an extension tool-chain
|
||||||
if (isExtensionResourceConfig) return false;
|
if (isExtensionResourceConfig) return false;
|
||||||
|
@ -750,6 +752,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IResourceConfiguration#setDirty(boolean)
|
* @see org.eclipse.cdt.managedbuilder.core.IResourceConfiguration#setDirty(boolean)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void setDirty(boolean isDirty) {
|
public void setDirty(boolean isDirty) {
|
||||||
if (isExtensionResourceConfig) return;
|
if (isExtensionResourceConfig) return;
|
||||||
|
|
||||||
|
@ -768,6 +771,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* Resolve the element IDs to interface references
|
* Resolve the element IDs to interface references
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void resolveReferences() {
|
public void resolveReferences() {
|
||||||
if (!resolved) {
|
if (!resolved) {
|
||||||
resolved = true;
|
resolved = true;
|
||||||
|
@ -829,6 +833,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
||||||
/**
|
/**
|
||||||
* @return Returns the version.
|
* @return Returns the version.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public Version getVersion() {
|
public Version getVersion() {
|
||||||
if ( version == null) {
|
if ( version == null) {
|
||||||
if ( getParent() != null) {
|
if ( getParent() != null) {
|
||||||
|
@ -838,6 +843,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setVersion(Version version) {
|
public void setVersion(Version version) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
}
|
}
|
||||||
|
@ -845,6 +851,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.internal.core.BuildObject#updateManagedBuildRevision(java.lang.String)
|
* @see org.eclipse.cdt.managedbuilder.internal.core.BuildObject#updateManagedBuildRevision(java.lang.String)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void updateManagedBuildRevision(String revision){
|
public void updateManagedBuildRevision(String revision){
|
||||||
super.updateManagedBuildRevision(revision);
|
super.updateManagedBuildRevision(revision);
|
||||||
|
|
||||||
|
@ -856,6 +863,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IResourceConfiguration#needsRebuild()
|
* @see org.eclipse.cdt.managedbuilder.core.IResourceConfiguration#needsRebuild()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean needsRebuild() {
|
public boolean needsRebuild() {
|
||||||
if(super.needsRebuild())
|
if(super.needsRebuild())
|
||||||
return true;
|
return true;
|
||||||
|
@ -872,6 +880,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IResourceConfiguration#setRebuildState(boolean)
|
* @see org.eclipse.cdt.managedbuilder.core.IResourceConfiguration#setRebuildState(boolean)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void setRebuildState(boolean rebuild) {
|
public void setRebuildState(boolean rebuild) {
|
||||||
if(isExtensionResourceConfiguration() && rebuild)
|
if(isExtensionResourceConfiguration() && rebuild)
|
||||||
return;
|
return;
|
||||||
|
@ -941,6 +950,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
||||||
return baseTc;
|
return baseTc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isExtensionElement() {
|
public boolean isExtensionElement() {
|
||||||
return isExtensionResourceConfig;
|
return isExtensionResourceConfig;
|
||||||
}
|
}
|
||||||
|
@ -955,18 +965,22 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Set contributeErrorParsers(Set set) {
|
public Set contributeErrorParsers(Set set) {
|
||||||
return contributeErrorParsers(getToolsToInvoke(), set);
|
return contributeErrorParsers(getToolsToInvoke(), set);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void resetErrorParsers() {
|
public void resetErrorParsers() {
|
||||||
resetErrorParsers(getToolsToInvoke());
|
resetErrorParsers(getToolsToInvoke());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
void removeErrorParsers(Set set) {
|
void removeErrorParsers(Set set) {
|
||||||
removeErrorParsers(getToolsToInvoke(), set);
|
removeErrorParsers(getToolsToInvoke(), set);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
void resolveProjectReferences(boolean onLoad){
|
void resolveProjectReferences(boolean onLoad){
|
||||||
for(Iterator iter = getToolList().iterator(); iter.hasNext();){
|
for(Iterator iter = getToolList().iterator(); iter.hasNext();){
|
||||||
Tool tool = (Tool)iter.next();
|
Tool tool = (Tool)iter.next();
|
||||||
|
@ -974,6 +988,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean hasCustomSettings() {
|
public boolean hasCustomSettings() {
|
||||||
IResourceInfo parentRc = getParentResourceInfo();
|
IResourceInfo parentRc = getParentResourceInfo();
|
||||||
if(parentRc instanceof FolderInfo){
|
if(parentRc instanceof FolderInfo){
|
||||||
|
@ -1011,10 +1026,12 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
||||||
info.apply();
|
info.apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isFolderInfo() {
|
public boolean isFolderInfo() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
void applyToolsInternal(ITool[] resultingTools,
|
void applyToolsInternal(ITool[] resultingTools,
|
||||||
ToolListModificationInfo info) {
|
ToolListModificationInfo info) {
|
||||||
List list = getToolList();
|
List list = getToolList();
|
||||||
|
|
|
@ -400,6 +400,7 @@ public class TargetPlatform extends BuildObject implements ITargetPlatform {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.core.build.managed.ITargetPlatform#getName()
|
* @see org.eclipse.cdt.core.build.managed.ITargetPlatform#getName()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return (name == null && superClass != null) ? superClass.getName() : name;
|
return (name == null && superClass != null) ? superClass.getName() : name;
|
||||||
}
|
}
|
||||||
|
@ -606,6 +607,7 @@ public class TargetPlatform extends BuildObject implements ITargetPlatform {
|
||||||
/**
|
/**
|
||||||
* @return Returns the version.
|
* @return Returns the version.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public Version getVersion() {
|
public Version getVersion() {
|
||||||
if ( version == null) {
|
if ( version == null) {
|
||||||
if ( getParent() != null) {
|
if ( getParent() != null) {
|
||||||
|
@ -615,6 +617,7 @@ public class TargetPlatform extends BuildObject implements ITargetPlatform {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setVersion(Version version) {
|
public void setVersion(Version version) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
}
|
}
|
||||||
|
|
|
@ -882,6 +882,7 @@ public class ToolReference implements IToolReference {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see java.lang.Object#toString()
|
* @see java.lang.Object#toString()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
String answer = new String();
|
String answer = new String();
|
||||||
if (parent != null) {
|
if (parent != null) {
|
||||||
|
|
|
@ -30,6 +30,7 @@ public class BuildBuildData extends CBuildData {
|
||||||
fCfg = (Configuration)fBuilder.getParent().getParent();
|
fCfg = (Configuration)fBuilder.getParent().getParent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IPath getBuilderCWD() {
|
public IPath getBuilderCWD() {
|
||||||
return new Path(fBuilder.getBuildPath());//ManagedBuildManager.getBuildLocation(fCfg, fBuilder);
|
return new Path(fBuilder.getBuildPath());//ManagedBuildManager.getBuildLocation(fCfg, fBuilder);
|
||||||
}
|
}
|
||||||
|
@ -40,34 +41,42 @@ public class BuildBuildData extends CBuildData {
|
||||||
return new Path(locationString);
|
return new Path(locationString);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String[] getErrorParserIDs() {
|
public String[] getErrorParserIDs() {
|
||||||
return fCfg.getErrorParserList();
|
return fCfg.getErrorParserList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public ICOutputEntry[] getOutputDirectories() {
|
public ICOutputEntry[] getOutputDirectories() {
|
||||||
return fBuilder.getOutputEntries();
|
return fBuilder.getOutputEntries();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setBuilderCWD(IPath path) {
|
public void setBuilderCWD(IPath path) {
|
||||||
fBuilder.setBuildPath(path.toString());
|
fBuilder.setBuildPath(path.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setErrorParserIDs(String[] ids) {
|
public void setErrorParserIDs(String[] ids) {
|
||||||
fCfg.setErrorParserList(ids);
|
fCfg.setErrorParserList(ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setOutputDirectories(ICOutputEntry[] entries) {
|
public void setOutputDirectories(ICOutputEntry[] entries) {
|
||||||
fBuilder.setOutputEntries(entries);
|
fBuilder.setOutputEntries(entries);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return fBuilder.getId();
|
return fBuilder.getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return fBuilder.getName();
|
return fBuilder.getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
return fBuilder != null;
|
return fBuilder != null;
|
||||||
}
|
}
|
||||||
|
@ -76,6 +85,7 @@ public class BuildBuildData extends CBuildData {
|
||||||
//TODO
|
//TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IEnvironmentContributor getBuildEnvironmentContributor() {
|
public IEnvironmentContributor getBuildEnvironmentContributor() {
|
||||||
// if(fEnvContibutor == null)
|
// if(fEnvContibutor == null)
|
||||||
// fEnvContibutor = new BuildEnvironmentContributor(this);
|
// fEnvContibutor = new BuildEnvironmentContributor(this);
|
||||||
|
|
|
@ -43,6 +43,7 @@ public class BuildConfigurationData extends CConfigurationData {
|
||||||
return fCfg;
|
return fCfg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public CFileData createFileData(IPath path, CFileData base)
|
public CFileData createFileData(IPath path, CFileData base)
|
||||||
throws CoreException {
|
throws CoreException {
|
||||||
String id = ManagedBuildManager.calculateChildId(fCfg.getId(),null);
|
String id = ManagedBuildManager.calculateChildId(fCfg.getId(),null);
|
||||||
|
@ -50,6 +51,7 @@ public class BuildConfigurationData extends CConfigurationData {
|
||||||
return info.getFileData();
|
return info.getFileData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public CFileData createFileData(IPath path, CFolderData base, CLanguageData baseLangData)
|
public CFileData createFileData(IPath path, CFolderData base, CLanguageData baseLangData)
|
||||||
throws CoreException {
|
throws CoreException {
|
||||||
String id = ManagedBuildManager.calculateChildId(fCfg.getId(),null);
|
String id = ManagedBuildManager.calculateChildId(fCfg.getId(),null);
|
||||||
|
@ -65,6 +67,7 @@ public class BuildConfigurationData extends CConfigurationData {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
public CFolderData createFolderData(IPath path, CFolderData base)
|
public CFolderData createFolderData(IPath path, CFolderData base)
|
||||||
throws CoreException {
|
throws CoreException {
|
||||||
String id = ManagedBuildManager.calculateChildId(fCfg.getId(),null);
|
String id = ManagedBuildManager.calculateChildId(fCfg.getId(),null);
|
||||||
|
@ -72,10 +75,12 @@ public class BuildConfigurationData extends CConfigurationData {
|
||||||
return folderInfo.getFolderData();
|
return folderInfo.getFolderData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getDescription() {
|
public String getDescription() {
|
||||||
return fCfg.getDescription();
|
return fCfg.getDescription();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public CResourceData[] getResourceDatas() {
|
public CResourceData[] getResourceDatas() {
|
||||||
IResourceInfo infos[] = fCfg.getResourceInfos();
|
IResourceInfo infos[] = fCfg.getResourceInfos();
|
||||||
CResourceData datas[] = new CResourceData[infos.length];
|
CResourceData datas[] = new CResourceData[infos.length];
|
||||||
|
@ -85,50 +90,62 @@ public class BuildConfigurationData extends CConfigurationData {
|
||||||
return datas;
|
return datas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public CFolderData getRootFolderData() {
|
public CFolderData getRootFolderData() {
|
||||||
return fCfg.getRootFolderInfo().getFolderData();
|
return fCfg.getRootFolderInfo().getFolderData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void removeResourceData(CResourceData data) throws CoreException {
|
public void removeResourceData(CResourceData data) throws CoreException {
|
||||||
fCfg.removeResourceInfo(data.getPath());
|
fCfg.removeResourceInfo(data.getPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setDescription(String description) {
|
public void setDescription(String description) {
|
||||||
fCfg.setDescription(description);
|
fCfg.setDescription(description);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return fCfg.getId();
|
return fCfg.getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return fCfg.getName();
|
return fCfg.getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setName(String name) {
|
public void setName(String name) {
|
||||||
fCfg.setName(name);
|
fCfg.setName(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
return fCfg != null;
|
return fCfg != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public CTargetPlatformData getTargetPlatformData() {
|
public CTargetPlatformData getTargetPlatformData() {
|
||||||
return fCfg.getToolChain().getTargetPlatformData();
|
return fCfg.getToolChain().getTargetPlatformData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public ICSourceEntry[] getSourceEntries() {
|
public ICSourceEntry[] getSourceEntries() {
|
||||||
return fCfg.getSourceEntries();
|
return fCfg.getSourceEntries();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setSourceEntries(ICSourceEntry[] entries) {
|
public void setSourceEntries(ICSourceEntry[] entries) {
|
||||||
fCfg.setSourceEntries(entries);
|
fCfg.setSourceEntries(entries);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public CBuildData getBuildData() {
|
public CBuildData getBuildData() {
|
||||||
return fCfg.getBuildData();
|
return fCfg.getBuildData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public ICdtVariablesContributor getBuildVariablesContributor() {
|
public ICdtVariablesContributor getBuildVariablesContributor() {
|
||||||
// if(fCdtVars == null)
|
// if(fCdtVars == null)
|
||||||
// fCdtVars = new BuildVariablesContributor(this);
|
// fCdtVars = new BuildVariablesContributor(this);
|
||||||
|
@ -154,6 +171,7 @@ public class BuildConfigurationData extends CConfigurationData {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public CConfigurationStatus getStatus() {
|
public CConfigurationStatus getStatus() {
|
||||||
int flags = 0;
|
int flags = 0;
|
||||||
String msg = null;
|
String msg = null;
|
||||||
|
|
|
@ -26,6 +26,7 @@ public class BuildFileData extends CFileData {
|
||||||
return fFileInfo;
|
return fFileInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IPath getPath() {
|
public IPath getPath() {
|
||||||
return fFileInfo.getPath();
|
return fFileInfo.getPath();
|
||||||
}
|
}
|
||||||
|
@ -38,14 +39,17 @@ public class BuildFileData extends CFileData {
|
||||||
// fFileInfo.setExclude(excluded);
|
// fFileInfo.setExclude(excluded);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setPath(IPath path) {
|
public void setPath(IPath path) {
|
||||||
fFileInfo.setPath(path);
|
fFileInfo.setPath(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return fFileInfo.getId();
|
return fFileInfo.getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return fFileInfo.getName();
|
return fFileInfo.getName();
|
||||||
}
|
}
|
||||||
|
@ -54,10 +58,12 @@ public class BuildFileData extends CFileData {
|
||||||
// fFileInfo.setN
|
// fFileInfo.setN
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
return fFileInfo.isValid();
|
return fFileInfo.isValid();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public CLanguageData getLanguageData() {
|
public CLanguageData getLanguageData() {
|
||||||
CLanguageData datas[] = fFileInfo.getCLanguageDatas();
|
CLanguageData datas[] = fFileInfo.getCLanguageDatas();
|
||||||
if(datas.length > 0)
|
if(datas.length > 0)
|
||||||
|
@ -65,6 +71,7 @@ public class BuildFileData extends CFileData {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean hasCustomSettings() {
|
public boolean hasCustomSettings() {
|
||||||
return fFileInfo.hasCustomSettings();
|
return fFileInfo.hasCustomSettings();
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,6 +96,7 @@ public class BuildLanguageData extends CLanguageData {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setEntries(int kind, ICLanguageSettingEntry entries[]) {
|
public void setEntries(int kind, ICLanguageSettingEntry entries[]) {
|
||||||
BuildEntryStorage storage = getEntryStorage(kind);
|
BuildEntryStorage storage = getEntryStorage(kind);
|
||||||
if(storage != null)
|
if(storage != null)
|
||||||
|
@ -145,10 +146,12 @@ public class BuildLanguageData extends CLanguageData {
|
||||||
|
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String getLanguageId() {
|
public String getLanguageId() {
|
||||||
return fInputType != null ? fInputType.getLanguageId(fTool) : null;
|
return fInputType != null ? fInputType.getLanguageId(fTool) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public ICLanguageSettingEntry[] getEntries(int kinds) {
|
public ICLanguageSettingEntry[] getEntries(int kinds) {
|
||||||
List<ICLanguageSettingEntry> list = new ArrayList<ICLanguageSettingEntry>();
|
List<ICLanguageSettingEntry> list = new ArrayList<ICLanguageSettingEntry>();
|
||||||
|
|
||||||
|
@ -185,6 +188,7 @@ public class BuildLanguageData extends CLanguageData {
|
||||||
fInputType = type;
|
fInputType = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String[] getSourceContentTypeIds() {
|
public String[] getSourceContentTypeIds() {
|
||||||
if(fInputType != null){
|
if(fInputType != null){
|
||||||
return fInputType.getSourceContentTypeIds();
|
return fInputType.getSourceContentTypeIds();
|
||||||
|
@ -192,6 +196,7 @@ public class BuildLanguageData extends CLanguageData {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String[] getSourceExtensions() {
|
public String[] getSourceExtensions() {
|
||||||
return fInputType != null ? fInputType.getSourceExtensions(fTool) : fTool.getPrimaryInputExtensions();
|
return fInputType != null ? fInputType.getSourceExtensions(fTool) : fTool.getPrimaryInputExtensions();
|
||||||
}
|
}
|
||||||
|
@ -306,6 +311,7 @@ public class BuildLanguageData extends CLanguageData {
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setLanguageId(String id) {
|
public void setLanguageId(String id) {
|
||||||
if(CDataUtil.objectsEqual(id, fInputType.getLanguageId(fTool))){
|
if(CDataUtil.objectsEqual(id, fInputType.getLanguageId(fTool))){
|
||||||
// fInputType = fTool.getEdtableInputType(fInputType);
|
// fInputType = fTool.getEdtableInputType(fInputType);
|
||||||
|
@ -314,10 +320,12 @@ public class BuildLanguageData extends CLanguageData {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return fId;
|
return fId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
String name;
|
String name;
|
||||||
if(fInputType == null){
|
if(fInputType == null){
|
||||||
|
@ -336,6 +344,7 @@ public class BuildLanguageData extends CLanguageData {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return true;
|
return true;
|
||||||
|
@ -377,6 +386,7 @@ public class BuildLanguageData extends CLanguageData {
|
||||||
return fTool.getParentResourceInfo().getParent();
|
return fTool.getParentResourceInfo().getParent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setSourceContentTypeIds(String[] ids) {
|
public void setSourceContentTypeIds(String[] ids) {
|
||||||
String[] headerIds = fInputType.getHeaderContentTypeIds();
|
String[] headerIds = fInputType.getHeaderContentTypeIds();
|
||||||
|
|
||||||
|
@ -413,6 +423,7 @@ public class BuildLanguageData extends CLanguageData {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setSourceExtensions(String[] exts) {
|
public void setSourceExtensions(String[] exts) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
|
@ -422,6 +433,7 @@ public class BuildLanguageData extends CLanguageData {
|
||||||
fKindToEntryStore.clear();
|
fKindToEntryStore.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean containsDiscoveredScannerInfo() {
|
public boolean containsDiscoveredScannerInfo() {
|
||||||
IResourceInfo rcInfo = fTool.getParentResourceInfo();
|
IResourceInfo rcInfo = fTool.getParentResourceInfo();
|
||||||
if(rcInfo instanceof FolderInfo){
|
if(rcInfo instanceof FolderInfo){
|
||||||
|
|
|
@ -45,6 +45,7 @@ public class BuildSystemSpecificVariableSubstitutor extends SupplierBasedCdtVari
|
||||||
super(contextInfo, inexistentMacroValue, listDelimiter);
|
super(contextInfo, inexistentMacroValue, listDelimiter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected ResolvedMacro resolveMacro(String macroName)
|
protected ResolvedMacro resolveMacro(String macroName)
|
||||||
throws CdtVariableException {
|
throws CdtVariableException {
|
||||||
if(fFileVarsSet.contains(macroName)
|
if(fFileVarsSet.contains(macroName)
|
||||||
|
|
|
@ -19,22 +19,27 @@ public class BuildTargetPlatformData extends CTargetPlatformData {
|
||||||
public BuildTargetPlatformData(TargetPlatform targetPlatform){
|
public BuildTargetPlatformData(TargetPlatform targetPlatform){
|
||||||
fTargetPlatform = targetPlatform;
|
fTargetPlatform = targetPlatform;
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
public String[] getBinaryParserIds() {
|
public String[] getBinaryParserIds() {
|
||||||
return fTargetPlatform.getBinaryParserList();
|
return fTargetPlatform.getBinaryParserList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setBinaryParserIds(String[] ids) {
|
public void setBinaryParserIds(String[] ids) {
|
||||||
fTargetPlatform.setBinaryParserList(ids);
|
fTargetPlatform.setBinaryParserList(ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return fTargetPlatform.getId();
|
return fTargetPlatform.getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return fTargetPlatform.getName();
|
return fTargetPlatform.getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
//TODO:
|
//TODO:
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -45,6 +45,7 @@ public class BuildVariablesContributor implements ICdtVariablesContributor {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
protected ICdtVariableSupplier[] getSuppliers(int type, Object data) {
|
protected ICdtVariableSupplier[] getSuppliers(int type, Object data) {
|
||||||
switch(type){
|
switch(type){
|
||||||
case IBuildMacroProvider.CONTEXT_CONFIGURATION:
|
case IBuildMacroProvider.CONTEXT_CONFIGURATION:
|
||||||
|
@ -66,6 +67,7 @@ public class BuildVariablesContributor implements ICdtVariablesContributor {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
public IVariableContextInfo getNext() {
|
public IVariableContextInfo getNext() {
|
||||||
switch(getContextType()){
|
switch(getContextType()){
|
||||||
case IBuildMacroProvider.CONTEXT_CONFIGURATION:{
|
case IBuildMacroProvider.CONTEXT_CONFIGURATION:{
|
||||||
|
|
|
@ -59,6 +59,7 @@ public class ExternalExtensionMacroSupplier implements ICdtVariableSupplier{
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.envvar.IEnvironmentVariableProvider#getVariable(java.lang.String, java.lang.Object, boolean)
|
* @see org.eclipse.cdt.managedbuilder.envvar.IEnvironmentVariableProvider#getVariable(java.lang.String, java.lang.Object, boolean)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public ICdtVariable getVariable(String macroName,
|
public ICdtVariable getVariable(String macroName,
|
||||||
int contextType,
|
int contextType,
|
||||||
Object contextData,
|
Object contextData,
|
||||||
|
@ -72,6 +73,7 @@ public class ExternalExtensionMacroSupplier implements ICdtVariableSupplier{
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroProvider#getMacros(int, java.lang.Object, boolean)
|
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroProvider#getMacros(int, java.lang.Object, boolean)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public ICdtVariable[] getVariables(int contextType,Object contextData, boolean includeParent) {
|
public ICdtVariable[] getVariables(int contextType,Object contextData, boolean includeParent) {
|
||||||
// return filterVariables(super.getMacros(contextType, contextData, includeParent));
|
// return filterVariables(super.getMacros(contextType, contextData, includeParent));
|
||||||
return filterVariables(fMngr.getVariables(fCfgDes));
|
return filterVariables(fMngr.getVariables(fCfgDes));
|
||||||
|
@ -80,6 +82,7 @@ public class ExternalExtensionMacroSupplier implements ICdtVariableSupplier{
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.internal.envvar.EnvironmentVariableProvider#getContextInfo(java.lang.Object)
|
* @see org.eclipse.cdt.managedbuilder.internal.envvar.EnvironmentVariableProvider#getContextInfo(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public IMacroContextInfo getMacroContextInfo(int contextType,Object contextData){
|
public IMacroContextInfo getMacroContextInfo(int contextType,Object contextData){
|
||||||
IMacroContextInfo startInfo = getStartInfo();
|
IMacroContextInfo startInfo = getStartInfo();
|
||||||
if(contextType == fContextType &&
|
if(contextType == fContextType &&
|
||||||
|
|
|
@ -534,6 +534,7 @@ public class ProjectConverter implements ICProjectConverter {
|
||||||
CCorePlugin.getDefault().setProjectDescription(project, newDes);
|
CCorePlugin.getDefault().setProjectDescription(project, newDes);
|
||||||
Job job = new Job(DataProviderMessages.getString("ProjectConverter.7")){ //$NON-NLS-1$
|
Job job = new Job(DataProviderMessages.getString("ProjectConverter.7")){ //$NON-NLS-1$
|
||||||
|
|
||||||
|
@Override
|
||||||
protected IStatus run(IProgressMonitor monitor) {
|
protected IStatus run(IProgressMonitor monitor) {
|
||||||
try {
|
try {
|
||||||
ICProjectDescription des = CCorePlugin.getDefault().getProjectDescription(project);
|
ICProjectDescription des = CCorePlugin.getDefault().getProjectDescription(project);
|
||||||
|
|
|
@ -57,6 +57,7 @@ class ResourcePropertyHolder extends ResourceChangeHandlerBase {
|
||||||
return !fProjectOnly || rc.getType() == IResource.PROJECT;
|
return !fProjectOnly || rc.getType() == IResource.PROJECT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected IResourceMoveHandler createResourceMoveHandler(
|
protected IResourceMoveHandler createResourceMoveHandler(
|
||||||
IResourceChangeEvent event) {
|
IResourceChangeEvent event) {
|
||||||
return new ResourceMoveHandler();
|
return new ResourceMoveHandler();
|
||||||
|
|
|
@ -22,6 +22,7 @@ public class NotExpression extends AndExpression {
|
||||||
super(element);
|
super(element);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean evaluate(IResourceInfo rcInfo,
|
public boolean evaluate(IResourceInfo rcInfo,
|
||||||
IHoldsOptions holder,
|
IHoldsOptions holder,
|
||||||
IOption option) {
|
IOption option) {
|
||||||
|
|
|
@ -201,6 +201,7 @@ public class StoredBuildPathEnvironmentContainer extends
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.internal.envvar.StorableEnvironmentLoader#getSerializeInfo(java.lang.Object)
|
* @see org.eclipse.cdt.managedbuilder.internal.envvar.StorableEnvironmentLoader#getSerializeInfo(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
protected ISerializeInfo getSerializeInfo(Object context) {
|
protected ISerializeInfo getSerializeInfo(Object context) {
|
||||||
ISerializeInfo serializeInfo = null;
|
ISerializeInfo serializeInfo = null;
|
||||||
if(context instanceof IConfiguration){
|
if(context instanceof IConfiguration){
|
||||||
|
|
|
@ -43,6 +43,7 @@ public class BuildMacro extends CdtVariable implements IBuildMacro {
|
||||||
return getValueType();
|
return getValueType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String[] getStringListValue() throws BuildMacroException {
|
public String[] getStringListValue() throws BuildMacroException {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
try {
|
try {
|
||||||
|
@ -52,6 +53,7 @@ public class BuildMacro extends CdtVariable implements IBuildMacro {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getStringValue() throws BuildMacroException {
|
public String getStringValue() throws BuildMacroException {
|
||||||
try {
|
try {
|
||||||
return super.getStringValue();
|
return super.getStringValue();
|
||||||
|
|
|
@ -302,6 +302,7 @@ public class BuildMacroProvider implements IBuildMacroProvider, IMacroContextInf
|
||||||
final ICdtVariableManager mngr = CCorePlugin.getDefault().getCdtVariableManager();
|
final ICdtVariableManager mngr = CCorePlugin.getDefault().getCdtVariableManager();
|
||||||
IMacroContextInfo info = getMacroContextInfo(contextType,contextData);
|
IMacroContextInfo info = getMacroContextInfo(contextType,contextData);
|
||||||
IVariableSubstitutor subst = new SupplierBasedCdtVariableSubstitutor(info,null,""){ //$NON-NLS-1$
|
IVariableSubstitutor subst = new SupplierBasedCdtVariableSubstitutor(info,null,""){ //$NON-NLS-1$
|
||||||
|
@Override
|
||||||
protected ResolvedMacro resolveMacro(ICdtVariable macro) throws CdtVariableException {
|
protected ResolvedMacro resolveMacro(ICdtVariable macro) throws CdtVariableException {
|
||||||
IStringVariable var = mngr.toEclipseVariable(macro, null);
|
IStringVariable var = mngr.toEclipseVariable(macro, null);
|
||||||
if(var instanceof IDynamicVariable)
|
if(var instanceof IDynamicVariable)
|
||||||
|
|
|
@ -214,6 +214,7 @@ public class BuildfileMacroSubstitutor extends SupplierBasedCdtVariableSubstitut
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.internal.macros.DefaultMacroSubstitutor#resolveMacro(org.eclipse.cdt.managedbuilder.macros.IBuildMacro)
|
* @see org.eclipse.cdt.managedbuilder.internal.macros.DefaultMacroSubstitutor#resolveMacro(org.eclipse.cdt.managedbuilder.macros.IBuildMacro)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
protected ResolvedMacro resolveMacro(ICdtVariable macro) throws CdtVariableException{
|
protected ResolvedMacro resolveMacro(ICdtVariable macro) throws CdtVariableException{
|
||||||
ResolvedMacro resolved = null;
|
ResolvedMacro resolved = null;
|
||||||
|
|
||||||
|
@ -276,6 +277,7 @@ public class BuildfileMacroSubstitutor extends SupplierBasedCdtVariableSubstitut
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.internal.macros.DefaultMacroSubstitutor#setMacroContextInfo(org.eclipse.cdt.managedbuilder.internal.macros.IMacroContextInfo)
|
* @see org.eclipse.cdt.managedbuilder.internal.macros.DefaultMacroSubstitutor#setMacroContextInfo(org.eclipse.cdt.managedbuilder.internal.macros.IMacroContextInfo)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void setMacroContextInfo(IVariableContextInfo info)
|
public void setMacroContextInfo(IVariableContextInfo info)
|
||||||
throws CdtVariableException{
|
throws CdtVariableException{
|
||||||
super.setMacroContextInfo(info);
|
super.setMacroContextInfo(info);
|
||||||
|
|
|
@ -24,19 +24,23 @@ public class CoreMacrosSupplier extends BuildCdtVariablesSupplierBase {
|
||||||
fMngr = CCorePlugin.getDefault().getCdtVariableManager();
|
fMngr = CCorePlugin.getDefault().getCdtVariableManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IBuildMacro getMacro(String macroName, int contextType,
|
public IBuildMacro getMacro(String macroName, int contextType,
|
||||||
Object contextData) {
|
Object contextData) {
|
||||||
return BuildMacroProvider.wrap(getVariable(macroName, null));
|
return BuildMacroProvider.wrap(getVariable(macroName, null));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IBuildMacro[] getMacros(int contextType, Object contextData) {
|
public IBuildMacro[] getMacros(int contextType, Object contextData) {
|
||||||
return BuildMacroProvider.wrap(getVariables(null));
|
return BuildMacroProvider.wrap(getVariables(null));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public ICdtVariable getVariable(String macroName, IMacroContextInfo context) {
|
public ICdtVariable getVariable(String macroName, IMacroContextInfo context) {
|
||||||
return fMngr.getVariable(macroName, fCfgDes);
|
return fMngr.getVariable(macroName, fCfgDes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public ICdtVariable[] getVariables(IMacroContextInfo context) {
|
public ICdtVariable[] getVariables(IMacroContextInfo context) {
|
||||||
return fMngr.getVariables(fCfgDes);
|
return fMngr.getVariables(fCfgDes);
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,6 +53,7 @@ public class ExplicitFileMacroCollector extends SupplierBasedCdtVariableSubstitu
|
||||||
*/
|
*/
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
protected ResolvedMacro resolveMacro(ICdtVariable macro) throws CdtVariableException{
|
protected ResolvedMacro resolveMacro(ICdtVariable macro) throws CdtVariableException{
|
||||||
if(macro instanceof MbsMacroSupplier.FileContextMacro){
|
if(macro instanceof MbsMacroSupplier.FileContextMacro){
|
||||||
MbsMacroSupplier.FileContextMacro fileMacro = (MbsMacroSupplier.FileContextMacro)macro;
|
MbsMacroSupplier.FileContextMacro fileMacro = (MbsMacroSupplier.FileContextMacro)macro;
|
||||||
|
|
|
@ -113,6 +113,7 @@ public class FileContextBuildMacroValues implements
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see java.lang.Object#clone()
|
* @see java.lang.Object#clone()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public Object clone(){
|
public Object clone(){
|
||||||
FileContextBuildMacroValues cloned = null;
|
FileContextBuildMacroValues cloned = null;
|
||||||
try{
|
try{
|
||||||
|
|
|
@ -215,6 +215,7 @@ public class MbsMacroSupplier extends BuildCdtVariablesSupplierBase {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacro#getStringValue()
|
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacro#getStringValue()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String getStringValue(){
|
public String getStringValue(){
|
||||||
// loadValue();
|
// loadValue();
|
||||||
return fStringValue;
|
return fStringValue;
|
||||||
|
@ -333,6 +334,7 @@ public class MbsMacroSupplier extends BuildCdtVariablesSupplierBase {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacro(java.lang.String, int, java.lang.Object)
|
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacro(java.lang.String, int, java.lang.Object)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public IBuildMacro getMacro(String macroName, int contextType,
|
public IBuildMacro getMacro(String macroName, int contextType,
|
||||||
Object contextData) {
|
Object contextData) {
|
||||||
IBuildMacro macro = null;
|
IBuildMacro macro = null;
|
||||||
|
@ -679,6 +681,7 @@ public class MbsMacroSupplier extends BuildCdtVariablesSupplierBase {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacros(int, java.lang.Object)
|
* @see org.eclipse.cdt.managedbuilder.macros.IBuildMacroSupplier#getMacros(int, java.lang.Object)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public IBuildMacro[] getMacros(int contextType, Object contextData) {
|
public IBuildMacro[] getMacros(int contextType, Object contextData) {
|
||||||
String names[] = getMacroNames(contextType,false);
|
String names[] = getMacroNames(contextType,false);
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@ public class DefaultGnuWinScannerInfoCollector extends DefaultGCCScannerInfoColl
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.make.core.scannerconfig.IScannerInfoCollector#contributeToScannerConfig(java.lang.Object, java.util.Map)
|
* @see org.eclipse.cdt.make.core.scannerconfig.IScannerInfoCollector#contributeToScannerConfig(java.lang.Object, java.util.Map)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void contributeToScannerConfig(Object resource, Map scannerInfo) {
|
public void contributeToScannerConfig(Object resource, Map scannerInfo) {
|
||||||
// check the resource
|
// check the resource
|
||||||
// if (resource != null && resource instanceof IResource &&
|
// if (resource != null && resource instanceof IResource &&
|
||||||
|
@ -64,11 +65,13 @@ public class DefaultGnuWinScannerInfoCollector extends DefaultGCCScannerInfoColl
|
||||||
super.contributeToScannerConfig(resource, scannerInfo);
|
super.contributeToScannerConfig(resource, scannerInfo);
|
||||||
}
|
}
|
||||||
// }
|
// }
|
||||||
|
@Override
|
||||||
public void setProject(IProject project) {
|
public void setProject(IProject project) {
|
||||||
fProject = project;
|
fProject = project;
|
||||||
super.setProject(project);
|
super.setProject(project);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setInfoContext(InfoContext context) {
|
public void setInfoContext(InfoContext context) {
|
||||||
fProject = context.getProject();
|
fProject = context.getProject();
|
||||||
super.setInfoContext(context);
|
super.setInfoContext(context);
|
||||||
|
|
|
@ -36,6 +36,7 @@ public class ManagedBuildPathEntryContainerInitializer extends PathEntryContaine
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.core.model.PathEntryContainerInitializer#initialize(org.eclipse.core.runtime.IPath, org.eclipse.cdt.core.model.ICProject)
|
* @see org.eclipse.cdt.core.model.PathEntryContainerInitializer#initialize(org.eclipse.core.runtime.IPath, org.eclipse.cdt.core.model.ICProject)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void initialize(IPath containerPath, ICProject project) throws CoreException {
|
public void initialize(IPath containerPath, ICProject project) throws CoreException {
|
||||||
if (VERBOSE) {
|
if (VERBOSE) {
|
||||||
System.out.println(TRACE_HEADER +
|
System.out.println(TRACE_HEADER +
|
||||||
|
|
|
@ -24,12 +24,14 @@ public class ManagedGCCScannerInfoConsoleParser extends
|
||||||
GCCScannerInfoConsoleParser {
|
GCCScannerInfoConsoleParser {
|
||||||
Boolean fManagedBuildOnState;
|
Boolean fManagedBuildOnState;
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean processLine(String line) {
|
public boolean processLine(String line) {
|
||||||
if(isManagedBuildOn())
|
if(isManagedBuildOn())
|
||||||
return false;
|
return false;
|
||||||
return super.processLine(line);
|
return super.processLine(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void shutdown() {
|
public void shutdown() {
|
||||||
if(!isManagedBuildOn()){
|
if(!isManagedBuildOn()){
|
||||||
super.shutdown();
|
super.shutdown();
|
||||||
|
@ -37,6 +39,7 @@ public class ManagedGCCScannerInfoConsoleParser extends
|
||||||
fManagedBuildOnState = null;
|
fManagedBuildOnState = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void startup(IProject project, IScannerInfoCollector collector) {
|
public void startup(IProject project, IScannerInfoCollector collector) {
|
||||||
if(isManagedBuildOn())
|
if(isManagedBuildOn())
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CollectionMap {
|
||||||
return (Collection)fEntry.getValue();
|
return (Collection)fEntry.getValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if(obj == this)
|
if(obj == this)
|
||||||
return true;
|
return true;
|
||||||
|
@ -79,6 +80,7 @@ public class CollectionMap {
|
||||||
return fEntry.equals(((CollectionEntry)obj).fEntry);
|
return fEntry.equals(((CollectionEntry)obj).fEntry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return fEntry.hashCode();
|
return fEntry.hashCode();
|
||||||
}
|
}
|
||||||
|
@ -111,10 +113,12 @@ public class CollectionMap {
|
||||||
fMapEntrySet = fMap.entrySet();
|
fMapEntrySet = fMap.entrySet();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Iterator iterator() {
|
public Iterator iterator() {
|
||||||
return new Iter();
|
return new Iter();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int size() {
|
public int size() {
|
||||||
return fMapEntrySet.size();
|
return fMapEntrySet.size();
|
||||||
}
|
}
|
||||||
|
@ -263,6 +267,7 @@ public class CollectionMap {
|
||||||
// return new ArrayList(1);
|
// return new ArrayList(1);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
@Override
|
||||||
public Object clone() {
|
public Object clone() {
|
||||||
try {
|
try {
|
||||||
CollectionMap clone = (CollectionMap)super.clone();
|
CollectionMap clone = (CollectionMap)super.clone();
|
||||||
|
|
|
@ -193,11 +193,13 @@ public class ConfigurationModification extends FolderInfoModification implements
|
||||||
clearToolCompatibilityInfo();
|
clearToolCompatibilityInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setToolChain(IToolChain tc, boolean force) {
|
public void setToolChain(IToolChain tc, boolean force) {
|
||||||
setBuilder(tc.getBuilder());
|
setBuilder(tc.getBuilder());
|
||||||
super.setToolChain(tc, force);
|
super.setToolChain(tc, force);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void changeProjectTools(ITool removeTool, ITool addTool) {
|
public void changeProjectTools(ITool removeTool, ITool addTool) {
|
||||||
clearBuilderCompatibilityInfo();
|
clearBuilderCompatibilityInfo();
|
||||||
super.changeProjectTools(removeTool, addTool);
|
super.changeProjectTools(removeTool, addTool);
|
||||||
|
|
|
@ -36,20 +36,24 @@ public class FileInfoModification extends
|
||||||
super(rcInfo, base);
|
super(rcInfo, base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected boolean canRemove(ITool realTool) {
|
protected boolean canRemove(ITool realTool) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected boolean canAdd(Tool tool) {
|
protected boolean canAdd(Tool tool) {
|
||||||
String ext = getFileExtension();
|
String ext = getFileExtension();
|
||||||
return tool.buildsFileType(ext, getProject());
|
return tool.buildsFileType(ext, getProject());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected boolean canReplace(Tool fromTool, Tool toTool) {
|
protected boolean canReplace(Tool fromTool, Tool toTool) {
|
||||||
String ext = getFileExtension();
|
String ext = getFileExtension();
|
||||||
return toTool.buildsFileType(ext, getProject());
|
return toTool.buildsFileType(ext, getProject());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected Set getToolApplicabilityPathSet(Tool realTool, boolean isProject) {
|
protected Set getToolApplicabilityPathSet(Tool realTool, boolean isProject) {
|
||||||
if(fApplPathSet == null){
|
if(fApplPathSet == null){
|
||||||
Set s = new HashSet(1);
|
Set s = new HashSet(1);
|
||||||
|
@ -59,10 +63,12 @@ public class FileInfoModification extends
|
||||||
return fApplPathSet;
|
return fApplPathSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected Set getExtensionConflictToolSet(Tool tool, Tool[] toos) {
|
protected Set getExtensionConflictToolSet(Tool tool, Tool[] toos) {
|
||||||
return Collections.EMPTY_SET;
|
return Collections.EMPTY_SET;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected Tool[] filterTools(Tool[] tools) {
|
protected Tool[] filterTools(Tool[] tools) {
|
||||||
return tools;
|
return tools;
|
||||||
}
|
}
|
||||||
|
|
|
@ -223,6 +223,7 @@ public class FolderInfoModification extends ToolListModification implements IFol
|
||||||
fCurrentCompatibilityInfo = null;
|
fCurrentCompatibilityInfo = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected boolean canRemove(ITool realTool) {
|
protected boolean canRemove(ITool realTool) {
|
||||||
IToolChain extTc = ManagedBuildManager.getExtensionToolChain(fSelectedToolChain);
|
IToolChain extTc = ManagedBuildManager.getExtensionToolChain(fSelectedToolChain);
|
||||||
ITool[] tools = extTc.getTools();
|
ITool[] tools = extTc.getTools();
|
||||||
|
@ -234,10 +235,12 @@ public class FolderInfoModification extends ToolListModification implements IFol
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected boolean canAdd(Tool tool) {
|
protected boolean canAdd(Tool tool) {
|
||||||
return !TcModificationUtil.containCommonEntries(getInputExtsSet(), tool.getPrimaryInputExtensions());
|
return !TcModificationUtil.containCommonEntries(getInputExtsSet(), tool.getPrimaryInputExtensions());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected boolean canReplace(Tool fromTool, Tool toTool) {
|
protected boolean canReplace(Tool fromTool, Tool toTool) {
|
||||||
String[] exts = toTool.getPrimaryInputExtensions();
|
String[] exts = toTool.getPrimaryInputExtensions();
|
||||||
Set curInputExts = null;
|
Set curInputExts = null;
|
||||||
|
@ -255,6 +258,7 @@ public class FolderInfoModification extends ToolListModification implements IFol
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected Set getExtensionConflictToolSet(Tool tool, Tool[] tools) {
|
protected Set getExtensionConflictToolSet(Tool tool, Tool[] tools) {
|
||||||
String exts[] = tool.getPrimaryInputExtensions();
|
String exts[] = tool.getPrimaryInputExtensions();
|
||||||
Set extsSet = new HashSet(Arrays.asList(exts));
|
Set extsSet = new HashSet(Arrays.asList(exts));
|
||||||
|
@ -277,12 +281,14 @@ public class FolderInfoModification extends ToolListModification implements IFol
|
||||||
return conflictsSet;
|
return conflictsSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected Set getToolApplicabilityPathSet(Tool realTool, boolean isProject) {
|
protected Set getToolApplicabilityPathSet(Tool realTool, boolean isProject) {
|
||||||
if(isProject)
|
if(isProject)
|
||||||
return (Set)getToolChainApplicabilityPaths().fToolPathMap.get(realTool);
|
return (Set)getToolChainApplicabilityPaths().fToolPathMap.get(realTool);
|
||||||
return getToolChainApplicabilityPaths().fFolderInfoPaths;
|
return getToolChainApplicabilityPaths().fFolderInfoPaths;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected Tool[] filterTools(Tool[] tools) {
|
protected Tool[] filterTools(Tool[] tools) {
|
||||||
IResourceInfo rcInfo = getResourceInfo();
|
IResourceInfo rcInfo = getResourceInfo();
|
||||||
return (Tool[])((FolderInfo)rcInfo).filterTools(tools, rcInfo.getParent().getManagedProject());
|
return (Tool[])((FolderInfo)rcInfo).filterTools(tools, rcInfo.getParent().getManagedProject());
|
||||||
|
@ -327,6 +333,7 @@ public class FolderInfoModification extends ToolListModification implements IFol
|
||||||
fTcApplicabilityPaths = tcApplicabilityPaths;
|
fTcApplicabilityPaths = tcApplicabilityPaths;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void clearToolInfo(ITool[] tools){
|
protected void clearToolInfo(ITool[] tools){
|
||||||
super.clearToolInfo(tools);
|
super.clearToolInfo(tools);
|
||||||
fTcApplicabilityPaths = null;
|
fTcApplicabilityPaths = null;
|
||||||
|
|
|
@ -15,10 +15,12 @@ import java.util.HashSet;
|
||||||
|
|
||||||
public class HashSetMap extends CollectionMap {
|
public class HashSetMap extends CollectionMap {
|
||||||
|
|
||||||
|
@Override
|
||||||
protected Collection cloneCollection(Collection l) {
|
protected Collection cloneCollection(Collection l) {
|
||||||
return (Collection)((HashSet)l).clone();
|
return (Collection)((HashSet)l).clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected Collection newCollection(int size) {
|
protected Collection newCollection(int size) {
|
||||||
return new HashSet();
|
return new HashSet();
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,10 +15,12 @@ import java.util.LinkedHashSet;
|
||||||
|
|
||||||
public class LinkedHashSetMap extends CollectionMap {
|
public class LinkedHashSetMap extends CollectionMap {
|
||||||
|
|
||||||
|
@Override
|
||||||
protected Collection cloneCollection(Collection l) {
|
protected Collection cloneCollection(Collection l) {
|
||||||
return (Collection)((LinkedHashSet)l).clone();
|
return (Collection)((LinkedHashSet)l).clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected Collection newCollection(int size) {
|
protected Collection newCollection(int size) {
|
||||||
return new LinkedHashSet();
|
return new LinkedHashSet();
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,6 +67,7 @@ public class ListMap implements Cloneable {
|
||||||
return (List)fEntry.getValue();
|
return (List)fEntry.getValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if(obj == this)
|
if(obj == this)
|
||||||
return true;
|
return true;
|
||||||
|
@ -80,6 +81,7 @@ public class ListMap implements Cloneable {
|
||||||
return fEntry.equals(((CollectionEntry)obj).fEntry);
|
return fEntry.equals(((CollectionEntry)obj).fEntry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return fEntry.hashCode();
|
return fEntry.hashCode();
|
||||||
}
|
}
|
||||||
|
@ -112,10 +114,12 @@ public class ListMap implements Cloneable {
|
||||||
fMapEntrySet = fMap.entrySet();
|
fMapEntrySet = fMap.entrySet();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Iterator iterator() {
|
public Iterator iterator() {
|
||||||
return new Iter();
|
return new Iter();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int size() {
|
public int size() {
|
||||||
return fMapEntrySet.size();
|
return fMapEntrySet.size();
|
||||||
}
|
}
|
||||||
|
@ -264,6 +268,7 @@ public class ListMap implements Cloneable {
|
||||||
// return new ArrayList(1);
|
// return new ArrayList(1);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
@Override
|
||||||
public Object clone() {
|
public Object clone() {
|
||||||
try {
|
try {
|
||||||
ListMap clone = (ListMap)super.clone();
|
ListMap clone = (ListMap)super.clone();
|
||||||
|
|
|
@ -56,6 +56,7 @@ public class ObjectSet implements IObjectSet {
|
||||||
return fObjectSet.size();
|
return fObjectSet.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString(){
|
public String toString(){
|
||||||
StringBuffer buf = new StringBuffer();
|
StringBuffer buf = new StringBuffer();
|
||||||
buf.append(MatchObjectElement.TypeToStringAssociation.getAssociation(fObjectType).getString());
|
buf.append(MatchObjectElement.TypeToStringAssociation.getAssociation(fObjectType).getString());
|
||||||
|
|
|
@ -73,6 +73,7 @@ public final class ObjectTypeBasedStorage implements Cloneable {
|
||||||
return oldValue;
|
return oldValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Object clone(){
|
public Object clone(){
|
||||||
try {
|
try {
|
||||||
ObjectTypeBasedStorage clone = (ObjectTypeBasedStorage)super.clone();
|
ObjectTypeBasedStorage clone = (ObjectTypeBasedStorage)super.clone();
|
||||||
|
|
|
@ -15,10 +15,12 @@ import java.util.TreeSet;
|
||||||
|
|
||||||
public class PathTreeSetMap extends CollectionMap {
|
public class PathTreeSetMap extends CollectionMap {
|
||||||
|
|
||||||
|
@Override
|
||||||
protected Collection cloneCollection(Collection l) {
|
protected Collection cloneCollection(Collection l) {
|
||||||
return (Collection)((TreeSet)l).clone();
|
return (Collection)((TreeSet)l).clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected Collection newCollection(int size) {
|
protected Collection newCollection(int size) {
|
||||||
return new TreeSet(PathComparator.INSTANCE);
|
return new TreeSet(PathComparator.INSTANCE);
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,7 @@ public class PerTypeMapStorage implements Cloneable {
|
||||||
return (Map)((HashMap)map).clone();
|
return (Map)((HashMap)map).clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Object clone(){
|
public Object clone(){
|
||||||
try {
|
try {
|
||||||
PerTypeMapStorage clone = (PerTypeMapStorage)super.clone();
|
PerTypeMapStorage clone = (PerTypeMapStorage)super.clone();
|
||||||
|
|
|
@ -31,6 +31,7 @@ public class PerTypeSetStorage implements Cloneable {
|
||||||
return (Set)((LinkedHashSet)set).clone();
|
return (Set)((LinkedHashSet)set).clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Object clone(){
|
public Object clone(){
|
||||||
try {
|
try {
|
||||||
PerTypeSetStorage clone = (PerTypeSetStorage)super.clone();
|
PerTypeSetStorage clone = (PerTypeSetStorage)super.clone();
|
||||||
|
|
|
@ -18,6 +18,7 @@ public class ConflictDefinition extends ObjectSetListBasedDefinition {
|
||||||
super(list);
|
super(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public final int getType() {
|
public final int getType() {
|
||||||
return CONFLICT;
|
return CONFLICT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,6 +76,7 @@ public class MatchObjectElement {
|
||||||
fType = el.getCompleteOredTypeValue();
|
fType = el.getCompleteOredTypeValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if(obj == this)
|
if(obj == this)
|
||||||
return true;
|
return true;
|
||||||
|
@ -86,6 +87,7 @@ public class MatchObjectElement {
|
||||||
return fType == ((PatternTypeKey)obj).fType;
|
return fType == ((PatternTypeKey)obj).fType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return fType;
|
return fType;
|
||||||
}
|
}
|
||||||
|
@ -157,6 +159,7 @@ public class MatchObjectElement {
|
||||||
return (String[])fIds.toArray(new String[fIds.size()]);
|
return (String[])fIds.toArray(new String[fIds.size()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if(obj == this)
|
if(obj == this)
|
||||||
return true;
|
return true;
|
||||||
|
@ -171,6 +174,7 @@ public class MatchObjectElement {
|
||||||
return other.fIds.containsAll(fIds);
|
return other.fIds.containsAll(fIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
if(fHash == 0){
|
if(fHash == 0){
|
||||||
fHash = fIds.hashCode();
|
fHash = fIds.hashCode();
|
||||||
|
@ -244,6 +248,7 @@ public class MatchObjectElement {
|
||||||
return fObjectType;
|
return fObjectType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if(obj == this)
|
if(obj == this)
|
||||||
return true;
|
return true;
|
||||||
|
@ -258,6 +263,7 @@ public class MatchObjectElement {
|
||||||
return Arrays.equals(other.fPatterns, fPatterns);
|
return Arrays.equals(other.fPatterns, fPatterns);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
if(fHash == 0){
|
if(fHash == 0){
|
||||||
int hash = fObjectType;
|
int hash = fObjectType;
|
||||||
|
|
|
@ -55,6 +55,7 @@ public class RulesManager {
|
||||||
setSystem(true);
|
setSystem(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected IStatus run(IProgressMonitor monitor) {
|
protected IStatus run(IProgressMonitor monitor) {
|
||||||
try {
|
try {
|
||||||
loadExtensions();
|
loadExtensions();
|
||||||
|
|
|
@ -766,6 +766,7 @@ class UpdateManagedProject12 {
|
||||||
//initiate the job in all cases
|
//initiate the job in all cases
|
||||||
// if (treeLock) {
|
// if (treeLock) {
|
||||||
WorkspaceJob job = new WorkspaceJob(ConverterMessages.getResourceString("UpdateManagedProject.notice")) { //$NON-NLS-1$
|
WorkspaceJob job = new WorkspaceJob(ConverterMessages.getResourceString("UpdateManagedProject.notice")) { //$NON-NLS-1$
|
||||||
|
@Override
|
||||||
public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
|
public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
|
||||||
ManagedBuildManager.saveBuildInfoLegacy(project, false);
|
ManagedBuildManager.saveBuildInfoLegacy(project, false);
|
||||||
return Status.OK_STATUS;
|
return Status.OK_STATUS;
|
||||||
|
|
|
@ -117,6 +117,7 @@ class UpdateManagedProject20 {
|
||||||
//since the java synchronized mechanism is now used for the build info loadding,
|
//since the java synchronized mechanism is now used for the build info loadding,
|
||||||
//initiate the job in all cases
|
//initiate the job in all cases
|
||||||
WorkspaceJob job = new WorkspaceJob(ConverterMessages.getResourceString("UpdateManagedProject.notice")) { //$NON-NLS-1$
|
WorkspaceJob job = new WorkspaceJob(ConverterMessages.getResourceString("UpdateManagedProject.notice")) { //$NON-NLS-1$
|
||||||
|
@Override
|
||||||
public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
|
public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
|
||||||
ManagedBuildManager.saveBuildInfoLegacy(project, false);
|
ManagedBuildManager.saveBuildInfoLegacy(project, false);
|
||||||
return Status.OK_STATUS;
|
return Status.OK_STATUS;
|
||||||
|
|
|
@ -85,6 +85,7 @@ class UpdateManagedProject21 {
|
||||||
//initiate the job in all cases
|
//initiate the job in all cases
|
||||||
// if (treeLock) {
|
// if (treeLock) {
|
||||||
WorkspaceJob job = new WorkspaceJob(ConverterMessages.getResourceString("UpdateManagedProject.notice")) { //$NON-NLS-1$
|
WorkspaceJob job = new WorkspaceJob(ConverterMessages.getResourceString("UpdateManagedProject.notice")) { //$NON-NLS-1$
|
||||||
|
@Override
|
||||||
public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
|
public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
|
||||||
checkForCPPWithC(monitor, project);
|
checkForCPPWithC(monitor, project);
|
||||||
ManagedBuildManager.saveBuildInfoLegacy(project, true);
|
ManagedBuildManager.saveBuildInfoLegacy(project, true);
|
||||||
|
|
|
@ -390,6 +390,7 @@ public class UpdateManagedProjectManager {
|
||||||
IWorkspace workspace = project.getWorkspace();
|
IWorkspace workspace = project.getWorkspace();
|
||||||
ISchedulingRule rule = workspace.getRuleFactory().refreshRule(project);
|
ISchedulingRule rule = workspace.getRuleFactory().refreshRule(project);
|
||||||
WorkspaceJob job = new WorkspaceJob("Refresh Project") { //$NON-NLS-1$
|
WorkspaceJob job = new WorkspaceJob("Refresh Project") { //$NON-NLS-1$
|
||||||
|
@Override
|
||||||
public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
|
public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
|
||||||
project.refreshLocal(IResource.DEPTH_ONE, null);
|
project.refreshLocal(IResource.DEPTH_ONE, null);
|
||||||
return Status.OK_STATUS;
|
return Status.OK_STATUS;
|
||||||
|
|
|
@ -37,6 +37,7 @@ public class CreateProjectProgressMonitor extends NullProgressMonitor {
|
||||||
*
|
*
|
||||||
* @see IProgressMonitor#setTaskName(String)
|
* @see IProgressMonitor#setTaskName(String)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void setTaskName(String name) {
|
public void setTaskName(String name) {
|
||||||
super.setTaskName(name);
|
super.setTaskName(name);
|
||||||
}
|
}
|
||||||
|
@ -47,6 +48,7 @@ public class CreateProjectProgressMonitor extends NullProgressMonitor {
|
||||||
* @see IProgressMonitor#isCanceled()
|
* @see IProgressMonitor#isCanceled()
|
||||||
* @see IProgressMonitor#setCanceled(boolean)
|
* @see IProgressMonitor#setCanceled(boolean)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void setCanceled(boolean cancelled) {
|
public void setCanceled(boolean cancelled) {
|
||||||
super.setCanceled(cancelled);
|
super.setCanceled(cancelled);
|
||||||
}
|
}
|
||||||
|
@ -58,6 +60,7 @@ public class CreateProjectProgressMonitor extends NullProgressMonitor {
|
||||||
* @see IProgressMonitor#isCanceled()
|
* @see IProgressMonitor#isCanceled()
|
||||||
* @see IProgressMonitor#setCanceled(boolean)
|
* @see IProgressMonitor#setCanceled(boolean)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean isCanceled() {
|
public boolean isCanceled() {
|
||||||
return super.isCanceled();
|
return super.isCanceled();
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,6 +45,7 @@ public class AppendToMBSStringListOptionValues extends ProcessRunner {
|
||||||
/**
|
/**
|
||||||
* This method Appends contents to Managed Build System StringList Option Values.
|
* This method Appends contents to Managed Build System StringList Option Values.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void process(TemplateCore template, ProcessArgument[] args, String processId, IProgressMonitor monitor) throws ProcessFailureException {
|
public void process(TemplateCore template, ProcessArgument[] args, String processId, IProgressMonitor monitor) throws ProcessFailureException {
|
||||||
String projectName = args[0].getSimpleValue();
|
String projectName = args[0].getSimpleValue();
|
||||||
IProject projectHandle = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
|
IProject projectHandle = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
|
||||||
|
|
|
@ -43,6 +43,7 @@ public class AppendToMBSStringOptionValue extends ProcessRunner {
|
||||||
/**
|
/**
|
||||||
* This method Appends contents to Managed Build System StringList Option Values.
|
* This method Appends contents to Managed Build System StringList Option Values.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void process(TemplateCore template, ProcessArgument[] args, String processId, IProgressMonitor monitor) throws ProcessFailureException {
|
public void process(TemplateCore template, ProcessArgument[] args, String processId, IProgressMonitor monitor) throws ProcessFailureException {
|
||||||
String projectName = args[0].getSimpleValue();
|
String projectName = args[0].getSimpleValue();
|
||||||
IProject projectHandle = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
|
IProject projectHandle = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
|
||||||
|
|
|
@ -40,6 +40,7 @@ public class CreateIncludeFolder extends CreateSourceFolder {
|
||||||
* This method Creates a include Folder to the project.
|
* This method Creates a include Folder to the project.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void process(TemplateCore template, ProcessArgument[] args, String processId, IProgressMonitor monitor) throws ProcessFailureException {
|
public void process(TemplateCore template, ProcessArgument[] args, String processId, IProgressMonitor monitor) throws ProcessFailureException {
|
||||||
String projectName = args[0].getSimpleValue();
|
String projectName = args[0].getSimpleValue();
|
||||||
String targetPath = args[1].getSimpleValue();
|
String targetPath = args[1].getSimpleValue();
|
||||||
|
|
|
@ -55,6 +55,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
*/
|
*/
|
||||||
public class ExcludeResources extends ProcessRunner {
|
public class ExcludeResources extends ProcessRunner {
|
||||||
|
|
||||||
|
@Override
|
||||||
public void process(TemplateCore template, final ProcessArgument[] args, String processId, IProgressMonitor monitor) throws ProcessFailureException {
|
public void process(TemplateCore template, final ProcessArgument[] args, String processId, IProgressMonitor monitor) throws ProcessFailureException {
|
||||||
String projectName = args[0].getSimpleValue();
|
String projectName = args[0].getSimpleValue();
|
||||||
String configIdPattern = args[1].getSimpleValue();
|
String configIdPattern = args[1].getSimpleValue();
|
||||||
|
|
|
@ -38,6 +38,7 @@ public class GenerateMakefileWithBuildDescription extends ProcessRunner{
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void process(TemplateCore template, ProcessArgument[] args, String processId, IProgressMonitor monitor) throws ProcessFailureException {
|
public void process(TemplateCore template, ProcessArgument[] args, String processId, IProgressMonitor monitor) throws ProcessFailureException {
|
||||||
String projectName = args[0].getSimpleValue();
|
String projectName = args[0].getSimpleValue();
|
||||||
IProject projectHandle = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
|
IProject projectHandle = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
|
||||||
|
|
|
@ -49,6 +49,7 @@ public class NewManagedProject extends ProcessRunner {
|
||||||
pca = new ProjectCreatedActions();
|
pca = new ProjectCreatedActions();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void process(TemplateCore template, ProcessArgument[] args, String processId, IProgressMonitor monitor) throws ProcessFailureException {
|
public void process(TemplateCore template, ProcessArgument[] args, String processId, IProgressMonitor monitor) throws ProcessFailureException {
|
||||||
String projectName = args[0].getSimpleValue();
|
String projectName = args[0].getSimpleValue();
|
||||||
String location = args[1].getSimpleValue();
|
String location = args[1].getSimpleValue();
|
||||||
|
|
|
@ -40,6 +40,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
*/
|
*/
|
||||||
public class SetMBSBooleanOptionValue extends ProcessRunner {
|
public class SetMBSBooleanOptionValue extends ProcessRunner {
|
||||||
|
|
||||||
|
@Override
|
||||||
public void process(TemplateCore template, ProcessArgument[] args, String processId, IProgressMonitor monitor) throws ProcessFailureException {
|
public void process(TemplateCore template, ProcessArgument[] args, String processId, IProgressMonitor monitor) throws ProcessFailureException {
|
||||||
String projectName = args[0].getSimpleValue();
|
String projectName = args[0].getSimpleValue();
|
||||||
IProject projectHandle = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
|
IProject projectHandle = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
|
||||||
|
|
|
@ -40,6 +40,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
*/
|
*/
|
||||||
public class SetMBSStringListOptionValues extends ProcessRunner {
|
public class SetMBSStringListOptionValues extends ProcessRunner {
|
||||||
|
|
||||||
|
@Override
|
||||||
public void process(TemplateCore template, ProcessArgument[] args, String processId, IProgressMonitor monitor) throws ProcessFailureException {
|
public void process(TemplateCore template, ProcessArgument[] args, String processId, IProgressMonitor monitor) throws ProcessFailureException {
|
||||||
String projectName = args[0].getSimpleValue();
|
String projectName = args[0].getSimpleValue();
|
||||||
IProject projectHandle = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
|
IProject projectHandle = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
|
||||||
|
|
|
@ -40,6 +40,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
*/
|
*/
|
||||||
public class SetMBSStringOptionValue extends ProcessRunner {
|
public class SetMBSStringOptionValue extends ProcessRunner {
|
||||||
|
|
||||||
|
@Override
|
||||||
public void process(TemplateCore template, ProcessArgument[] args, String processId, IProgressMonitor monitor) throws ProcessFailureException {
|
public void process(TemplateCore template, ProcessArgument[] args, String processId, IProgressMonitor monitor) throws ProcessFailureException {
|
||||||
String projectName = args[0].getSimpleValue();
|
String projectName = args[0].getSimpleValue();
|
||||||
IProject projectHandle = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
|
IProject projectHandle = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
|
||||||
|
|
|
@ -103,6 +103,7 @@ public class MakeScannerProvider extends ScannerProvider {
|
||||||
*
|
*
|
||||||
* @see org.eclipse.cdt.core.parser.IScannerInfoProvider#getScannerInformation(org.eclipse.core.resources.IResource)
|
* @see org.eclipse.cdt.core.parser.IScannerInfoProvider#getScannerInformation(org.eclipse.core.resources.IResource)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public IScannerInfo getScannerInformation(IResource resource) {
|
public IScannerInfo getScannerInformation(IResource resource) {
|
||||||
try {
|
try {
|
||||||
getMakeScannerInfo(resource.getProject(), true);
|
getMakeScannerInfo(resource.getProject(), true);
|
||||||
|
|
|
@ -51,6 +51,7 @@ import org.eclipse.core.runtime.Platform;
|
||||||
public class SimpleMakefileGenerator extends ProcessRunner {
|
public class SimpleMakefileGenerator extends ProcessRunner {
|
||||||
|
|
||||||
private static final String MAKEFILE = "Makefile"; //$NON-NLS-1$
|
private static final String MAKEFILE = "Makefile"; //$NON-NLS-1$
|
||||||
|
@Override
|
||||||
public void process(TemplateCore template, ProcessArgument[] args,
|
public void process(TemplateCore template, ProcessArgument[] args,
|
||||||
String processId, IProgressMonitor monitor)
|
String processId, IProgressMonitor monitor)
|
||||||
throws ProcessFailureException {
|
throws ProcessFailureException {
|
||||||
|
|
|
@ -38,6 +38,7 @@ public class TestCProjectPlatformPage extends TestCase implements IWizardItemsLi
|
||||||
private TestPage page;
|
private TestPage page;
|
||||||
private boolean currentState=false;
|
private boolean currentState=false;
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void setUp() throws Exception {
|
protected void setUp() throws Exception {
|
||||||
MBSCustomPageManager.init();
|
MBSCustomPageManager.init();
|
||||||
MBSCustomPageManager.loadExtensions();
|
MBSCustomPageManager.loadExtensions();
|
||||||
|
@ -46,6 +47,7 @@ public class TestCProjectPlatformPage extends TestCase implements IWizardItemsLi
|
||||||
wizard.addPages();
|
wizard.addPages();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void tearDown() throws Exception {
|
protected void tearDown() throws Exception {
|
||||||
page.dispose();
|
page.dispose();
|
||||||
page = null;
|
page = null;
|
||||||
|
|
|
@ -50,6 +50,7 @@ public class TestCustomPageManager extends TestCase
|
||||||
|
|
||||||
public static boolean testFlag = false;
|
public static boolean testFlag = false;
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setUp() throws Exception
|
public void setUp() throws Exception
|
||||||
{
|
{
|
||||||
MBSCustomPageManager.init();
|
MBSCustomPageManager.init();
|
||||||
|
|
|
@ -36,6 +36,7 @@ public class TestsPlugin extends AbstractUIPlugin {
|
||||||
/**
|
/**
|
||||||
* This method is called upon plug-in activation
|
* This method is called upon plug-in activation
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void start(BundleContext context) throws Exception {
|
public void start(BundleContext context) throws Exception {
|
||||||
super.start(context);
|
super.start(context);
|
||||||
}
|
}
|
||||||
|
@ -43,6 +44,7 @@ public class TestsPlugin extends AbstractUIPlugin {
|
||||||
/**
|
/**
|
||||||
* This method is called when the plug-in is stopped
|
* This method is called when the plug-in is stopped
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void stop(BundleContext context) throws Exception {
|
public void stop(BundleContext context) throws Exception {
|
||||||
super.stop(context);
|
super.stop(context);
|
||||||
plugin = null;
|
plugin = null;
|
||||||
|
|
|
@ -33,16 +33,19 @@ public class TestToolchain extends HoldsOptions implements IToolChain {
|
||||||
// TODO Auto-generated constructor stub
|
// TODO Auto-generated constructor stub
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getManagedBuildRevision() {
|
public String getManagedBuildRevision() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Version getVersion() {
|
public Version getVersion() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setVersion(Version version) {
|
public void setVersion(Version version) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
|
@ -226,16 +229,19 @@ public class TestToolchain extends HoldsOptions implements IToolChain {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isDirty() {
|
public boolean isDirty() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setDirty(boolean isDirty) {
|
public void setDirty(boolean isDirty) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isExtensionElement() {
|
public boolean isExtensionElement() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return false;
|
return false;
|
||||||
|
@ -251,11 +257,13 @@ public class TestToolchain extends HoldsOptions implements IToolChain {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return id;
|
return id;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return null;
|
return null;
|
||||||
|
@ -276,6 +284,7 @@ public class TestToolchain extends HoldsOptions implements IToolChain {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected IResourceInfo getParentResourceInfo() {
|
protected IResourceInfo getParentResourceInfo() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -32,6 +32,7 @@ public class AlwaysPresentWizardPage extends MBSCustomPage
|
||||||
pageID = "org.eclipse.cdt.managedbuilder.ui.tests.wizardPages.AlwaysPresentWizardPage";
|
pageID = "org.eclipse.cdt.managedbuilder.ui.tests.wizardPages.AlwaysPresentWizardPage";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean canFlipToNextPage()
|
public boolean canFlipToNextPage()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -125,6 +126,7 @@ public class AlwaysPresentWizardPage extends MBSCustomPage
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected boolean isCustomPageComplete()
|
protected boolean isCustomPageComplete()
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -117,6 +117,7 @@ public class NatureAWizardPage extends MBSCustomPage
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected boolean isCustomPageComplete()
|
protected boolean isCustomPageComplete()
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -117,6 +117,7 @@ public class NatureBWizardPage extends MBSCustomPage
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected boolean isCustomPageComplete()
|
protected boolean isCustomPageComplete()
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -117,6 +117,7 @@ public class ProjectTypeDWizardPage extends MBSCustomPage
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected boolean isCustomPageComplete()
|
protected boolean isCustomPageComplete()
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue