Changeset 1556
- Timestamp:
- 06/20/12 18:26:26 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modelicaml/org.openmodelica.modelicaml.simulation/src/org/openmodelica/modelicaml/simulation/handlers/GenerateTestSiMDataAction.java
r1550 r1556 143 143 144 144 protected Command getCommand(TransactionalEditingDomain editingDomain) { 145 // EObject selectedElement = (EObject) adaptSelectedElement(getCurrentSelections().get(0));146 // if (selectedElement instanceof Element) {147 // }148 145 149 146 umlModel = UmlUtils.getUmlModel(); … … 182 179 if (someModelsSelected && rootModel != null && VerificationExecutionServices.verificationModels != null && VerificationExecutionServices.verificationModels.size() > 0) { 183 180 181 // prepare the chain 184 182 org.eclipse.emf.common.util.URI chainURI = null; 183 184 // reset the code generation flag from last time 185 generateCode = false; 185 186 186 187 // if the code should not be re-generated -> skip asking this question … … 192 193 } 193 194 195 // select the right cg chain based on the need to regenerate code 194 196 if (generateCode) { 195 // TODO: find the right Papyrus API to save the model in editor and not only the uml file!196 // umlModel.saveModel();197 197 chainURI = org.eclipse.emf.common.util.URI.createPlatformPluginURI( 198 198 "/org.openmodelica.modelicaml.gen.modelica/bin/verification_models_data_generation_with_cg.chain", … … 205 205 } 206 206 207 208 // create chain 207 209 if (chainURI != null) { 208 210 ResourceSet rs = new ResourceSetImpl(); … … 246 248 } 247 249 else { 248 MessageDialog.openError(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), "Error", "Could not save the model andload the generation chain...");250 MessageDialog.openError(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), "Error", "Could not load the generation chain..."); 249 251 } 250 252 CompoundCommand cc = new CompoundCommand("Verification Models Data Generation");
Note: See TracChangeset
for help on using the changeset viewer.