1 11 12 package org.eclipse.jdt.ui.actions; 13 14 import org.eclipse.core.runtime.CoreException; 15 16 import org.eclipse.jface.viewers.IStructuredSelection; 17 18 import org.eclipse.ui.INewWizard; 19 import org.eclipse.ui.PlatformUI; 20 21 import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; 22 import org.eclipse.jdt.internal.ui.JavaPluginImages; 23 import org.eclipse.jdt.internal.ui.actions.ActionMessages; 24 import org.eclipse.jdt.internal.ui.wizards.NewPackageCreationWizard; 25 26 37 public class OpenNewPackageWizardAction extends AbstractOpenWizardAction { 38 39 42 public OpenNewPackageWizardAction() { 43 setText(ActionMessages.OpenNewPackageWizardAction_text); 44 setDescription(ActionMessages.OpenNewPackageWizardAction_description); 45 setToolTipText(ActionMessages.OpenNewPackageWizardAction_tooltip); 46 setImageDescriptor(JavaPluginImages.DESC_WIZBAN_NEWPACK); 47 PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.OPEN_PACKAGE_WIZARD_ACTION); 48 } 49 50 53 protected final INewWizard createWizard() throws CoreException { 54 return new NewPackageCreationWizard(); 55 } 56 } 57 | Popular Tags |