Examples of ObjectEventListener


Examples of org.eclipse.wb.core.model.broadcast.ObjectEventListener

    // perform alignment
    action.run();
  }

  private void setupSelectionActions(final AbsoluteLayoutInfo layout) {
    layout.addBroadcastListener(new ObjectEventListener() {
      @Override
      public void addSelectionActions(List<ObjectInfo> objects, List<Object> actions)
          throws Exception {
        new AbsoluteLayoutAlignmentSupport(layout).addAlignmentActions(objects, actions);
      }
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.ObjectEventListener

  /**
   * {@link CanvasInfo} is "absolute container", but when we move {@link WidgetInfo} out, target
   * container may be not "absolute". So, we should remove information related to "location".
   */
  private void removeLocation_whenMoveOut() {
    addBroadcastListener(new ObjectEventListener() {
      @Override
      public void childRemoveBefore(ObjectInfo parent, ObjectInfo child) throws Exception {
        if (parent == CanvasInfo.this && child instanceof CanvasInfo) {
          CanvasInfo canvas = (CanvasInfo) child;
          removeLocation(canvas);
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.