Skip to content

Instantly share code, notes, and snippets.

@romartin
Created March 16, 2020 20:03
Show Gist options
  • Save romartin/fc796e87c5e5cf850d61d74babeb3c3b to your computer and use it in GitHub Desktop.
Save romartin/fc796e87c5e5cf850d61d74babeb3c3b to your computer and use it in GitHub Desktop.
org.kie.workbench.common.stunner.kogito.client.editor.BPMNDiagramEditor
private static java.util.logging.Logger LOGGER = java.util.logging.Logger.getLogger(BaseCanvasHandler.class.getName());
@SetContent
@Override
public void setContent(final String path, final String value) {
LOGGER.severe("HELLOOOOO!!!!");
superOnClose();
diagramServices.transform(value,
new ServiceCallback<Diagram>() {
@Override
public void onSuccess(final Diagram diagram) {
getEditor().open(diagram);
}
@Override
public void onError(final ClientRuntimeError error) {
BPMNDiagramEditor.this.getEditor().onLoadError(error);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment