Ignore:
Timestamp:
08/28/12 09:58:46 (12 years ago)
Author:
sherbold
Message:
  • extended SWT GUI such that GUI models can be displayed and browsed
File:
1 edited

Legend:

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

    r488 r658  
    1212 
    1313import de.ugoe.cs.quest.SequenceInstanceOf; 
     14import de.ugoe.cs.quest.eventcore.guimodel.GUIModel; 
    1415import de.ugoe.cs.quest.usageprofiles.IStochasticProcess; 
    1516 
     
    212213                return modelNames; 
    213214        } 
     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        } 
    214232 
    215233        /** 
Note: See TracChangeset for help on using the changeset viewer.