Codota Logo
Composite.removeListener
Code IndexAdd Codota to your IDE (free)

How to use
removeListener
method
in
org.eclipse.swt.widgets.Composite

Best Java code snippets using org.eclipse.swt.widgets.Composite.removeListener (Showing top 17 results out of 315)

  • Common ways to obtain Composite
private void myMethod () {
Composite c =
  • Codota IconControl control;control.getParent()
  • Codota IconStatusDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Codota IconTitleAreaDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Smart code suggestions by Codota
}
origin: org.eclipse/org.eclipse.emf.exporter

protected void compositeDisposed()
{
 composite.removeListener(SWT.Selection, this);
 composite.removeListener(SWT.DefaultSelection, this);
 composite.removeListener(SWT.Dispose, this);
 composite = null;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

  @Override
  public void handleEvent(Event event) {
    /*
     * NB: we must wait with closing until
     * listenToDeactivate is set to true, otherwise it may
     * happen that the popup closes immediately after
     * showing up (seem to be timing issue with shell
     * creation).
     *
     * E.g. "Display" popup does not need this, but
     * "Show all Instances" and "Show all References" do.
     * They all are InspectPopupDialog instances...
     */
    if (event.widget != parent || !listenToDeactivate || parent.isDisposed()) {
      return;
    }
    parent.removeListener(SWT.Activate, this);
    asyncClose();
  }
});
origin: org.eclipse.platform/org.eclipse.jface

  @Override
  public void handleEvent(Event event) {
    /*
     * NB: we must wait with closing until
     * listenToDeactivate is set to true, otherwise it may
     * happen that the popup closes immediately after
     * showing up (seem to be timing issue with shell
     * creation).
     *
     * E.g. "Display" popup does not need this, but
     * "Show all Instances" and "Show all References" do.
     * They all are InspectPopupDialog instances...
     */
    if (event.widget != parent || !listenToDeactivate || parent.isDisposed()) {
      return;
    }
    parent.removeListener(SWT.Activate, this);
    asyncClose();
  }
});
origin: org.eclipse.platform/org.eclipse.jface

