Ignore:
Timestamp:
02/20/13 14:37:21 (12 years ago)
Author:
sherbold
Message:
  • Fixed bug that crashed the application when opening the GenerateSequencesDialog?. The dialog itself is deprecated, since the sequence generation changed since the creation of the dialog. It needs to be rewritten.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-ui-swt/src/main/java/de/ugoe/cs/autoquest/ui/swt/GenerateSequencesDialog.java

    r927 r1101  
    2525import org.eclipse.swt.widgets.Spinner; 
    2626import org.eclipse.swt.widgets.Label; 
    27 import org.eclipse.ui.forms.widgets.FormToolkit; 
    2827import org.eclipse.swt.layout.GridLayout; 
    2928import org.eclipse.swt.layout.GridData; 
     
    4746    protected Shell shlGenerateSequences; 
    4847    private Text sequencesNameText; 
    49     private final FormToolkit formToolkit = new FormToolkit(Display.getDefault()); 
    5048 
    5149    /** 
     
    158156        maxLengthSpinner.setToolTipText("0 means no limitations"); 
    159157        maxLengthSpinner.setMinimum(1); 
    160  
    161         Button btnGenerate = formToolkit.createButton(shlGenerateSequences, "Generate!", SWT.NONE); 
     158         
     159        Button btnGenerate  = new Button(shlGenerateSequences, SWT.NONE); 
     160        btnGenerate.setText("Generate!"); 
    162161        btnGenerate.addSelectionListener(new SelectionAdapter() { 
    163162            @Override 
     
    213212        }); 
    214213 
    215         Button btnAbort = formToolkit.createButton(shlGenerateSequences, "Abort", SWT.NONE); 
     214        Button btnAbort = new Button(shlGenerateSequences, SWT.NONE); 
     215        btnAbort.setText("Abort"); 
    216216        btnAbort.addSelectionListener(new SelectionAdapter() { 
    217217            @Override 
Note: See TracChangeset for help on using the changeset viewer.