Ignore:
Timestamp:
09/03/12 10:57:43 (12 years ago)
Author:
sherbold
Message:
  • added command cleanupKeyInteractions to handle invalid KeyPressed/KeyReleased? pairs
  • fixed minor bug in command condenseMouseClicks
  • fixed minor bug in command correctKeyInteractionTargets
  • fixed minor bug in command detectTextInputEvents
  • fixed minor bug in command sortKeyInteractions
  • beautified showing of sequences in SWT GUI
  • updated ArgoUML GUI Mappings
Location:
trunk/quest-ui-swt/src/main/java/de/ugoe/cs/quest/ui/swt
Files:
2 edited

Legend:

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

    r659 r750  
    2424    protected Shell shell; 
    2525    private Table table; 
     26    private TableColumn tblclmnEventIndex; 
    2627    private TableColumn tblclmnEventType; 
    2728    private TableColumn tblclmnEventTarget; 
     
    7172        table.setHeaderVisible(true); 
    7273        table.setLinesVisible(true); 
     74         
     75        tblclmnEventIndex = new TableColumn(table, SWT.NONE); 
     76        tblclmnEventIndex.setAlignment(20); 
     77         
    7378 
    7479        tblclmnEventType = new TableColumn(table, SWT.NONE); 
     
    166171    private void updateTableContents() { 
    167172        table.removeAll(); 
     173        int index = 1; 
    168174        for (Event event : sequence) { 
    169175            TableItem tableItem = new TableItem(table, SWT.NONE); 
     
    178184            } 
    179185            tableItem.setText(new String[] 
    180                 { event.getType().toString(), target }); 
     186                { ""+(index++), event.getType().toString(), target }); 
    181187        } 
    182188        for (int i = 0; i < table.getColumnCount(); i++) { 
     
    186192 
    187193    private void openInsertDialog(int position) { 
    188         InsertAssertionDialog insertDialog = new InsertAssertionDialog(shell, SWT.NONE, guiModel); 
    189         Event event = insertDialog.open(); 
    190         if (event != null) { 
    191             sequence.add(position, event); 
    192             updateTableContents(); 
     194        if (guiModel == null) { 
     195            MessageBox messageBox = new MessageBox(shell, SWT.ERROR); 
     196            messageBox.setMessage("Operation not supported!\nOnly works for GUI sequences."); 
     197            messageBox.setText("Error"); 
     198            messageBox.open(); 
     199        } else { 
     200            InsertAssertionDialog insertDialog = new InsertAssertionDialog(shell, SWT.NONE, guiModel); 
     201            Event event = insertDialog.open(); 
     202            if (event != null) { 
     203                sequence.add(position, event); 
     204                updateTableContents(); 
     205            } 
    193206        } 
    194207    } 
  • trunk/quest-ui-swt/src/main/java/de/ugoe/cs/quest/ui/swt/SequencesDialog.java

    r667 r750  
    133133                guiModel = (GUIModel) targetObject; 
    134134            } 
    135             if (guiModel == null) { 
    136                 MessageBox messageBox = new MessageBox(shell, SWT.ERROR); 
    137                 messageBox.setMessage("Operation not supported!\nOnly works for GUI sequences."); 
    138                 messageBox.setText("Error"); 
    139                 messageBox.open(); 
    140             } 
    141135        } 
    142136        else { 
Note: See TracChangeset for help on using the changeset viewer.