Title: Warning Window
Description: This class provides a window to show warnings generated by model conversion. Warnings are expected tobe ctored in a Vector of Strings.
531532533534535536537538
} updatePanels(); // Shows warnings if any if (retval == ModelLoader.WARNING) { new WarningWindow(modelLoader.getLastWarnings(), this, modelLoader.getInputFileFormat(), CommonConstants.JMVA).show(); } }
564565566567568569570571572
List res = ModelConverter.convertJMVAtoJSIM(data, output); JSIMMain jsim = new JSIMMain(output); jsim.show(); // If problems are found, shows warnings if (res.size() > 0) { new WarningWindow(res, jsim, CommonConstants.JMVA, CommonConstants.JSIM).show(); } }
539540541542543544545546547548549
} updatePanels(); // Shows warnings if any if (retval == ModelLoader.WARNING) { new WarningWindow(modelLoader.getLastWarnings(), this, modelLoader.getInputFileFormat(), CommonConstants.JABA) .show(); } updatePanels(); }
430431432433434435436437438
showErrorMessage(modelLoader.getFailureMotivation()); } // Shows warnings if any if (state == ModelLoader.WARNING) { new WarningWindow(modelLoader.getLastWarnings(), this, modelLoader.getInputFileFormat(), CommonConstants.JSIM).show(); } }
551552553554555556557558
ExactModel output = new ExactModel(); List res = ModelConverter.convertJSIMtoJMVA(model, output); ExactWizard jmva = new ExactWizard(output); // If problems are found, shows warnings if (res.size() > 0) { new WarningWindow(res, jmva, CommonConstants.JSIM, CommonConstants.JMVA).show(); } }
745746747748749750751752753
} else if (state == ModelLoader.FAILURE) { showErrorMessage(modelLoader.getFailureMotivation()); } // Shows warnings if any if (state == ModelLoader.WARNING) { new WarningWindow(modelLoader.getLastWarnings(), mainWindow, modelLoader.getInputFileFormat(), CommonConstants.JSIM).show(); } }
25232524252525262527252825292530253125322533
ExactModel output = new ExactModel(); List res = ModelConverter.convertJSIMtoJMVA(model, output); ExactWizard jmva = new ExactWizard(output); // If problems are found, shows warnings if (res.size() > 0) { new WarningWindow(res, jmva, CommonConstants.JSIM, CommonConstants.JMVA).show(); } /* * Old code to use XSLT transformer (really bugged and unfinished) *