1 11 12 package org.eclipse.jdt.ui.actions; 13 14 import org.eclipse.core.runtime.CoreException; 15 16 import org.eclipse.swt.widgets.Shell; 17 18 import org.eclipse.jface.viewers.IStructuredSelection; 19 20 import org.eclipse.ui.INewWizard; 21 import org.eclipse.ui.PlatformUI; 22 23 import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; 24 import org.eclipse.jdt.internal.ui.JavaPlugin; 25 import org.eclipse.jdt.internal.ui.JavaPluginImages; 26 import org.eclipse.jdt.internal.ui.actions.ActionMessages; 27 import org.eclipse.jdt.internal.ui.wizards.JavaProjectWizard; 28 29 40 public class OpenNewJavaProjectWizardAction extends AbstractOpenWizardAction { 41 42 45 public OpenNewJavaProjectWizardAction() { 46 setText(ActionMessages.OpenNewJavaProjectWizardAction_text); 47 setDescription(ActionMessages.OpenNewJavaProjectWizardAction_description); 48 setToolTipText(ActionMessages.OpenNewJavaProjectWizardAction_tooltip); 49 setImageDescriptor(JavaPluginImages.DESC_WIZBAN_NEWJPRJ); 50 PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.OPEN_PROJECT_WIZARD_ACTION); 51 setShell(JavaPlugin.getActiveWorkbenchShell()); 52 } 53 54 57 protected final INewWizard createWizard() throws CoreException { 58 return new JavaProjectWizard(); 59 } 60 61 64 protected boolean doCreateProjectFirstOnEmptyWorkspace(Shell shell) { 65 return true; } 67 } 68 | Popular Tags |