diff options
author | rsuen | 2009-05-07 21:58:49 +0000 |
---|---|---|
committer | rsuen | 2009-05-07 21:58:49 +0000 |
commit | e456c8b135ec84f82e873fc895982566bdfa8a9a (patch) | |
tree | 527855eaef230cc6e911867796f0777bab8037af /framework | |
parent | 1086359d2efaedd8813143823aa2e36b421efdba (diff) | |
download | org.eclipse.ecf-e456c8b135ec84f82e873fc895982566bdfa8a9a.tar.gz org.eclipse.ecf-e456c8b135ec84f82e873fc895982566bdfa8a9a.tar.xz org.eclipse.ecf-e456c8b135ec84f82e873fc895982566bdfa8a9a.zip |
Bug 275359 [ui] remove use of deprecated methods
Diffstat (limited to 'framework')
2 files changed, 5 insertions, 6 deletions
diff --git a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/perspectives/CommunicationPerspective.java b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/perspectives/CommunicationPerspective.java index b779c76bf..f9e67f69a 100644 --- a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/perspectives/CommunicationPerspective.java +++ b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/perspectives/CommunicationPerspective.java @@ -10,9 +10,7 @@ ******************************************************************************/ package org.eclipse.ecf.internal.ui.perspectives; -import org.eclipse.ui.IFolderLayout; -import org.eclipse.ui.IPageLayout; -import org.eclipse.ui.IPerspectiveFactory; +import org.eclipse.ui.*; public class CommunicationPerspective implements IPerspectiveFactory { @@ -27,7 +25,7 @@ public class CommunicationPerspective implements IPerspectiveFactory { layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");//$NON-NLS-1$ // Add "show views". - layout.addShowViewShortcut(IPageLayout.ID_RES_NAV); + layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER); layout.addShowViewShortcut(IPageLayout.ID_BOOKMARKS); layout.addShowViewShortcut(IPageLayout.ID_OUTLINE); layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET); @@ -42,7 +40,7 @@ public class CommunicationPerspective implements IPerspectiveFactory { // Top left. IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.26f, editorArea); //$NON-NLS-1$ - topLeft.addView(IPageLayout.ID_RES_NAV); + topLeft.addView(IPageLayout.ID_PROJECT_EXPLORER); // Bottom left. IFolderLayout bottomLeft = layout.createFolder("bottomLeft", //$NON-NLS-1$ diff --git a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/wizards/ConfigurationWizardSelectionPage.java b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/wizards/ConfigurationWizardSelectionPage.java index 9018f0647..02d5e1400 100644 --- a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/wizards/ConfigurationWizardSelectionPage.java +++ b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/wizards/ConfigurationWizardSelectionPage.java @@ -37,6 +37,7 @@ import org.eclipse.ui.activities.WorkbenchActivityHelper; import org.eclipse.ui.dialogs.FilteredTree; import org.eclipse.ui.dialogs.PatternFilter; import org.eclipse.ui.model.AdaptableList; +import org.eclipse.ui.model.WorkbenchLabelProvider; import org.eclipse.ui.wizards.IWizardCategory; /** @@ -125,7 +126,7 @@ public class ConfigurationWizardSelectionPage extends WizardSelectionPage { */ private void createFilteredTree(Composite parent) { // Create a FilteredTree for the categories and wizards - FilteredTree filteredTree = new FilteredTree(parent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER, new WizardPatternFilter()); + FilteredTree filteredTree = new FilteredTree(parent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER, new WizardPatternFilter(), false); viewer = filteredTree.getViewer(); filteredTree.setFont(parent.getFont()); |