Search in sources :

Example 1 with SessionFocusedEvent

use of org.kie.workbench.common.stunner.client.widgets.event.SessionFocusedEvent in project kie-wb-common by kiegroup.

the class DMNDiagramEditor method onFocus.

@OnFocus
public void onFocus() {
    final EditorSession session = presenter.getInstance();
    log(Level.INFO, "FOCUS [" + session + "]");
    if (null != session) {
        sessionFocusedEvent.fire(new SessionFocusedEvent(session));
    }
}
Also used : EditorSession(org.kie.workbench.common.stunner.core.client.session.impl.EditorSession) SessionFocusedEvent(org.kie.workbench.common.stunner.client.widgets.event.SessionFocusedEvent) OnFocus(org.uberfire.lifecycle.OnFocus)

Aggregations

SessionFocusedEvent (org.kie.workbench.common.stunner.client.widgets.event.SessionFocusedEvent)1 EditorSession (org.kie.workbench.common.stunner.core.client.session.impl.EditorSession)1 OnFocus (org.uberfire.lifecycle.OnFocus)1