Ignore:
Timestamp:
10/11/05 10:22:43 (19 years ago)
Author:
boris
Message:
  • added some tests for new class wizard
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt/src/org/modelica/mdt/NewClassWizard.java

    r61 r64  
    9090public class NewClassWizard extends Wizard implements INewWizard
    9191{
     92    /* key widgets' tags for abbot */
     93    public static final String SOURCE_FOLDER_TAG = "sourceFolderTag";
     94    public static final String CLASS_NAME_TAG = "classNameTag";
     95    public static final String CLASS_TYPE_TAG = "classTypeTag";
     96    public static final String INITIAL_EQUATION_TAG = "initEqTag";
     97    public static final String PARTIAL_CLASS_TAG = "partialTypeTag";
     98    public static final String EXTERNAL_BODY_TAG = "extBodyTag";
    9299   
    93100    public class NewClassPage extends WizardPage
     
    152159            gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL);
    153160            sourceFolder.setLayoutData(gd);
     161            MdtPlugin.tag(sourceFolder, SOURCE_FOLDER_TAG);
    154162            setSourceFolder(selection);
    155163           
     
    189197            gd.horizontalSpan = 2;
    190198            className.setLayoutData(gd);
     199            MdtPlugin.tag(className, CLASS_NAME_TAG);
    191200
    192201            className.addModifyListener(new ModifyListener()
     
    222231            classType.setVisibleItemCount(7);
    223232            classType.select(0);           
    224                    
     233            MdtPlugin.tag(classType, CLASS_TYPE_TAG);
     234           
    225235            gd = new GridData();
    226236            gd.horizontalAlignment = GridData.BEGINNING;
     
    268278            initialEquation = new Button(composite, SWT.CHECK);
    269279            initialEquation.setText("include initial equation block");
     280            MdtPlugin.tag(initialEquation, INITIAL_EQUATION_TAG);
    270281           
    271282            gd = new GridData();
     
    283294            gd.horizontalSpan = 2;
    284295            partialClass.setLayoutData(gd);
     296            MdtPlugin.tag(partialClass, PARTIAL_CLASS_TAG);
    285297
    286298            /* external body */
     
    289301            externalBody.setText("have external body");
    290302            externalBody.setEnabled(false);
     303            MdtPlugin.tag(externalBody, EXTERNAL_BODY_TAG);
    291304           
    292305            gd = new GridData();
Note: See TracChangeset for help on using the changeset viewer.