Skip to content

Commit

Permalink
impl
Browse files Browse the repository at this point in the history
Issue imixs#221
  • Loading branch information
rsoika committed Mar 21, 2023
1 parent 52e48b6 commit 390447c
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import java.util.logging.Logger;

import org.eclipse.glsp.server.actions.Action;
import org.eclipse.glsp.server.actions.ActionHandler;
import org.eclipse.glsp.server.di.DiagramModule;
import org.eclipse.glsp.server.di.MultiBinding;
Expand Down Expand Up @@ -65,6 +66,7 @@
import org.openbpmn.glsp.operations.BPMNChangeRoutingPointsOperationHandler;
import org.openbpmn.glsp.operations.BPMNComputedBoundsActionHandler;
import org.openbpmn.glsp.operations.BPMNDeleteNodeHandler;
import org.openbpmn.glsp.operations.BPMNPropertyPanelUpdateAction;
import org.openbpmn.glsp.provider.BPMNCommandPaletteActionProvider;
import org.openbpmn.glsp.provider.BPMNToolPaletteItemProvider;
import org.openbpmn.glsp.validators.BPMNModelValidator;
Expand Down Expand Up @@ -109,8 +111,19 @@ protected void configureActionHandlers(final MultiBinding<ActionHandler> binding
// Edit lable actions..
binding.add(BPMNComputedBoundsActionHandler.class);

// configure panelupdate action which is send from the server to the client
// binding.add(BPMNPropertyPanelUpdateAction.class);

}

// @Override
// protected void configureClientActions(final MultiBinding<Action> binding) {
// //super.configureClientAction(binding);
// binding.add(BPMNPropertyPanelUpdateAction.class);
// }
// protected void configureClientActions(final MultiBinding<Action> binding) {
// }

@Override
protected void configureOperationHandlers(final MultiBinding<OperationHandler> binding) {
super.configureOperationHandlers(binding);
Expand Down Expand Up @@ -165,6 +178,20 @@ protected void configureOperationHandlers(final MultiBinding<OperationHandler> b

}

/**
* Each handler that should be handled by the GLSP client has to be
* configured as dedicated client action to indicate that it needs to be
* dispatched to the client.
*
* The BPMNPropertyPanelUpdateAction is used by Extensions to signal the
* propertyPanel that we have an update of the current selected element
*/
@Override
protected void configureClientActions(MultiBinding<Action> binding) {
super.configureClientActions(binding);
binding.add(BPMNPropertyPanelUpdateAction.class);
}

/**
* This method creates a new Multibinder to bind BPMNExension
*/
Expand Down

0 comments on commit 390447c

Please sign in to comment.