Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorDavid Inglis2004-08-23 16:09:48 -0400
committerDavid Inglis2004-08-23 16:09:48 -0400
commit45787ce6ed7a35e4261f9738082b20287ffef4fc (patch)
tree6d7b14be26a1297d2ac50e8401265fdfece74897 /build
parent022ed4b8ebe0b258992e78bbc0e2ff2b381d32fd (diff)
downloadorg.eclipse.cdt-45787ce6ed7a35e4261f9738082b20287ffef4fc.tar.gz
org.eclipse.cdt-45787ce6ed7a35e4261f9738082b20287ffef4fc.tar.xz
org.eclipse.cdt-45787ce6ed7a35e4261f9738082b20287ffef4fc.zip
update to use new IPathEntryContainerPage
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/dialogs/DiscoveredPathContainerPage.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/dialogs/DiscoveredPathContainerPage.java b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/dialogs/DiscoveredPathContainerPage.java
index 906dd6afb62..3701765770e 100644
--- a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/dialogs/DiscoveredPathContainerPage.java
+++ b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/dialogs/DiscoveredPathContainerPage.java
@@ -39,7 +39,7 @@ import org.eclipse.cdt.make.internal.ui.MakeUIPlugin;
import org.eclipse.cdt.make.internal.ui.scannerconfig.DiscoveredElement;
import org.eclipse.cdt.make.internal.ui.scannerconfig.DiscoveredElementLabelProvider;
import org.eclipse.cdt.make.internal.ui.scannerconfig.DiscoveredElementSorter;
-import org.eclipse.cdt.ui.wizards.ICPathContainerPage;
+import org.eclipse.cdt.ui.wizards.IPathEntryContainerPage;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
@@ -71,7 +71,7 @@ import org.eclipse.ui.contexts.IWorkbenchContextSupport;
*
* @author vhirsl
*/
-public class DiscoveredPathContainerPage extends WizardPage implements ICPathContainerPage {
+public class DiscoveredPathContainerPage extends WizardPage implements IPathEntryContainerPage {
private static final String PREFIX = "DiscoveredScannerConfigurationContainerPage"; //$NON-NLS-1$
private static final String DISC_COMMON_PREFIX = "ManageScannerConfigDialogCommon"; //$NON-NLS-1$
@@ -214,18 +214,16 @@ public class DiscoveredPathContainerPage extends WizardPage implements ICPathCon
/* (non-Javadoc)
* @see org.eclipse.cdt.ui.wizards.ICPathContainerPage#getContainerEntries()
*/
- public IPathEntry[] getContainerEntries() {
- return new IPathEntry[] { fPathEntry };
+ public IContainerEntry[] getNewContainers() {
+ return new IContainerEntry[] { fPathEntry };
}
/* (non-Javadoc)
* @see org.eclipse.cdt.ui.wizards.ICPathContainerPage#setSelection(org.eclipse.cdt.core.model.IPathEntry)
*/
- public void setSelection(IPathEntry containerEntry) {
+ public void setSelection(IContainerEntry containerEntry) {
if (containerEntry != null) {
- if (containerEntry.getEntryKind() == IPathEntry.CDT_CONTAINER) {
- fPathEntry = (IContainerEntry) containerEntry;
- }
+ fPathEntry = containerEntry;
}
else {
fPathEntry = CoreModel.newContainerEntry(DiscoveredPathContainer.CONTAINER_ID);

Back to the top