- Timestamp:
- 08/28/12 09:58:46 (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/GlobalDataContainer.java
r488 r658 12 12 13 13 import de.ugoe.cs.quest.SequenceInstanceOf; 14 import de.ugoe.cs.quest.eventcore.guimodel.GUIModel; 14 15 import de.ugoe.cs.quest.usageprofiles.IStochasticProcess; 15 16 … … 212 213 return modelNames; 213 214 } 215 216 /** 217 * <p> 218 * Returns the keys of all {@link GUIModel}s contained in the storage. 219 * </p> 220 * 221 * @return keys of all {@link GUIModel}s contained in the storage 222 */ 223 public Collection<String> getAllGUIModelNames() { 224 Collection<String> modelNames = new LinkedList<String>(); 225 for(Entry<String, Object> entry : dataObjects.entrySet()) { 226 if( entry.getValue() instanceof GUIModel ) { 227 modelNames.add(entry.getKey()); 228 } 229 } 230 return modelNames; 231 } 214 232 215 233 /** -
trunk/quest-ui-swt/src/main/java/de/ugoe/cs/quest/ui/swt/DataTabComposite.java
r655 r658 110 110 public void updateDataList() { 111 111 dataList.removeAll(); 112 for (String sequencesName: GlobalDataContainer.getInstance().getAllKeys()) {113 dataList.add( sequencesName);112 for (String key : GlobalDataContainer.getInstance().getAllKeys()) { 113 dataList.add(key + " (" + GlobalDataContainer.getInstance().getData(key).getClass().toString() + ")"); 114 114 } 115 115 } -
trunk/quest-ui-swt/src/main/java/de/ugoe/cs/quest/ui/swt/MainWindow.java
r655 r658 35 35 protected TabItem sequencesTab; 36 36 protected TabItem modelsTab; 37 protected TabItem guiModelsTab; 37 38 protected TabItem dataTab; 38 39 protected ConsoleTabComposite consoleTabComposite; 39 40 protected SequencesTabComposite sequencesTabComposite; 40 41 protected ModelsTabComposite modelsTabComposite; 42 protected GuiModelTabComposite guiModelTabComposite; 41 43 protected DataTabComposite dataTabComposite; 42 44 … … 198 200 modelsTabComposite.updateModelList(); 199 201 } 202 else if (e.item == guiModelsTab) { 203 guiModelTabComposite.updateModelList(); 204 } 200 205 else if (e.item == dataTab) { 201 206 dataTabComposite.updateDataList(); … … 222 227 modelsTabComposite = new ModelsTabComposite(tabFolder, SWT.NO_BACKGROUND); 223 228 modelsTab.setControl(modelsTabComposite); 229 230 guiModelsTab = new TabItem(tabFolder, SWT.NONE); 231 guiModelsTab.setText("GUI Models"); 232 233 guiModelTabComposite = new GuiModelTabComposite(tabFolder, SWT.NO_BACKGROUND); 234 guiModelsTab.setControl(guiModelTabComposite); 224 235 225 236 dataTab = new TabItem(tabFolder, SWT.NONE);
Note: See TracChangeset
for help on using the changeset viewer.