- Timestamp:
- 02/28/12 17:16:41 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modelicaml/org.openmodelica.modelicaml.gen.modelica/src/org/openmodelica/modelicaml/gen/modelica/cg/helpers/OMCClassValidator.java
r1366 r1372 64 64 import org.eclipse.swt.widgets.Display; 65 65 import org.eclipse.swt.widgets.Shell; 66 import org.eclipse.ui.PlatformUI; 66 67 import org.eclipse.uml2.uml.Class; 67 68 import org.eclipse.uml2.uml.Classifier; … … 220 221 } 221 222 else { 222 MessageDialog.openError( newShell(), "Model Valdation with OMC", "The select element must be a UML Class! ");223 MessageDialog.openError(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), "Model Valdation with OMC", "The select element must be a UML Class! "); 223 224 } 224 225 } … … 255 256 Display.getDefault().asyncExec(new Runnable() { 256 257 public void run() { 257 DialogMessage dialog = new DialogMessage( newShell(), "Check Model in OMC", "Validation result for '"+dotPath_classToBeValidated+"': ", getLog());258 DialogMessage dialog = new DialogMessage(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), "Check Model in OMC", "Validation result for '"+dotPath_classToBeValidated+"': ", getLog()); 258 259 dialog.open(); 259 260 }
Note: See TracChangeset
for help on using the changeset viewer.