Source:
<code>public static void displayValidationWindow(Project project, Collection<ValidationSuite> vss, String title) { List<RuleViolationResult> results = getRuleViolations(project, vss); Set<Element> elements = new LinkedHashSet<>(); for (RuleViolationResult violation : results) { elements.add((Element) violation.getElement()); } Package dummyvs = (Package) project.getElementByID("_17_0_2_407019f_1354124289134_280378_12909"); if (dummyvs == null) { <START> try { <END> ProjectsManager projectsManager = Application.getInstance().getProjectsManager(); File file = new File(Application.environment().getProfilesDirectory() + "SysML Extensions.mdxml"); ProjectDescriptor projectDescriptor = ProjectDescriptorsFactory.createProjectDescriptor(file.toURI()); projectsManager.useModule(project, projectDescriptor); dummyvs = (Package) project.getElementByID("_17_0_2_407019f_1354124289134_280378_12909"); } catch(Exception e){ } } if(dummyvs == null){ Application.getInstance().getGUILog().log("You don't have SysML Extensions mounted! You need it in order for the validations to show."); return; } EnumerationLiteral severitylevel = Annotation.getSeverityLevel(project, Annotation.INFO); ValidationRunData runData = new ValidationRunData(dummyvs, false, elements, severitylevel); String id = "" + System.currentTimeMillis(); Map<Annotation, RuleViolationResult> mapping = new HashMap<>(); ValidationWindowRun vwr = new ValidationWindowRun(id, title, runData, results, mapping); for (RuleViolationResult rvr : results) { for (NMAction action : rvr.getAnnotation().getActions()) { if (action instanceof IRuleViolationAction) { ((IRuleViolationAction) action).setValidationWindowRun(vwr); } } mapping.put(rvr.getAnnotation(), rvr); } ValidationResultsWindowManager.updateValidationResultsWindow(id, title, runData, results); }</code><technical_language>This is out of scope for this issue requires extensive testing. Please revert for now</technical_language>

Target:
public static void displayValidationWindow(Project project, Collection<ValidationSuite> vss, String title) { List<RuleViolationResult> results = getRuleViolations(project, vss); Set<Element> elements = new LinkedHashSet<>(); for (RuleViolationResult violation : results) { elements.add((Element) violation.getElement()); } Package dummyvs = (Package) project.getElementByID("_17_0_2_407019f_1354124289134_280378_12909"); if (dummyvs == null) { Application.getInstance().getGUILog().log("You don't have SysML Extensions mounted! You need it in order for the validations to show."); return; } EnumerationLiteral severitylevel = Annotation.getSeverityLevel(project, Annotation.INFO); ValidationRunData runData = new ValidationRunData(dummyvs, false, elements, severitylevel); String id = "" + System.currentTimeMillis(); Map<Annotation, RuleViolationResult> mapping = new HashMap<>(); ValidationWindowRun vwr = new ValidationWindowRun(id, title, runData, results, mapping); for (RuleViolationResult rvr : results) { for (NMAction action : rvr.getAnnotation().getActions()) { if (action instanceof IRuleViolationAction) { ((IRuleViolationAction) action).setValidationWindowRun(vwr); } } mapping.put(rvr.getAnnotation(), rvr); } ValidationResultsWindowManager.updateValidationResultsWindow(id, title, runData, results); }