Changeset 230


Ignore:
Timestamp:
10/03/11 23:14:46 (13 years ago)
Author:
sherbold
Message:
  • extended SWT-GUI with dialogs for editing sequences and adding of assertions

Comment for Revision 229 (comment missing due to Subversive bug):

  • changed de.ugoe.cs.eventbench.assertions.FileEqualsReplay? and de.ugoe.cs.eventbench.assertions.TextEqualsReplay? such that the actual and expected values are now defined via the constructor
  • changed storage method for targets that are found during the parsing of MFC usage log files. If the sequences are stored in the variable "seqsName" the targets are stored in the variable "seqsName_targets"
  • adapted classes in de.ugoe.cs.eventbench.swing to the changes above
  • marked the classes in de.ugoe.cs.eventbench.swing as deprecated as the Swing GUI will not be part of further maintenance. Use the SWT GUI instead.
Location:
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/swt
Files:
6 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/swt/SequencesTabComposite.java

    r195 r230  
    4242                        @Override 
    4343                        public void widgetSelected(SelectionEvent e) { 
    44                                 // TODO implement edit sequences. 
    45                                 MessageBox messageBox = new MessageBox(getShell(), SWT.ICON_INFORMATION); 
    46                                 messageBox.setText("Not implemented!"); 
    47                                 messageBox.setMessage("Sorry! This functionality has not been implemented yet!"); 
    48                                 messageBox.open(); 
     44                                String[] selectedSequences = sequenceList.getSelection(); 
     45                                if( selectedSequences.length==0 ) { 
     46                                        SWTHelpers.noSelectionError(getShell()); 
     47                                }  
     48                                else if(selectedSequences.length>1) { 
     49                                        MessageBox messageBox = new MessageBox(getShell(), SWT.ERROR); 
     50                                        messageBox.setMessage("Only one sequence can be edited at a time!"); 
     51                                        messageBox.setText("Error"); 
     52                                        messageBox.open(); 
     53                                } else { 
     54                                        SequencesDialog sequencesDialog = new SequencesDialog(getShell(), SWT.NONE); 
     55                                        sequencesDialog.open(selectedSequences[0]); 
     56                                } 
    4957                        } 
    5058                }); 
Note: See TracChangeset for help on using the changeset viewer.