Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/OpenNewApplicationWizardAction.java |
=================================================================== |
--- editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/OpenNewApplicationWizardAction.java (revision 724) |
+++ editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/OpenNewApplicationWizardAction.java (working copy) |
@@ -21,6 +21,7 @@ |
import org.eclipse.core.runtime.CoreException; |
import org.eclipse.ui.INewWizard; |
import org.eclipse.ui.PlatformUI; |
+import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction; |
/** |
* Action that opens the new file wizard. |
@@ -28,8 +29,11 @@ |
* @see NewFileWizard |
* @see NewFileWizardPage |
*/ |
-public class OpenNewApplicationWizardAction extends AbstractOpenWizardAction { |
+public class OpenNewApplicationWizardAction extends AbstractOpenWizardAction implements |
+ IWorkbenchAction { |
+ private static final String ID = "com.google.dart.tools.ui.app.new"; |
+ |
/** |
* Creates an instance of the <code>OpenNewDartApplicationWizardAction</code>. |
*/ |
@@ -38,10 +42,16 @@ |
setDescription(ActionMessages.OpenNewApplication2WizardAction_description); |
setToolTipText(ActionMessages.OpenNewApplication2WizardAction_tooltip); |
//TODO (pquitslund) add an image |
+ setId(ID); //$NON-NLS-N$ |
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.OPEN_ACTION); |
} |
@Override |
+ public void dispose() { |
+ |
+ } |
+ |
+ @Override |
protected final INewWizard createWizard() throws CoreException { |
return new NewApplicationWizard(); |
} |