private void removeCompositeListeners(Composite c) {
  if (!c.isDisposed()) {
    printRemoveListener(c, "PAINT"); //$NON-NLS-1$
    c.removePaintListener(paintListener);
    printRemoveListener(c, "MOUSETRACK"); //$NON-NLS-1$
    c.removeMouseTrackListener(mouseTrackListener);
    printRemoveListener(c, "SWT.MenuDetect"); //$NON-NLS-1$
    c.removeListener(SWT.MenuDetect, compositeListener);
    printRemoveListener(c, "SWT.MouseDown"); //$NON-NLS-1$
    c.removeListener(SWT.MouseDown, compositeListener);
    printRemoveListener(c, "SWT.MouseDoubleClick"); //$NON-NLS-1$
    c.removeListener(SWT.MouseDoubleClick, compositeListener);
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

private void removeCompositeListeners(Composite c) {
  if (!c.isDisposed()) {
    printRemoveListener(c, "PAINT"); //$NON-NLS-1$
    c.removePaintListener(paintListener);
    printRemoveListener(c, "MOUSETRACK"); //$NON-NLS-1$
    c.removeMouseTrackListener(mouseTrackListener);
    printRemoveListener(c, "SWT.MenuDetect"); //$NON-NLS-1$
    c.removeListener(SWT.MenuDetect, compositeListener);
    printRemoveListener(c, "SWT.MouseDown"); //$NON-NLS-1$
    c.removeListener(SWT.MouseDown, compositeListener);
    printRemoveListener(c, "SWT.MouseDoubleClick"); //$NON-NLS-1$
    c.removeListener(SWT.MouseDoubleClick, compositeListener);
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.m2e.core.ui

private void removeCompositeListeners(Composite c) {
 if(!c.isDisposed()) {
  printRemoveListener(c, "PAINT"); //$NON-NLS-1$
  c.removePaintListener(paintListener);
  printRemoveListener(c, "MOUSETRACK"); //$NON-NLS-1$
  c.removeMouseTrackListener(mouseTrackListener);
  printRemoveListener(c, "SWT.MenuDetect"); //$NON-NLS-1$
  c.removeListener(SWT.MenuDetect, compositeListener);
  printRemoveListener(c, "SWT.MouseDown"); //$NON-NLS-1$
  c.removeListener(SWT.MouseDown, compositeListener);
  printRemoveListener(c, "SWT.MouseDoubleClick"); //$NON-NLS-1$
  c.removeListener(SWT.MouseDoubleClick, compositeListener);
 }
}
origin: com.eclipsesource.tabris/tabris

/**
 * <p>
 * Removes a {@link Listener} for the defined  eventType.
 * </p>
 *
 * @since 0.10
 */
public void removeGroupedListener( int eventType, Listener listener )
 throws IllegalArgumentException, IllegalStateException
{
 whenNull( listener ).throwIllegalArgument( "Listener must not be null" );
 Composite facade = findFacade();
 if( facade != null ) {
  facade.removeListener( eventType, listener );
 }
}
origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

/**
 * Removes all associations between the Editor and the underlying composite.  The
 * composite and the editor Control are <b>not</b> disposed.
 */
public void dispose () {
  if (parent != null && !parent.isDisposed()) {
    for (int i=0; i<EVENTS.length; i++) {
      parent.removeListener (EVENTS [i], controlListener);
    }
    ScrollBar hBar = parent.getHorizontalBar ();
    if (hBar != null) hBar.removeListener (SWT.Selection, scrollbarListener);
    ScrollBar vBar = parent.getVerticalBar ();
    if (vBar != null) vBar.removeListener (SWT.Selection, scrollbarListener);
  }

  parent = null;
  editor = null;
  hadFocus = false;
  controlListener = null;
  scrollbarListener = null;
}
/**
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

/**
 * Removes all associations between the Editor and the underlying composite.  The
 * composite and the editor Control are <b>not</b> disposed.
 */
public void dispose () {
  if (parent != null && !parent.isDisposed()) {
    for (int i=0; i<EVENTS.length; i++) {
      parent.removeListener (EVENTS [i], controlListener);
    }
    ScrollBar hBar = parent.getHorizontalBar ();
    if (hBar != null) hBar.removeListener (SWT.Selection, scrollbarListener);
    ScrollBar vBar = parent.getVerticalBar ();
    if (vBar != null) vBar.removeListener (SWT.Selection, scrollbarListener);
  }

  parent = null;
  editor = null;
  hadFocus = false;
  controlListener = null;
  scrollbarListener = null;
}
/**
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

/**
 * Removes all associations between the Editor and the underlying composite.  The
 * composite and the editor Control are <b>not</b> disposed.
 */
public void dispose () {
  if (parent != null && !parent.isDisposed()) {
    for (int i=0; i<EVENTS.length; i++) {
      parent.removeListener (EVENTS [i], controlListener);
    }
    ScrollBar hBar = parent.getHorizontalBar ();
    if (hBar != null) hBar.removeListener (SWT.Selection, scrollbarListener);
    ScrollBar vBar = parent.getVerticalBar ();
    if (vBar != null) vBar.removeListener (SWT.Selection, scrollbarListener);
  }

  parent = null;
  editor = null;
  hadFocus = false;
  controlListener = null;
  scrollbarListener = null;
}
/**
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

/**
 * Removes all associations between the Editor and the underlying composite.  The
 * composite and the editor Control are <b>not</b> disposed.
 */
public void dispose () {
  if (parent != null && !parent.isDisposed()) {
    for (int i=0; i<EVENTS.length; i++) {
      parent.removeListener (EVENTS [i], controlListener);
    }
    ScrollBar hBar = parent.getHorizontalBar ();
    if (hBar != null) hBar.removeListener (SWT.Selection, scrollbarListener);
    ScrollBar vBar = parent.getVerticalBar ();
    if (vBar != null) vBar.removeListener (SWT.Selection, scrollbarListener);
  }

  parent = null;
  editor = null;
  hadFocus = false;
  controlListener = null;
  scrollbarListener = null;
}
/**
origin: org.eclipse.swt.cocoa.macosx/x86_64

/**
 * Removes all associations between the Editor and the underlying composite.  The
 * composite and the editor Control are <b>not</b> disposed.
 */
public void dispose () {
  if (parent != null && !parent.isDisposed()) {
    for (int i=0; i<EVENTS.length; i++) {
      parent.removeListener (EVENTS [i], controlListener);
    }
    ScrollBar hBar = parent.getHorizontalBar ();
    if (hBar != null) hBar.removeListener (SWT.Selection, scrollbarListener);
    ScrollBar vBar = parent.getVerticalBar ();
    if (vBar != null) vBar.removeListener (SWT.Selection, scrollbarListener);
  }
  
  parent = null;
  editor = null;
  hadFocus = false;
  controlListener = null;
  scrollbarListener = null;
}
/**
origin: org.eclipse.rap/org.eclipse.rap.rwt

/**
 * Removes all associations between the Editor and the underlying composite.
 * The composite and the editor Control are <b>not</b> disposed.
 */
public void dispose() {
 if( parent != null && !parent.isDisposed() ) {
  for( int i = 0; i < EVENTS.length; i++ ) {
   parent.removeListener( EVENTS[ i ], controlListener );
  }
  ScrollBar hBar = parent.getHorizontalBar();
  ScrollBar vBar = parent.getVerticalBar();
  if( hBar != null ) {
   hBar.removeListener( SWT.Selection, scrollbarListener );
  }
  if( vBar != null ) {
   vBar.removeListener( SWT.Selection, scrollbarListener );
  }
 }
 parent = null;
 editor = null;
 hadFocus = false;
 controlListener = null;
 scrollbarListener = null;
}
origin: org.eclipse.rap/org.eclipse.rap.jface

getShell().getParent().removeListener(SWT.Deactivate,
    parentDeactivateListener);
parentDeactivateListener = null;
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

getShell().getParent().removeListener(SWT.Deactivate,
    parentDeactivateListener);
parentDeactivateListener = null;
origin: org.eclipse.platform/org.eclipse.jface

getShell().getParent().removeListener(SWT.Deactivate,
    parentDeactivateListener);
parentDeactivateListener = null;
origin: BiglySoftware/BiglyBT

  mainShell.removeListener(SWT.Deactivate, this);
if (tv.getComposite() != null && !tv.getComposite().isDisposed())
  tv.getComposite().removeListener(SWT.Deactivate, this);
org.eclipse.swt.widgetsCompositeremoveListener

Popular methods of Composite

  • setLayout
    Sets the layout which is associated with the receiver to be the argument which may be null.
  • <init>
    Constructs a new instance of this class given its parent and a style value describing its behavior a
  • setLayoutData
  • layout
    Forces a lay out (that is, sets the size and location) of all widgets that are in the parent hierarc
  • getDisplay
  • getChildren
    Returns a (possibly empty) array containing the receiver's children. Children are returned in the or
  • getShell
  • getFont
  • getLayout
    Returns layout which is associated with the receiver, or null if one has not been set.
  • setFont
  • getParent
  • computeSize
  • getParent,
  • computeSize,
  • dispose,
  • setBackground,
  • getClientArea,
  • isDisposed,
  • getBackground,
  • setVisible,
  • setSize,
  • setData

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JTextField (javax.swing)
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now