8 import org.eclipse.ui.IWorkbenchWindowActionDelegate; |
8 import org.eclipse.ui.IWorkbenchWindowActionDelegate; |
9 import org.eclipse.wst.jsdt.internal.ui.wizards.NewJSWizard; |
9 import org.eclipse.wst.jsdt.internal.ui.wizards.NewJSWizard; |
10 import org.eclipse.wst.jsdt.ui.actions.AbstractOpenWizardAction; |
10 import org.eclipse.wst.jsdt.ui.actions.AbstractOpenWizardAction; |
11 |
11 |
12 @SuppressWarnings("restriction") |
12 @SuppressWarnings("restriction") |
13 public class NewJSFileAction extends AbstractOpenWizardAction implements |
13 public class NewJSFileAction extends AbstractOpenWizardAction implements IWorkbenchWindowActionDelegate { |
14 IWorkbenchWindowActionDelegate { |
|
15 |
14 |
16 @Override |
15 @Override |
17 protected INewWizard createWizard() throws CoreException { |
16 protected INewWizard createWizard() throws CoreException { |
18 return new NewJSWizard(); |
17 return new NewJSWizard(); |
19 } |
18 } |
20 |
19 |
21 public void dispose() { |
20 public void dispose() { |
22 // TODO Auto-generated method stub |
21 // TODO Auto-generated method stub |
23 |
22 |
24 } |
23 } |
25 |
24 |
26 public void init(IWorkbenchWindow window) { |
25 public void init(IWorkbenchWindow window) { |
27 // TODO Auto-generated method stub |
26 // TODO Auto-generated method stub |
28 |
27 |
29 } |
28 } |
30 |
29 |
31 public void run(IAction action) { |
30 public void run(IAction action) { |
32 run(); |
31 run(); |
33 } |
32 } |
34 |
33 |
35 public void selectionChanged(IAction action, ISelection selection) { |
34 public void selectionChanged(IAction action, ISelection selection) { |
36 // TODO Auto-generated method stub |
35 // TODO Auto-generated method stub |
37 |
36 |
38 } |
37 } |
39 |
38 |
40 } |
39 } |