Changeset 1388 for trunk/modelicaml/org.openmodelica.modelicaml.simulation
- Timestamp:
- 03/12/12 14:19:21 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modelicaml/org.openmodelica.modelicaml.simulation/src/org/openmodelica/modelicaml/simulation/handlers/GenerateTestSiMDataAction.java
r1376 r1388 164 164 // set the list of simulation models to be executed. 165 165 EObject rootModel = null; 166 166 boolean someModelsSelected = false; 167 167 try { 168 168 rootModel = umlModel.lookupRoot(); 169 169 if (rootModel instanceof Model) { 170 s etTestModels((Element) rootModel);170 someModelsSelected = setTestModels((Element) rootModel); 171 171 } 172 172 } catch (NotFoundException e) { … … 175 175 } 176 176 177 if ( rootModel != null && VerificationExecutionServices.verificationModels != null && VerificationExecutionServices.verificationModels.size() > 0) {177 if (someModelsSelected && rootModel != null && VerificationExecutionServices.verificationModels != null && VerificationExecutionServices.verificationModels.size() > 0) { 178 178 179 179 org.eclipse.emf.common.util.URI chainURI = null; … … 244 244 MessageDialog.openError(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), "Error", "Could not save the model and load the generation chain..."); 245 245 } 246 }247 248 CompoundCommand cc = new CompoundCommand("Verification Models Data Generation");249 return (cc.unwrap());250 } 251 252 253 public voidsetTestModels(Element rootModel){246 CompoundCommand cc = new CompoundCommand("Verification Models Data Generation"); 247 return (cc.unwrap()); 248 } 249 return null; 250 } 251 252 253 public boolean setTestModels(Element rootModel){ 254 254 ElementsCollector ec = new ElementsCollector(); 255 255 ec.collectElementsFromModel(rootModel, Constants.stereotypeQName_VerificationModel); … … 267 267 } 268 268 } 269 } 269 270 return true; 271 } 272 return false; 270 273 } 271 274
Note: See TracChangeset
for help on using the changeset viewer.