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.NewSourceFolderCreationWizard; 25 26 37 public class OpenNewSourceFolderWizardAction extends AbstractOpenWizardAction { 38 39 42 public OpenNewSourceFolderWizardAction() { 43 setText(ActionMessages.OpenNewSourceFolderWizardAction_text); 44 setDescription(ActionMessages.OpenNewSourceFolderWizardAction_description); 45 setToolTipText(ActionMessages.OpenNewSourceFolderWizardAction_tooltip); 46 setImageDescriptor(JavaPluginImages.DESC_WIZBAN_NEWSRCFOLDR); 47 PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.OPEN_SOURCEFOLDER_WIZARD_ACTION); 48 } 49 50 53 protected final INewWizard createWizard() throws CoreException { 54 return new NewSourceFolderCreationWizard(); 55 } 56 } 57 | Popular Tags |