Package org.dyno.visual.swing.plugin.spi

Examples of org.dyno.visual.swing.plugin.spi.CompositeAdapter.doLayout()


      pc.parent = parentAdapter.getWidget();
      pc.constraints = parentAdapter.getChildConstraints(child);
      pc.child = child;
      constraints.add(pc);
      boolean success = parentAdapter.removeChild(child);
      parentAdapter.doLayout();
      parentAdapter.getWidget().validate();
      if (success){
        parentAdapter.setDirty(true);
        adapter.addNotify();
        WidgetEvent we = new WidgetEvent(parentAdapter, adapter);
View Full Code Here


  public IStatus undo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
    CompositeAdapter rootAdapter = (CompositeAdapter) WidgetAdapter.getWidgetAdapter(root);
    for (ParentConstraints pc : constraints) {
      CompositeAdapter parentAdapter = (CompositeAdapter) WidgetAdapter.getWidgetAdapter(pc.parent);
      parentAdapter.addChildByConstraints(pc.child, pc.constraints);
      parentAdapter.doLayout();
      parentAdapter.getWidget().validate();
      parentAdapter.setDirty(true);
    }
    rootAdapter.doLayout();
    root.validate();
View Full Code Here

    try {
      operationHistory.execute(operation, null, null);
    } catch (ExecutionException e) {
      VisualSwingPlugin.getLogger().error(e);
    }
    rootAdapter.doLayout();
    designer.getRoot().validate();
    designer.publishSelection();
    designer.repaint();
  }
  @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.