Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/OpenNewApplicationWizardAction.java

Issue 8390054: Change the toolbar action New File to New Application to improve the UX of the Dart Editor for th... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « editor/tools/plugins/com.google.dart.tools.deploy/src/com/google/dart/tools/deploy/ApplicationActionBarAdvisor.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « editor/tools/plugins/com.google.dart.tools.deploy/src/com/google/dart/tools/deploy/ApplicationActionBarAdvisor.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698