Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 154887
Collapse All | Expand All

(-)src/org/eclipse/pde/internal/ui/wizards/templates/MailTemplate.java (-1 / +1 lines)
Lines 103-109 Link Here
103
		createApplicationExtension();
103
		createApplicationExtension();
104
		createPerspectiveExtension();
104
		createPerspectiveExtension();
105
		createViewExtension();
105
		createViewExtension();
106
		if ("3.2".compareTo(model.getPluginBase().getSchemaVersion()) > 0) {
106
		if ("3.2".compareTo(model.getPluginBase().getSchemaVersion()) > 0) { //$NON-NLS-1$
107
            createCommandExtension(false);
107
            createCommandExtension(false);
108
            createBindingsExtension();
108
            createBindingsExtension();
109
        } else {
109
        } else {
(-)plugin.properties (+3 lines)
Lines 45-50 Link Here
45
new.fragmentProject.description=Create a Plug-in Fragment Project
45
new.fragmentProject.description=Create a Plug-in Fragment Project
46
new.schemaFile.name = Extension Point Schema
46
new.schemaFile.name = Extension Point Schema
47
new.schemaFile.description = Create an Extension Point Schema File
47
new.schemaFile.description = Create an Extension Point Schema File
48
new.cheat.sheet.description = Create a Cheat Sheet File
48
new.convert.name= Convert Projects to Plug-in Projects...
49
new.convert.name= Convert Projects to Plug-in Projects...
49
new.feature.name=Feature Project
50
new.feature.name=Feature Project
50
new.feature.description=Create a Feature project
51
new.feature.description=Create a Feature project
Lines 466-468 Link Here
466
While most users will not be doing any release engineering, the theme allows for a very logical \
467
While most users will not be doing any release engineering, the theme allows for a very logical \
467
layout of the perspective elements and demonstrates how to access the various team and CVS \
468
layout of the perspective elements and demonstrates how to access the various team and CVS \
468
components from within a perspective. 
469
components from within a perspective. 
470
471
new.cheat.sheet = Cheat Sheet
(-)plugin.xml (+10 lines)
Lines 182-187 Link Here
182
            %wizard.profile.name
182
            %wizard.profile.name
183
         </description>
183
         </description>
184
      </wizard>
184
      </wizard>
185
      <wizard
186
            category="org.eclipse.pde.PDE"
187
            class="org.eclipse.pde.internal.ui.wizards.cheatsheet.NewCheatSheetFileWizard"
188
            icon="icons/obj16/cheatsheet_composite_obj.gif"
189
            id="org.eclipse.pde.ui.NewCheatSheetWizard"
190
            name="%new.cheat.sheet">
191
         <description>
192
         	%new.cheat.sheet.description
193
         </description>
194
      </wizard>
185
   </extension>
195
   </extension>
186
   <extension
196
   <extension
187
         point="org.eclipse.ui.importWizards">
197
         point="org.eclipse.ui.importWizards">
(-)src/org/eclipse/pde/internal/ui/pderesources.properties (+10 lines)
Lines 1045-1050 Link Here
1045
BaseExportWizardPage_packageJARs=&Package plug-ins as individual JAR archives
1045
BaseExportWizardPage_packageJARs=&Package plug-ins as individual JAR archives
1046
BaseExportWizard_wtitle=Export
1046
BaseExportWizard_wtitle=Export
1047
BaseExportWizardPage_fPackageJARs=&Package as individual JAR archives (required for JNLP and update sites)
1047
BaseExportWizardPage_fPackageJARs=&Package as individual JAR archives (required for JNLP and update sites)
1048
BaseCheatSheetCreationOperation_0=Creating cheat sheet ...
1048
BaseExportWizardPage_compilerOptions=Compiler Options
1049
BaseExportWizardPage_compilerOptions=Compiler Options
1049
BaseFeatureSpecPage_patchGroup_title=Properties of feature being patched
1050
BaseFeatureSpecPage_patchGroup_title=Properties of feature being patched
1050
BaseImportWizardSecondPage_autobuild=Build projects after the import operation completes
1051
BaseImportWizardSecondPage_autobuild=Build projects after the import operation completes
Lines 1092-1097 Link Here
1092
1093
1093
NewSchemaFileWizard_wtitle = New Extension Point Schema File
1094
NewSchemaFileWizard_wtitle = New Extension Point Schema File
1094
NewSchemaFileWizard_title = Extension Point Schema Properties
1095
NewSchemaFileWizard_title = Extension Point Schema Properties
1096
NewCheatSheetFileWizard_0=New Cheat Sheet File
1095
NewSchemaFileWizard_desc = Specify properties of the extension point schema file.
1097
NewSchemaFileWizard_desc = Specify properties of the extension point schema file.
1096
1098
1097
BaseExtensionPointMainPage_missingExtensionPointID = Specify a valid extension point ID.  No extension point ID specified.
1099
BaseExtensionPointMainPage_missingExtensionPointID = Specify a valid extension point ID.  No extension point ID specified.
Lines 2550-2552 Link Here
2550
OSGiPreferencesServiceTemplate_pageTitle = OSGi Preferences Service Example
2552
OSGiPreferencesServiceTemplate_pageTitle = OSGi Preferences Service Example
2551
OSGiPreferencesServiceTemplate_pageDescription = Store your favourite color in the OSGi Preferences service.
2553
OSGiPreferencesServiceTemplate_pageDescription = Store your favourite color in the OSGi Preferences service.
2552
OSGiPreferencesServiceTemplate_value = lavender
2554
OSGiPreferencesServiceTemplate_value = lavender
2555
CheatSheetFileWizardPage_1=Cheat Sheet
2556
CheatSheetFileWizardPage_2=Create a new simple cheat sheet or composite cheat sheet.
2557
CheatSheetFileWizardPage_4=Cheat Sheet Type
2558
CheatSheetFileWizardPage_5=Simple Cheat Sheet
2559
CheatSheetFileWizardPage_6=Select this option if you would like to create a simple cheat sheet to help guide users through a series of steps in order to achieve some overall goal.
2560
CheatSheetFileWizardPage_7=Composite Cheat Sheet
2561
CheatSheetFileWizardPage_8=Select this option if you would like to create a composite cheat sheet to help guide users through larger problems by breaking that problem into smaller tasks represented by simple cheat sheets.
2562
CheatSheetFileWizardPage_9=The file name must end with '
(-)src/org/eclipse/pde/internal/ui/IPDEUIConstants.java (+2 lines)
Lines 21-26 Link Here
21
	String BUILD_EDITOR_ID = PLUGIN_ID + ".buildEditor"; //$NON-NLS-1$
21
	String BUILD_EDITOR_ID = PLUGIN_ID + ".buildEditor"; //$NON-NLS-1$
22
	String SCHEMA_EDITOR_ID = PLUGIN_ID + ".schemaEditor"; //$NON-NLS-1$
22
	String SCHEMA_EDITOR_ID = PLUGIN_ID + ".schemaEditor"; //$NON-NLS-1$
23
	String PRODUCT_EDITOR_ID = PLUGIN_ID + ".productEditor"; //$NON-NLS-1$
23
	String PRODUCT_EDITOR_ID = PLUGIN_ID + ".productEditor"; //$NON-NLS-1$
24
	String SIMPLE_CHEAT_SHEET_EDITOR_ID = PLUGIN_ID + ".simpleCheatSheetEditor"; //$NON-NLS-1$
25
	String COMPOSITE_CHEAT_SHEET_EDITOR_ID = PLUGIN_ID + ".compositeCheatSheetEditor"; //$NON-NLS-1$
24
	String TARGET_EDITOR_ID = PLUGIN_ID + ".targetEditor"; //$NON-NLS-1$
26
	String TARGET_EDITOR_ID = PLUGIN_ID + ".targetEditor"; //$NON-NLS-1$
25
	String PLUGINS_VIEW_ID = "org.eclipse.pde.ui.PluginsView"; //$NON-NLS-1$
27
	String PLUGINS_VIEW_ID = "org.eclipse.pde.ui.PluginsView"; //$NON-NLS-1$
26
	String DEPENDENCIES_VIEW_ID = "org.eclipse.pde.ui.DependenciesView"; //$NON-NLS-1$
28
	String DEPENDENCIES_VIEW_ID = "org.eclipse.pde.ui.DependenciesView"; //$NON-NLS-1$
(-)src/org/eclipse/pde/internal/ui/PDEUIMessages.java (+20 lines)
Lines 17-22 Link Here
17
17
18
	public static String AddLibraryDialog_nospaces;
18
	public static String AddLibraryDialog_nospaces;
19
19
20
	public static String BaseCheatSheetCreationOperation_0;
21
22
	public static String CheatSheetFileWizardPage_1;
23
24
	public static String CheatSheetFileWizardPage_2;
25
26
	public static String CheatSheetFileWizardPage_4;
27
28
	public static String CheatSheetFileWizardPage_5;
29
30
	public static String CheatSheetFileWizardPage_6;
31
32
	public static String CheatSheetFileWizardPage_7;
33
34
	public static String CheatSheetFileWizardPage_8;
35
36
	public static String CheatSheetFileWizardPage_9;
37
20
	public static String CompilersConfigurationTab_incompatEnv;
38
	public static String CompilersConfigurationTab_incompatEnv;
21
39
22
	public static String ContentSection_addDialogButtonLabel;
40
	public static String ContentSection_addDialogButtonLabel;
Lines 57-62 Link Here
57
75
58
	public static String MissingResourcePage_unableToOpenFull;
76
	public static String MissingResourcePage_unableToOpenFull;
59
77
78
	public static String NewCheatSheetFileWizard_0;
79
60
	public static String RemoveUnknownExecEnvironments_label;
80
	public static String RemoveUnknownExecEnvironments_label;
61
81
62
	public static String RevertUnsupportSingletonResolution_desc;
82
	public static String RevertUnsupportSingletonResolution_desc;
(-)src/org/eclipse/pde/internal/ui/wizards/cheatsheet/CheatSheetFileWizardPage.java (+163 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2006 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
12
package org.eclipse.pde.internal.ui.wizards.cheatsheet;
13
14
import org.eclipse.core.runtime.IStatus;
15
import org.eclipse.core.runtime.Status;
16
import org.eclipse.jface.dialogs.Dialog;
17
import org.eclipse.jface.viewers.IStructuredSelection;
18
import org.eclipse.pde.internal.ui.PDEPlugin;
19
import org.eclipse.pde.internal.ui.PDEUIMessages;
20
import org.eclipse.swt.SWT;
21
import org.eclipse.swt.events.SelectionAdapter;
22
import org.eclipse.swt.events.SelectionEvent;
23
import org.eclipse.swt.layout.GridData;
24
import org.eclipse.swt.layout.GridLayout;
25
import org.eclipse.swt.widgets.Button;
26
import org.eclipse.swt.widgets.Composite;
27
import org.eclipse.swt.widgets.Group;
28
import org.eclipse.swt.widgets.Label;
29
import org.eclipse.ui.dialogs.WizardNewFileCreationPage;
30
31
/**
32
 * CheatSheetFileWizardPage
33
 *
34
 */
35
public class CheatSheetFileWizardPage extends WizardNewFileCreationPage {
36
37
	private Button fSimpleCheatSheetButton;
38
	
39
	private Button fCompositeCheatSheetButton;
40
	
41
	private Group fGroup;
42
	
43
	private static final String F_FILE_EXTENSION = ".xml"; //$NON-NLS-1$
44
	
45
	public static final int F_SIMPLE_CHEAT_SHEET = 0;
46
	
47
	public static final int F_COMPOSITE_CHEAT_SHEET = 1;
48
	
49
	/**
50
	 * @param pageName
51
	 * @param selection
52
	 */
53
	public CheatSheetFileWizardPage(String pageName,
54
			IStructuredSelection selection) {
55
		super(pageName, selection);
56
		setTitle(PDEUIMessages.CheatSheetFileWizardPage_1);
57
		setDescription(PDEUIMessages.CheatSheetFileWizardPage_2);
58
	}
59
60
	/**
61
	 * @return
62
	 */
63
	public int getCheatSheetType() {
64
		if (fSimpleCheatSheetButton.getSelection()) {
65
			return F_SIMPLE_CHEAT_SHEET;
66
		} else if (fCompositeCheatSheetButton.getSelection()) {
67
			return F_COMPOSITE_CHEAT_SHEET;
68
		}
69
		// Neither selected. Unknown type
70
		return -1;
71
	}
72
	
73
	/* (non-Javadoc)
74
	 * @see org.eclipse.ui.dialogs.WizardNewFileCreationPage#createAdvancedControls(org.eclipse.swt.widgets.Composite)
75
	 */
76
	protected void createAdvancedControls(Composite parent) {
77
78
		// Cheat Sheet Group
79
		fGroup = new Group(parent, SWT.NONE);
80
		fGroup.setText(PDEUIMessages.CheatSheetFileWizardPage_4); 
81
		fGroup.setLayout(new GridLayout(1, false));
82
		fGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));		
83
		
84
		// Simple Cheat Sheet Button
85
		fSimpleCheatSheetButton = new Button(fGroup, SWT.RADIO);
86
		fSimpleCheatSheetButton.setText(PDEUIMessages.CheatSheetFileWizardPage_5); 
87
		fSimpleCheatSheetButton.setSelection(true);
88
		fSimpleCheatSheetButton.addSelectionListener(new SelectionAdapter() {
89
			public void widgetSelected(SelectionEvent e) {
90
                getWizard().getContainer().updateButtons();
91
			}
92
		});
93
		
94
		// Simple Cheat Sheet Description Label
95
		final Label simpleCSText = new Label(fGroup, SWT.WRAP);
96
		simpleCSText.setText(PDEUIMessages.CheatSheetFileWizardPage_6);
97
		GridData gd = new GridData(GridData.FILL_HORIZONTAL);
98
		gd.widthHint = 100;
99
		simpleCSText.setLayoutData(gd);
100
		
101
		// Spacer
102
		new Label(fGroup, SWT.NULL);
103
		
104
		// Composite Cheat Sheet Button
105
		fCompositeCheatSheetButton = new Button(fGroup, SWT.RADIO);
106
		fCompositeCheatSheetButton.setSelection(false);
107
		fCompositeCheatSheetButton
108
				.setText(PDEUIMessages.CheatSheetFileWizardPage_7); 
109
		fCompositeCheatSheetButton.addSelectionListener(new SelectionAdapter() {
110
			public void widgetSelected(SelectionEvent e) {
111
                getWizard().getContainer().updateButtons();
112
			}
113
		});		
114
115
		// Composite Cheat Sheet Description Label
116
		final Label compositeCSText = new Label(fGroup, SWT.WRAP);
117
		compositeCSText.setText(PDEUIMessages.CheatSheetFileWizardPage_8);
118
		gd = new GridData(GridData.FILL_HORIZONTAL);
119
		gd.widthHint = 100;
120
		compositeCSText.setLayoutData(gd);
121
	}
122
123
	/* (non-Javadoc)
124
	 * @see org.eclipse.ui.dialogs.WizardNewFileCreationPage#validatePage()
125
	 */
126
	protected boolean validatePage() {
127
		// Verify the filename ends with an XML extension
128
		if (!getFileName().trim().endsWith(F_FILE_EXTENSION)) { 
129
			setErrorMessage(PDEUIMessages.CheatSheetFileWizardPage_9
130
					+ F_FILE_EXTENSION + "'."); //$NON-NLS-1$
131
			return false;
132
		}
133
		// Verify that the name portion of the filename is not empty
134
		if (getFileName().trim().length() <= F_FILE_EXTENSION.length()) {
135
			return false;
136
		}
137
		return super.validatePage();
138
	}
139
	
140
	/* (non-Javadoc)
141
	 * @see org.eclipse.ui.dialogs.WizardNewFileCreationPage#validateLinkedResource()
142
	 */
143
	protected IStatus validateLinkedResource() {
144
		return new Status(IStatus.OK, PDEPlugin.getPluginId(), IStatus.OK,
145
				"", null); //$NON-NLS-1$
146
	}
147
148
	/* (non-Javadoc)
149
	 * @see org.eclipse.ui.dialogs.WizardNewFileCreationPage#createControl(org.eclipse.swt.widgets.Composite)
150
	 */
151
	public void createControl(Composite parent) {
152
		super.createControl(parent);
153
		Dialog.applyDialogFont(fGroup);
154
		setFileName(F_FILE_EXTENSION);
155
	}
156
157
	/* (non-Javadoc)
158
	 * @see org.eclipse.ui.dialogs.WizardNewFileCreationPage#createLinkTarget()
159
	 */
160
	protected void createLinkTarget() {
161
		// NOOP
162
	}
163
}
(-)src/org/eclipse/pde/internal/ui/wizards/cheatsheet/NewCheatSheetFileWizard.java (+95 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2006 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
12
package org.eclipse.pde.internal.ui.wizards.cheatsheet;
13
14
import java.lang.reflect.InvocationTargetException;
15
16
import org.eclipse.core.resources.IFile;
17
import org.eclipse.jface.operation.IRunnableWithProgress;
18
import org.eclipse.jface.viewers.IStructuredSelection;
19
import org.eclipse.pde.internal.ui.PDEPlugin;
20
import org.eclipse.pde.internal.ui.PDEPluginImages;
21
import org.eclipse.pde.internal.ui.PDEUIMessages;
22
import org.eclipse.ui.INewWizard;
23
import org.eclipse.ui.IWorkbench;
24
import org.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard;
25
26
/**
27
 * NewCheatSheetWizard
28
 *
29
 */
30
public class NewCheatSheetFileWizard extends BasicNewFileResourceWizard implements INewWizard {
31
32
	private CheatSheetFileWizardPage fMainPage;
33
	
34
	/**
35
	 * 
36
	 */
37
	public NewCheatSheetFileWizard() {
38
		super();
39
	}
40
41
	/* (non-Javadoc)
42
	 * @see org.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard#addPages()
43
	 */
44
	public void addPages() {
45
		fMainPage = new CheatSheetFileWizardPage("cheatsheet", getSelection()); //$NON-NLS-1$
46
		addPage(fMainPage);
47
	}
48
49
	/* (non-Javadoc)
50
	 * @see org.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
51
	 */
52
	public void init(IWorkbench workbench, IStructuredSelection currentSelection) {
53
        super.init(workbench, currentSelection);
54
        setWindowTitle(PDEUIMessages.NewCheatSheetFileWizard_0);
55
        setNeedsProgressMonitor(true);
56
	}
57
	
58
	/* (non-Javadoc)
59
	 * @see org.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard#initializeDefaultPageImageDescriptor()
60
	 */
61
	protected void initializeDefaultPageImageDescriptor() {
62
		// TODO: MP: Update with proper image
63
		setDefaultPageImageDescriptor(PDEPluginImages.DESC_PRODUCT_WIZ);
64
	}
65
	
66
	/* (non-Javadoc)
67
	 * @see org.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard#performFinish()
68
	 */
69
	public boolean performFinish() {
70
		try {
71
			getContainer().run(false, true, getOperation());
72
		} catch (InvocationTargetException e) {
73
			PDEPlugin.logException(e);
74
			return false;
75
		} catch (InterruptedException e) {
76
			return false;
77
		}
78
		return true;
79
	}
80
	
81
	/**
82
	 * @return
83
	 */
84
	private IRunnableWithProgress getOperation() {
85
        IFile file = fMainPage.createNewFile();
86
		int option = fMainPage.getCheatSheetType();
87
		if (option == CheatSheetFileWizardPage.F_SIMPLE_CHEAT_SHEET) {
88
			// TODO: MP: Do specific operation for simple cheat sheet
89
		} else if (option == CheatSheetFileWizardPage.F_COMPOSITE_CHEAT_SHEET) {
90
			// TODO: MP: Do specific operation for composite cheat sheet
91
		}
92
		// TODO: MP: Revisit when cheat sheet model is complete
93
		return new BaseCheatSheetCreationOperation(file);
94
	}	
95
}
(-)src/org/eclipse/pde/internal/ui/wizards/cheatsheet/BaseCheatSheetCreationOperation.java (+97 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2006 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
12
package org.eclipse.pde.internal.ui.wizards.cheatsheet;
13
14
import java.lang.reflect.InvocationTargetException;
15
16
import org.eclipse.core.resources.IFile;
17
import org.eclipse.core.runtime.CoreException;
18
import org.eclipse.core.runtime.IProgressMonitor;
19
import org.eclipse.core.runtime.jobs.ISchedulingRule;
20
import org.eclipse.jface.viewers.ISelection;
21
import org.eclipse.jface.viewers.StructuredSelection;
22
import org.eclipse.pde.internal.ui.PDEPlugin;
23
import org.eclipse.pde.internal.ui.PDEUIMessages;
24
import org.eclipse.swt.widgets.Display;
25
import org.eclipse.ui.IWorkbenchPage;
26
import org.eclipse.ui.IWorkbenchPart;
27
import org.eclipse.ui.IWorkbenchWindow;
28
import org.eclipse.ui.PartInitException;
29
import org.eclipse.ui.actions.WorkspaceModifyOperation;
30
import org.eclipse.ui.ide.IDE;
31
import org.eclipse.ui.part.ISetSelectionTarget;
32
33
/**
34
 * BaseCheatSheetCreationOperation
35
 *
36
 */
37
public class BaseCheatSheetCreationOperation extends WorkspaceModifyOperation {
38
39
	private IFile fFile;
40
	
41
	/**
42
	 * 
43
	 */
44
	public BaseCheatSheetCreationOperation(IFile file) {
45
		fFile = file;
46
	}
47
48
	/**
49
	 * @param rule
50
	 */
51
	public BaseCheatSheetCreationOperation(ISchedulingRule rule) {
52
		super(rule);
53
	}
54
55
	/* (non-Javadoc)
56
	 * @see org.eclipse.ui.actions.WorkspaceModifyOperation#execute(org.eclipse.core.runtime.IProgressMonitor)
57
	 */
58
	protected void execute(IProgressMonitor monitor) throws CoreException,
59
			InvocationTargetException, InterruptedException {
60
		monitor.beginTask(PDEUIMessages.BaseCheatSheetCreationOperation_0, 2); 
61
		// TODO: MP: Create file content when cheat sheet editor model is complete
62
		//createContent();
63
		monitor.worked(1);
64
        openFile();
65
        monitor.done();
66
	}
67
	
68
	/**
69
	 * 
70
	 */
71
	private void openFile() {
72
		Display.getCurrent().asyncExec(new Runnable() {
73
			public void run() {
74
				IWorkbenchWindow window = PDEPlugin.getActiveWorkbenchWindow();
75
				if (window == null) {
76
					return;
77
				}
78
				IWorkbenchPage page = window.getActivePage();
79
				if ((page == null) || 
80
						!fFile.exists()) {
81
					return;
82
				}
83
				IWorkbenchPart focusPart = page.getActivePart();
84
				if (focusPart instanceof ISetSelectionTarget) {
85
					ISelection selection = new StructuredSelection(fFile);
86
					((ISetSelectionTarget) focusPart).selectReveal(selection);
87
				}
88
				try {
89
					// TODO: MP: Update when cheat sheet editor is complete
90
					IDE.openEditor(page, fFile, "org.eclipse.ui.DefaultTextEditor"); //$NON-NLS-1$
91
				} catch (PartInitException e) {
92
					// Ignore
93
				}
94
			}
95
		});
96
	}	
97
}

Return to bug 154887