Changeset 750
- Timestamp:
- 09/03/12 10:57:43 (12 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-plugin-jfc/data/guimappings/guimapping-argouml.txt
r741 r750 41 41 org.tigris.toolbar.toolbutton.ModalButton = de.ugoe.cs.quest.plugin.jfc.guimodel.JFCButton 42 42 org.tigris.toolbar.toolbutton.PopupToolBoxButton = de.ugoe.cs.quest.plugin.jfc.guimodel.JFCMenuButton 43 org.argouml.core.propertypanels.ui.UMLExpressionLanguageField = de.ugoe.cs.quest.plugin.jfc.guimodel.JFCGUIElement -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDcondenseMouseClicks.java
r733 r750 80 80 81 81 if (GlobalDataContainer.getInstance().addData(newSequencesName, newSequences)) { 82 CommandHelpers.dataOverwritten( sequencesName);82 CommandHelpers.dataOverwritten(newSequencesName); 83 83 } 84 84 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDcorrectKeyInteractionTargets.java
r733 r750 81 81 82 82 if (GlobalDataContainer.getInstance().addData(newSequencesName, newSequences)) { 83 CommandHelpers.dataOverwritten( sequencesName);83 CommandHelpers.dataOverwritten(newSequencesName); 84 84 } 85 85 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDdetectTextInputEvents.java
r733 r750 77 77 78 78 if (GlobalDataContainer.getInstance().addData(newSequencesName, newSequences)) { 79 CommandHelpers.dataOverwritten( sequencesName);79 CommandHelpers.dataOverwritten(newSequencesName); 80 80 } 81 81 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDsortKeyInteractions.java
r733 r750 104 104 105 105 if (GlobalDataContainer.getInstance().addData(newSequencesName, newSequences)) { 106 CommandHelpers.dataOverwritten( sequencesName);106 CommandHelpers.dataOverwritten(newSequencesName); 107 107 } 108 108 -
trunk/quest-ui-swt/src/main/java/de/ugoe/cs/quest/ui/swt/EditSequenceDialog.java
r659 r750 24 24 protected Shell shell; 25 25 private Table table; 26 private TableColumn tblclmnEventIndex; 26 27 private TableColumn tblclmnEventType; 27 28 private TableColumn tblclmnEventTarget; … … 71 72 table.setHeaderVisible(true); 72 73 table.setLinesVisible(true); 74 75 tblclmnEventIndex = new TableColumn(table, SWT.NONE); 76 tblclmnEventIndex.setAlignment(20); 77 73 78 74 79 tblclmnEventType = new TableColumn(table, SWT.NONE); … … 166 171 private void updateTableContents() { 167 172 table.removeAll(); 173 int index = 1; 168 174 for (Event event : sequence) { 169 175 TableItem tableItem = new TableItem(table, SWT.NONE); … … 178 184 } 179 185 tableItem.setText(new String[] 180 { event.getType().toString(), target });186 { ""+(index++), event.getType().toString(), target }); 181 187 } 182 188 for (int i = 0; i < table.getColumnCount(); i++) { … … 186 192 187 193 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 } 193 206 } 194 207 } -
trunk/quest-ui-swt/src/main/java/de/ugoe/cs/quest/ui/swt/SequencesDialog.java
r667 r750 133 133 guiModel = (GUIModel) targetObject; 134 134 } 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 }141 135 } 142 136 else {
Note: See TracChangeset
for help on using the changeset viewer.