Changeset 230 for trunk/EventBenchConsole/src/de/ugoe/cs
- Timestamp:
- 10/03/11 23:14:46 (13 years ago)
- 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 42 42 @Override 43 43 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 } 49 57 } 50 58 });
Note: See TracChangeset
for help on using the changeset viewer.