use of org.eclipse.sapphire.ui.diagram.editor.SapphireDiagramEditorPagePart.PreAutoLayoutEvent in project liferay-ide by liferay.
the class WorkflowDefinitionLayoutPersistenceService method _addDiagramPartListener.
private void _addDiagramPartListener() {
_diagramPartListener = new Listener() {
@Override
public void handle(Event event) {
if (event instanceof DiagramNodeEvent) {
DiagramNodeEvent nodeEvent = (DiagramNodeEvent) event;
_handleDiagramNodeEvent(nodeEvent);
} else if (event instanceof DiagramPageEvent) {
DiagramPageEvent pageEvent = (DiagramPageEvent) event;
_handleDiagramPageEvent(pageEvent);
} else if (event instanceof PreAutoLayoutEvent) {
_autoLayout = true;
} else if (event instanceof PostAutoLayoutEvent) {
_autoLayout = false;
} else if (event instanceof ConnectionAddEvent) {
ConnectionAddEvent addEvent = (ConnectionAddEvent) event;
handleConnectionAddEvent(addEvent);
} else if (event instanceof ConnectionDeleteEvent) {
handleConnectionDeleteEvent((ConnectionDeleteEvent) event);
}
}
};
_part().attach(_diagramPartListener);
}
Aggregations