Changeset 3815 for devel-tools


Ignore:
Timestamp:
Jun 21, 2008, 5:32:56 PM (12 years ago)
Author:
yura
Message:
  • Refactoring.
Location:
devel-tools/trunk/eclipse/org.refal.rfpdt.ui
Files:
1 deleted
2 edited
4 moved

Legend:

Unmodified
Added
Removed
  • devel-tools/trunk/eclipse/org.refal.rfpdt.ui/plugin.xml

    r3742 r3815  
    2121         point="org.eclipse.ui.actionSets">
    2222      <actionSet
    23             description="Refal Plus  Element Creation Action Set"
     23            description="Refal Plus Element Creation Action Set"
    2424            id="org.refal.rfpdt.ui.rfpElementCreationActionSet"
    2525            label="Refal Plus Element Creation"
    2626            visible="false">
    2727         <action
    28                class="org.refal.rfpdt.ui.wizards.OpenNewRfpModuleWizardAction"
     28               class="org.refal.rfpdt.ui.wizards.NewRfpModuleOpenWizardAction"
    2929               icon="icons/rfp_module.gif"
    30                id="org.refal.rfpdt.ui.action.openNewRfpModuleWizard"
     30               id="org.refal.rfpdt.ui.action.newRfpModuleOpenWizard"
    3131               label="Refal Plus Module"
    3232               toolbarPath="Normal/RfpWizards"
     
    3434         </action>
    3535         <action
    36                class="org.refal.rfpdt.ui.wizards.OpenNewRfpPackageWizardAction"
     36               class="org.refal.rfpdt.ui.wizards.NewRfpPackageOpenWizardAction"
    3737               icon="icons/rfp_newpackage.gif"
    38                id="org.refal.rfpdt.ui.action.openNewRfpPackageWizard"
     38               id="org.refal.rfpdt.ui.action.newRfpPackageOpenWizard"
    3939               label="Refal Plus Package"
    4040               toolbarPath="Normal/RfpWizards"
     
    4242         </action>
    4343         <action
    44                class="org.refal.rfpdt.ui.wizards.OpenNewRfpProjectWizardAction"
     44               class="org.refal.rfpdt.ui.wizards.NewRfpProjectOpenWizardAction"
    4545               disabledIcon="icons/library.png"
    4646               icon="icons/rfp_project.gif"
    47                id="org.refal.rfpdt.ui.action.openNewRfpProjectWizard"
     47               id="org.refal.rfpdt.ui.action.newRfpProjectOpenWizard"
    4848               label="Refal Plus Project"
    4949               toolbarPath="Normal/RfpWizards"
  • devel-tools/trunk/eclipse/org.refal.rfpdt.ui/src/org/refal/rfpdt/ui/wizards/NewRfpModuleOpenWizardAction.java

    r3814 r3815  
    1111import org.eclipse.ui.IWorkbenchWindowActionDelegate;
    1212
    13 public class OpenNewRfpModuleWizardAction extends AbstractOpenWizardAction implements IWorkbenchWindowActionDelegate {
     13public class NewRfpModuleOpenWizardAction extends AbstractOpenWizardAction implements IWorkbenchWindowActionDelegate {
    1414    protected INewWizard createWizard () throws CoreException {
    1515        return new NewRfpModuleWizard();
  • devel-tools/trunk/eclipse/org.refal.rfpdt.ui/src/org/refal/rfpdt/ui/wizards/NewRfpPackageOpenWizardAction.java

    r3814 r3815  
    1111import org.eclipse.ui.IWorkbenchWindowActionDelegate;
    1212
    13 public class OpenNewRfpPackageWizardAction extends AbstractOpenWizardAction implements IWorkbenchWindowActionDelegate {
     13public class NewRfpPackageOpenWizardAction extends AbstractOpenWizardAction implements IWorkbenchWindowActionDelegate {
    1414    protected INewWizard createWizard () throws CoreException {
    1515        return new NewRfpPackageWizard();
  • devel-tools/trunk/eclipse/org.refal.rfpdt.ui/src/org/refal/rfpdt/ui/wizards/NewRfpProjectOpenWizardAction.java

    r3814 r3815  
    1212import org.eclipse.ui.IWorkbenchWindowActionDelegate;
    1313
    14 public class OpenNewRfpProjectWizardAction extends AbstractOpenWizardAction implements IWorkbenchWindowActionDelegate {
     14public class NewRfpProjectOpenWizardAction extends AbstractOpenWizardAction implements IWorkbenchWindowActionDelegate {
    1515    protected INewWizard createWizard () throws CoreException {
    1616        return new NewRfpProjectWizard();
  • devel-tools/trunk/eclipse/org.refal.rfpdt.ui/src/org/refal/rfpdt/ui/wizards/NewRfpProjectOperation.java

    r3814 r3815  
    1919import org.refal.rfpdt.ui.RfpUI;
    2020
    21 public class RfpProjectCreationOperation implements IRunnableWithProgress {
    22 
     21public class NewRfpProjectOperation implements IRunnableWithProgress {
    2322    private String _projectName;
    2423    private String _location;
  • devel-tools/trunk/eclipse/org.refal.rfpdt.ui/src/org/refal/rfpdt/ui/wizards/NewRfpProjectWizard.java

    r3814 r3815  
    1010import org.eclipse.jface.dialogs.MessageDialog;
    1111import org.eclipse.jface.operation.IRunnableWithProgress;
    12 import org.eclipse.jface.resource.ImageDescriptor;
    1312import org.eclipse.jface.viewers.IStructuredSelection;
    1413import org.eclipse.jface.wizard.Wizard;
     
    1615import org.eclipse.ui.IWorkbench;
    1716import org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation;
     17import org.eclipse.ui.dialogs.WizardNewProjectCreationPage;
    1818import org.eclipse.ui.wizards.newresource.BasicNewProjectResourceWizard;
    1919import org.refal.rfpdt.ui.RfpUI;
    2020
    2121public class NewRfpProjectWizard extends Wizard implements INewWizard, IExecutableExtension {
    22 
    23     private ProjectCreationWizardPage page;
     22    private WizardNewProjectCreationPage page;
    2423    private IConfigurationElement configElement;
    25     private RfpProjectCreationOperation fOperation;
     24    private NewRfpProjectOperation fOperation;
    2625
    2726    public NewRfpProjectWizard () {
    2827        super();
    29         fOperation = new RfpProjectCreationOperation();
     28        fOperation = new NewRfpProjectOperation();
     29        // setDefaultPageImageDescriptor(JavaPluginImages.DESC_WIZBAN_NEWPACK);
    3030        setDialogSettings(RfpUI.getDefault().getDialogSettings());
    31         setWindowTitle("Choose project name");
     31        setWindowTitle("New Refal Plus Project");
    3232        setNeedsProgressMonitor(true);
    33     }
    34 
    35     protected ImageDescriptor getBannerImage () {
    36         // TODO Auto-generated method stub
    37         return null;
    38     }
    39 
    40     protected String getPageDescrition () {
    41         return "Create a new Refal Plus project in the workspace";
    42     }
    43 
    44     protected String getPageTitle () {
    45         return "Refal Plus project";
    4633    }
    4734
    4835    public void addPages () {
    4936        super.addPages();
    50         page = new ProjectCreationWizardPage(getPageTitle(), getPageDescrition());
     37        page = new WizardNewProjectCreationPage("ProjectCreationWizardPage");
     38        page.setTitle("Refal Plus Project");
     39        page.setDescription("Create a Refal Plus project in the workspace");
    5140        addPage(page);
    5241    }
    5342
    54     @Override
     43    public void init (final IWorkbench workbench, final IStructuredSelection selection) {}
     44
    5545    public boolean performFinish () {
    5646        fOperation.setProjectName(page.getProjectName());
     
    7161    }
    7262
    73     public void init (final IWorkbench workbench, final IStructuredSelection selection) {
    74         initializePageImageDescriptor();
    75     }
    76 
    7763    /**
    7864     * Stores the configuration element for the wizard. The config element will be used in <code>performFinish</code>
     
    8268            final Object data) {
    8369        this.configElement = configElement;
    84     }
    85 
    86     private void initializePageImageDescriptor () {
    87         ImageDescriptor bannerImage = getBannerImage();
    88         if (bannerImage != null) {
    89             setDefaultPageImageDescriptor(bannerImage);
    90         }
    9170    }
    9271
     
    10382        }
    10483    }
    105 
    10684}
Note: See TracChangeset for help on using the changeset viewer.