Search in sources :

Example 1 with DomainStatus

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;
}
Also used : EObject(org.eclipse.emf.ecore.EObject) DomainElement(org.yakindu.base.base.DomainElement) DomainStatus(org.yakindu.sct.domain.extension.DomainStatus)

Example 2 with DomainStatus

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);
}
Also used : DomainStatus(org.yakindu.sct.domain.extension.DomainStatus)

Aggregations

DomainStatus (org.yakindu.sct.domain.extension.DomainStatus)2 EObject (org.eclipse.emf.ecore.EObject)1 DomainElement (org.yakindu.base.base.DomainElement)1