use of org.kie.workbench.common.dmn.api.definition.NOPDomainObject in project kie-wb-common by kiegroup.
the class BaseGrid method fireDomainObjectSelectionEvent.
protected void fireDomainObjectSelectionEvent() {
final Optional<CanvasHandler> canvasHandler = getCanvasHandler();
if (!canvasHandler.isPresent()) {
return;
}
final Optional<DomainObject> domainObject = getDomainObject();
if (!domainObject.isPresent()) {
domainObjectSelectionEvent.fire(new DomainObjectSelectionEvent(canvasHandler.get(), new NOPDomainObject()));
return;
}
fireDomainObjectSelectionEvent(domainObject.get());
}
use of org.kie.workbench.common.dmn.api.definition.NOPDomainObject in project kie-wb-common by kiegroup.
the class DMNGraphSubIndex method onNoResultsFound.
@Override
public void onNoResultsFound() {
getCanvasHandler().ifPresent(canvasHandler -> {
canvasClearSelectionEventEvent.fire(new CanvasClearSelectionEvent(canvasHandler));
domainObjectSelectionEvent.fire(new DomainObjectSelectionEvent(canvasHandler, new NOPDomainObject()));
});
}
Aggregations