Examples of ObjectEventListener


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

      }
    });
  }

  private void contributeCellContextMenu() {
    addBroadcastListener(new ObjectEventListener() {
      @Override
      public void addContextMenu(List<? extends ObjectInfo> objects,
          ObjectInfo object,
          IMenuManager manager) throws Exception {
        if (object instanceof Cell && isParentOf(object)) {
View Full Code Here

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

  //
  // Context menu
  //
  ////////////////////////////////////////////////////////////////////////////
  private void contributeWidgetContextMenu() {
    addBroadcastListener(new ObjectEventListener() {
      @Override
      public void addContextMenu(List<? extends ObjectInfo> objects,
          ObjectInfo object,
          IMenuManager manager) throws Exception {
        if (object instanceof WidgetInfo && object.getParent() == LayoutPanelInfo.this) {
View Full Code Here

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

  //
  // Context menu
  //
  ////////////////////////////////////////////////////////////////////////////
  private void contributeWidgetContextMenu() {
    addBroadcastListener(new ObjectEventListener() {
      @Override
      public void addContextMenu(List<? extends ObjectInfo> objects,
          ObjectInfo object,
          IMenuManager manager) throws Exception {
        if (object instanceof WidgetInfo && object.getParent() == m_this) {
View Full Code Here

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

  //
  // Events
  //
  ////////////////////////////////////////////////////////////////////////////
  private void constributeContextMenu() {
    addBroadcastListener(new ObjectEventListener() {
      @Override
      public void addContextMenu(List<? extends ObjectInfo> objects,
          ObjectInfo object,
          IMenuManager manager) throws Exception {
        if (object == m_this) {
View Full Code Here

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

      }
    }
  }

  private void addContextMenu_openCommand() {
    addBroadcastListener(new ObjectEventListener() {
      @Override
      public void addContextMenu(List<? extends ObjectInfo> objects,
          ObjectInfo object,
          IMenuManager manager) throws Exception {
        if (object == m_this) {
View Full Code Here

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

          throws Exception {
        addFileContextDesccriptions(contexts);
      }
    });
    // dispose on hierarchy dispose
    broadcastSupport.addListener(null, new ObjectEventListener() {
      @Override
      public void dispose() throws Exception {
        for (ContextDescription context : m_fileContexts.values()) {
          context.dispose();
        }
View Full Code Here

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

      state.dispose();
      ReflectionUtils.propagate(e);
    }
    // dispose GWTState during hierarchy dispose
    if (!hasCurrentEditor) {
      editorState.getBroadcast().addListener(null, new ObjectEventListener() {
        @Override
        public void dispose() throws Exception {
          state.dispose();
        }
      });
View Full Code Here

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

            addMethodInvocation("showWidget(int)", "0");
          }
        }
      }
    });
    addBroadcastListener(new ObjectEventListener() {
      @Override
      public void childRemoveAfter(ObjectInfo parent, ObjectInfo child) throws Exception {
        if (isDeckChild(child)) {
          if (getChildrenWidgets().isEmpty()) {
            // if last widget removed, remove showWidget()
View Full Code Here

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

  public LayoutPanelInfo(AstEditor editor,
      ComponentDescription description,
      CreationSupport creationSupport) throws Exception {
    super(editor, description, creationSupport);
    m_alignmentSupport = new LayoutPanelAlignmentSupport<WidgetInfo>(this);
    addBroadcastListener(new ObjectEventListener() {
      @Override
      public void childRemoveBefore(ObjectInfo parent, ObjectInfo child) throws Exception {
        if (parent == LayoutPanelInfo.this && child instanceof WidgetInfo) {
          WidgetInfo widget = (WidgetInfo) child;
          for (MethodInvocation invocation : getMethodInvocations()) {
View Full Code Here

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

    final ObjectInfo rootObject = object.getRoot();
    RuleAccessor accessor = m_instances.get(rootObject);
    if (accessor == null) {
      accessor = new RuleAccessor(rootObject);
      m_instances.put(rootObject, accessor);
      rootObject.addBroadcastListener(new ObjectEventListener() {
        @Override
        public void dispose() throws Exception {
          m_instances.remove(rootObject);
        }
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.