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

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


  public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
    parents = new ArrayList<CompositeAdapter>();
    for (Component child : selection) {
      WidgetAdapter adapter = WidgetAdapter.getWidgetAdapter(child);
      CompositeAdapter parentAdapter=adapter.getParentAdapter();
      boolean success = parentAdapter.removeChild(child);
      if (success)
        parentAdapter.setDirty(true);
      parents.add(parentAdapter);
    }
    return Status.OK_STATUS;
View Full Code Here


      ParentConstraints pc = new ParentConstraints();
      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();
View Full Code Here

            parentAdapter = (CompositeAdapter) parentAdapter.getParentAdapter();
          }
          lastConstraints = new ArrayList<Object>();
          for (WidgetAdapter a : currentAdapters) {
            lastConstraints.add(parentAdapter.getChildConstraints(a.getWidget()));
            parentAdapter.removeChild(a.getWidget());
          }
          currentAdapters = new ArrayList<WidgetAdapter>();
          currentAdapters.add(parentAdapter);
          lastParent = parentAdapter;
        }
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.