Search in sources :

Example 1 with DeferredLayoutCommand

use of org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand in project tdi-studio-se by Talend.

the class BusinessProcessCanonicalEditPolicy method refreshSemantic.

/**
     * @generated
     */
protected void refreshSemantic() {
    List createdViews = new LinkedList();
    createdViews.addAll(refreshSemanticChildren());
    List createdConnectionViews = new LinkedList();
    createdConnectionViews.addAll(refreshSemanticConnections());
    createdConnectionViews.addAll(refreshConnections());
    if (createdViews.size() > 1) {
        // perform a layout of the container
        DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host().getEditingDomain(), createdViews, host());
        executeCommand(new ICommandProxy(layoutCmd));
    }
    createdViews.addAll(createdConnectionViews);
    makeViewsImmutable(createdViews);
}
Also used : ICommandProxy(org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy) LinkedList(java.util.LinkedList) List(java.util.List) LinkedList(java.util.LinkedList) DeferredLayoutCommand(org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand)

Aggregations

LinkedList (java.util.LinkedList)1 List (java.util.List)1 DeferredLayoutCommand (org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand)1 ICommandProxy (org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy)1