use of org.yakindu.sct.domain.extension.DomainStatus in project statecharts by Yakindu.
the class StatechartDiagramEditor method getDomainStatus.
protected DomainStatus getDomainStatus() {
EObject element = getDiagram().getElement();
DomainElement domainElement = EcoreUtil2.getContainerOfType(element, DomainElement.class);
if (domainElement != null) {
DomainStatus domainStatus = DomainRegistry.getDomainStatus(domainElement.getDomainID());
return domainStatus;
}
return null;
}
use of org.yakindu.sct.domain.extension.DomainStatus in project statecharts by Yakindu.
the class StatechartDiagramEditor method createBreadcrumbViewer.
@Override
protected void createBreadcrumbViewer(Composite parent) {
DomainStatus domainStatus = getDomainStatus();
if (domainStatus != null && !(domainStatus.getSeverity() == Severity.OK)) {
createStatusLabel(parent, domainStatus);
}
super.createBreadcrumbViewer(parent);
}
Aggregations