From 18b4e3176b369fd64ff51a41de03c45be5d1e9dc Mon Sep 17 00:00:00 2001 From: rsuen Date: Thu, 7 May 2009 22:24:30 +0000 Subject: Bug 275359 [ui] remove use of deprecated methods --- .../ecf/internal/ui/perspectives/CommunicationPerspective.java | 6 ++++-- .../eclipse/ecf/ui/wizards/ConfigurationWizardSelectionPage.java | 2 +- 2 files changed, 5 insertions(+), 3 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 f9e67f69a..f6f3947c3 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 @@ -25,7 +25,8 @@ public class CommunicationPerspective implements IPerspectiveFactory { layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");//$NON-NLS-1$ // Add "show views". - layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER); + // to be replaced by IPageLayout.ID_PROJECT_EXPLORER + layout.addShowViewShortcut("org.eclipse.ui.navigator.ProjectExplorer"); layout.addShowViewShortcut(IPageLayout.ID_BOOKMARKS); layout.addShowViewShortcut(IPageLayout.ID_OUTLINE); layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET); @@ -40,7 +41,8 @@ public class CommunicationPerspective implements IPerspectiveFactory { // Top left. IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.26f, editorArea); //$NON-NLS-1$ - topLeft.addView(IPageLayout.ID_PROJECT_EXPLORER); + // to be replaced by IPageLayout.ID_PROJECT_EXPLORER + topLeft.addView("org.eclipse.ui.navigator.ProjectExplorer"); // 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 02d5e1400..947e352fc 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 @@ -126,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(), false); + FilteredTree filteredTree = new FilteredTree(parent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER, new WizardPatternFilter()); viewer = filteredTree.getViewer(); filteredTree.setFont(parent.getFont()); -- cgit v1.2.3