Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Control.addDisposeListener()


        /*
         * 1GGYYWK: ITPJUI:ALL - Dismissing editor with code assist up causes lots of
         * Internal Errors
         */
        control.addDisposeListener(this);
      }
      if (fViewer != null)
        fViewer.addViewportListener(this);
    }

View Full Code Here


   
    TreeViewer treeViewer = filteredTree.getViewer();
    Control treeControl = treeViewer.getControl();
    RGB dimmedRGB = blend(treeControl.getForeground().getRGB(), treeControl.getBackground().getRGB(), 60);
    dimmedForeground = new Color(treeControl.getDisplay(), dimmedRGB);
    treeControl.addDisposeListener(new DisposeListener() {
      public void widgetDisposed(DisposeEvent e) {
        dimmedForeground.dispose();
      }
    });
   
View Full Code Here

             */
            public void mouseUp(MouseEvent arg0) {
                //Do nothing
            }
        });
        animationItem.addDisposeListener(new DisposeListener() {
            public void widgetDisposed(DisposeEvent e) {
                AnimationManager.getInstance().removeItem(AnimationItem.this);
            }
        });
        AnimationManager.getInstance().addItem(this);
View Full Code Here

        }
      }
    };

    Control control = editor.getGraphicalViewer().getControl();
    control.addDisposeListener(disposeListener);
  }

  public void dispose() {
    editor.getSelectionSynchronizer().removeViewer(getViewer());
    Control control = editor.getGraphicalViewer().getControl();
View Full Code Here

        w.addFocusListener(this);

        /*
         * 1GGYYWK: ITPJUI:ALL - Dismissing editor with code assist up causes lots of Internal Errors
         */
        w.addDisposeListener(this);
      }

      fViewer.addViewportListener(this);
      fViewportListenerStartTime= System.currentTimeMillis() + 500;
    }
View Full Code Here

   * @see de.willuhn.jameica.gui.input.ScaleInput#getControl()
   */
  public Control getControl()
  {
    Control c = super.getControl();
    c.addDisposeListener(new DisposeListener() {
      public void widgetDisposed(DisposeEvent e)
      {
        settings.setAttribute("days",(Integer) getValue());
      }
    });
View Full Code Here

        /*
         * 1GGYYWK: ITPJUI:ALL - Dismissing editor with code assist up causes lots of
         * Internal Errors
         */
        control.addDisposeListener(this);
      }
      if (fViewer != null)
        fViewer.addViewportListener(this);
    }

View Full Code Here

        if (event instanceof CellEditorCreatedEvent) {
            CellEditorCreatedEvent editorEvent = (CellEditorCreatedEvent) event;
            this.activeCellEditor = editorEvent.getEditor();
            Control editorControl = this.activeCellEditor.getEditorControl();
            if (editorControl != null && !editorControl.isDisposed()) {
                editorControl.addDisposeListener(new DisposeListener() {

                    @Override
                    public void widgetDisposed(DisposeEvent e) {
                        NatTable.this.activeCellEditor = null;
                        ActiveCellEditorRegistry.unregisterActiveCellEditor();
View Full Code Here

      public void widgetDisposed(DisposeEvent e) {
        removeListener();
      }
    };
    control.addDisposeListener(disposeListener);
  }

  private void removeListener() {
    final ListenerHandle handle = listenerHandle;
    if (handle != null)
View Full Code Here

        /*
         * 1GGYYWK: ITPJUI:ALL - Dismissing editor with code assist up causes lots of
         * Internal Errors
         */
        control.addDisposeListener(this);
      }
      if (fViewer != null)
        fViewer.addViewportListener(this);
    }

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.