Search in sources :

Example 1 with DMNSession

use of org.kie.workbench.common.dmn.client.session.DMNSession in project kie-wb-common by kiegroup.

the class DMNDiagramEditor method onEditExpressionEvent.

void onEditExpressionEvent(@Observes final EditExpressionEvent event) {
    searchBarComponent.disableSearch();
    if (isSameSession(event.getSession())) {
        final DMNSession session = (DMNSession) getStunnerEditor().getSession();
        final ExpressionEditorView.Presenter expressionEditor = session.getExpressionEditor();
        sessionCommandManager.execute(session.getCanvasHandler(), new NavigateToExpressionEditorCommand(expressionEditor, getStunnerEditor().getPresenter(), sessionManager, sessionCommandManager, refreshFormPropertiesEvent, event.getNodeUUID(), event.getHasExpression(), event.getHasName(), event.isOnlyVisualChangeAllowed()));
    }
}
Also used : ExpressionEditorView(org.kie.workbench.common.dmn.client.editors.expressions.ExpressionEditorView) NavigateToExpressionEditorCommand(org.kie.workbench.common.dmn.client.commands.general.NavigateToExpressionEditorCommand) DMNSession(org.kie.workbench.common.dmn.client.session.DMNSession)

Example 2 with DMNSession

use of org.kie.workbench.common.dmn.client.session.DMNSession in project kie-wb-common by kiegroup.

the class DMNDiagramEditor method onEditExpressionEvent.

void onEditExpressionEvent(@Observes final EditExpressionEvent event) {
    searchBarComponent.disableSearch();
    if (isSameSession(event.getSession())) {
        final DMNSession session = sessionManager.getCurrentSession();
        final ExpressionEditorView.Presenter expressionEditor = session.getExpressionEditor();
        sessionCommandManager.execute(session.getCanvasHandler(), new NavigateToExpressionEditorCommand(expressionEditor, presenter, sessionManager, sessionCommandManager, refreshFormPropertiesEvent, event.getNodeUUID(), event.getHasExpression(), event.getHasName(), event.isOnlyVisualChangeAllowed()));
    }
}
Also used : ExpressionEditorView(org.kie.workbench.common.dmn.client.editors.expressions.ExpressionEditorView) NavigateToExpressionEditorCommand(org.kie.workbench.common.dmn.client.commands.general.NavigateToExpressionEditorCommand) DMNSession(org.kie.workbench.common.dmn.client.session.DMNSession)

Aggregations

NavigateToExpressionEditorCommand (org.kie.workbench.common.dmn.client.commands.general.NavigateToExpressionEditorCommand)2 ExpressionEditorView (org.kie.workbench.common.dmn.client.editors.expressions.ExpressionEditorView)2 DMNSession (org.kie.workbench.common.dmn.client.session.DMNSession)2