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

Examples of org.dyno.visual.swing.plugin.spi.WidgetAdapter.convertToLocal()


      Component hovered = designer.componentAt(p, 0);
      if (hovered != null) {
        WidgetAdapter adapter = WidgetAdapter.getWidgetAdapter(hovered);
        if (isDroppingPopup()) {
          IDesignOperation design = (IDesignOperation) adapter.getAdapter(IDesignOperation.class);
          design.drop(adapter.convertToLocal(p));
        } else {
          if (!(adapter instanceof CompositeAdapter)) {
            adapter = adapter.getParentAdapter();
          }
          CompositeAdapter compositeAdapter = (CompositeAdapter) adapter;
View Full Code Here


      }
    } else if (currentAdapters != null) {
      WidgetAdapter adapter = currentAdapters.get(0);
      hoveredAdapter = adapter;
      IDesignOperation design = (IDesignOperation) hoveredAdapter.getAdapter(IDesignOperation.class);
      if (design != null && design.drop(adapter.convertToLocal(p))) {
        if (lastParent != null) {
          IOperationHistory operationHistory = PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();
          List<Component> children = new ArrayList<Component>();
          List<Object> new_constraints = new ArrayList<Object>();
          for (WidgetAdapter wa : designer.getSelectedWidget()) {
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.