author | Eugene Ostroukhov <eostroukhov@gmail.com> |
Thu, 28 Jan 2010 11:27:14 -0800 | |
changeset 56 | 22f918ed49f7 |
parent 39 | eb7d9e33e288 |
child 119 | be293233cdde |
permissions | -rw-r--r-- |
39
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
1 |
package org.symbian.tools.wrttools.product.actions; |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
2 |
|
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
3 |
import org.eclipse.core.runtime.CoreException; |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
4 |
import org.eclipse.jface.action.IAction; |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
5 |
import org.eclipse.jface.viewers.ISelection; |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
6 |
import org.eclipse.ui.INewWizard; |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
7 |
import org.eclipse.ui.IWorkbenchWindow; |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
8 |
import org.eclipse.ui.IWorkbenchWindowActionDelegate; |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
9 |
import org.eclipse.wst.jsdt.internal.ui.wizards.NewJSWizard; |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
10 |
import org.eclipse.wst.jsdt.ui.actions.AbstractOpenWizardAction; |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
11 |
|
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
12 |
public class NewJSFileAction extends AbstractOpenWizardAction implements |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
13 |
IWorkbenchWindowActionDelegate { |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
14 |
|
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
15 |
@SuppressWarnings("restriction") |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
16 |
@Override |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
17 |
protected INewWizard createWizard() throws CoreException { |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
18 |
return new NewJSWizard(); |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
19 |
} |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
20 |
|
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
21 |
public void dispose() { |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
22 |
// TODO Auto-generated method stub |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
23 |
|
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
24 |
} |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
25 |
|
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
26 |
public void init(IWorkbenchWindow window) { |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
27 |
// TODO Auto-generated method stub |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
28 |
|
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
29 |
} |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
30 |
|
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
31 |
public void run(IAction action) { |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
32 |
run(); |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
33 |
} |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
34 |
|
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
35 |
public void selectionChanged(IAction action, ISelection selection) { |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
36 |
// TODO Auto-generated method stub |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
37 |
|
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
38 |
} |
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
39 |
|
eb7d9e33e288
Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
40 |
} |