plugins/org.symbian.tools.wrttools.product/src/org/symbian/tools/wrttools/product/actions/NewWRTProjectAction.java
author Eugene Ostroukhov <eugeneo@symbian.org>
Thu, 02 Sep 2010 15:18:58 -0700
changeset 484 f5df819c1852
parent 475 77edd0cbdfe0
child 485 df4f55e8569e
permissions -rw-r--r--
Checkstyle was used to review coding conventions
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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.swt.widgets.Shell;
eb7d9e33e288 Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff changeset
     7
import org.eclipse.ui.INewWizard;
eb7d9e33e288 Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff changeset
     8
import org.eclipse.ui.IWorkbenchWindow;
eb7d9e33e288 Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff changeset
     9
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
eb7d9e33e288 Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff changeset
    10
import org.eclipse.wst.jsdt.ui.actions.AbstractOpenWizardAction;
475
77edd0cbdfe0 Removed old new project wizard
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 470
diff changeset
    11
import org.symbian.tools.tmw.ui.project.NewApplicationWizard;
39
eb7d9e33e288 Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff changeset
    12
484
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 475
diff changeset
    13
public class NewWRTProjectAction extends AbstractOpenWizardAction implements IWorkbenchWindowActionDelegate {
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 475
diff changeset
    14
    public void init(IWorkbenchWindow window) {
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 475
diff changeset
    15
    }
39
eb7d9e33e288 Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff changeset
    16
484
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 475
diff changeset
    17
    public void run(IAction action) {
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 475
diff changeset
    18
        run();
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 475
diff changeset
    19
    }
39
eb7d9e33e288 Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff changeset
    20
484
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 475
diff changeset
    21
    public void selectionChanged(IAction action, ISelection selection) {
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 475
diff changeset
    22
    }
39
eb7d9e33e288 Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff changeset
    23
484
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 475
diff changeset
    24
    @Override
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 475
diff changeset
    25
    protected INewWizard createWizard() throws CoreException {
475
77edd0cbdfe0 Removed old new project wizard
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 470
diff changeset
    26
        return new NewApplicationWizard();
484
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 475
diff changeset
    27
    }
39
eb7d9e33e288 Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff changeset
    28
484
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 475
diff changeset
    29
    public void dispose() {
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 475
diff changeset
    30
    }
39
eb7d9e33e288 Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff changeset
    31
484
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 475
diff changeset
    32
    @Override
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 475
diff changeset
    33
    protected boolean doCreateProjectFirstOnEmptyWorkspace(Shell shell) {
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 475
diff changeset
    34
        return true;
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 475
diff changeset
    35
    }
39
eb7d9e33e288 Integration with previewer code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff changeset
    36
}