Examples of removeListener()


Examples of org.eclipse.debug.ui.IDebugModelPresentation.removeListener()

                }

                @Override
                public void removeListener(
                    ILabelProviderListener listener) {
                  labelProvider.removeListener(listener);
                }

                @Override
                public void dispose() {
                  labelProvider.dispose();
View Full Code Here

Examples of org.eclipse.ecf.core.IContainer.removeListener()

  public void testRemoveListener() throws Exception {
    final IContainer client = getClients()[0];
    final IContainerListener l = createListener();
    client.addListener(l);
    client.removeListener(l);
    client.connect(createServerID(), null);
    assertTrue(clientConnectingEvents.size() == 0);
  }

}
View Full Code Here

Examples of org.eclipse.jface.resource.ColorRegistry.removeListener()

        textCursor = null;
        hyperlink = null;
        console = null;

        ColorRegistry colorRegistry = JFaceResources.getColorRegistry();
        colorRegistry.removeListener(propertyChangeListener);
       
        super.handleDispose();
    }

    class HyperlinkColorChangeListener implements IPropertyChangeListener {
View Full Code Here

Examples of org.eclipse.jface.viewers.ILabelDecorator.removeListener()

    @Override
    public void removeListener(final ILabelProviderListener listener) {
        if (fLabelDecorators != null) {
            for (int i = 0; i < fLabelDecorators.size(); i++) {
                final ILabelDecorator decorator = fLabelDecorators.get(i);
                decorator.removeListener(listener);
            }
        }
        fListeners.remove(listener);
    }
View Full Code Here

Examples of org.eclipse.jst.jsf.common.internal.resource.ImmutableLifecycleListener.removeListener()

            final ImmutableLifecycleListener oldListener = _listener;

            if (oldListener != null)
            {
                oldListener.removeListener(this);
            }

            _listener = listener;

            if (_listener != null)
View Full Code Here

Examples of org.eclipse.jst.jsf.designtime.internal.view.DTUIViewRoot.removeListener()

                            viewRoot.addListener(addListener);
                        }
                       
                        for (final StalenessListener removeListener : _waitingToRemove)
                        {
                            viewRoot.removeListener(removeListener);
                        }
                    }
                    catch (final ViewHandlerException e)
                    {
                        JSFCorePlugin.log(e,
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText.removeListener()

    final StyledText widget = editor.getViewer().getTextWidget();
    if (registeredWidgets.contains(widget)) {
      PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() {
        @Override
        public void run() {
          widget.removeListener(SWT.KeyDown, listener);
          widget.removeListener(SWT.MouseDown, listener);
        }
      });
      registeredWidgets.remove(widget);
    }
View Full Code Here

Examples of org.eclipse.swt.widgets.Button.removeListener()

//            contentAssistActivationKey,
//            contentAssistActivationChars);
//    adapter.setProposalAcceptanceStyle(ContentProposalAdapter.PROPOSAL_REPLACE);
   
    Button browseButton = newPushButton(tc, "Browse", "Click here to browse possible types");
    browseButton.removeListener(SWT.Selection, this);
    final AbstractSection finalSection = aSection;
    browseButton.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event event) {
        errorMessageUI.setText("");
        SelectTypeDialog dialog = new SelectTypeDialog(finalSection, candidatesToPickFrom);
View Full Code Here

Examples of org.eclipse.swt.widgets.Composite.removeListener()

    throws IllegalArgumentException, IllegalStateException
  {
    checkArgumentNotNull( listener, "Listener" );
    Composite facade = findFacade();
    if( facade != null ) {
      facade.removeListener( eventType, listener );
    }
  }

  private Composite getFacade() {
    Composite facade = findFacade();
View Full Code Here

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

        Iterator itr = controlToEditor.keySet().iterator();
        while (itr.hasNext()) {
            Control control = (Control) itr.next();
            if (!control.isDisposed()) {
                control.removeListener(SWT.Activate, controlListener);
                control.removeListener(SWT.Deactivate, controlListener);
            }
        }
        controlToEditor.clear();
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.