Package org.eclipse.swt.custom

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


   
    StyledText text= sourceViewer.getTextWidget();
    if (text == null || text.isDisposed())
      return;
     
    text.removeKeyListener(this);
    text.removeMouseListener(this);
    text.removeMouseMoveListener(this);
    text.removeFocusListener(this);
    text.removePaintListener(this);
   
View Full Code Here


        }

        StyledText textWidget = viewer.getTextWidget();
        textWidget.removeControlListener(controlListener);
        textWidget.removeMouseListener(mouseListener);
        textWidget.removeKeyListener(keyListener);

        viewer.getSelectionProvider().removeSelectionChangedListener(
            selectionChangedListener);
        viewer.removeViewportListener(viewportListener);
        viewer.removeTextListener(textListener);
View Full Code Here

    StyledText text = textViewer.getTextWidget();
    if (text == null || text.isDisposed())
      return;

    text.removeKeyListener(this);
    text.removeMouseListener(this);
    text.removeMouseMoveListener(this);
    text.removeFocusListener(this);
    text.removePaintListener(this);
  }
View Full Code Here

  private void removeListeners() {
    StyledText text= fTextViewer.getTextWidget();
    if (text != null) {
      if (fKeyAndMouseListener != null) {
        text.removeMouseListener(fKeyAndMouseListener);
        text.removeKeyListener(fKeyAndMouseListener);
        fKeyAndMouseListener= null;
      }
      if (fTextInputListener != null) {
        fTextViewer.removeTextInputListener(fTextInputListener);
        fTextInputListener= null;
View Full Code Here

  private void removeListeners() {
    StyledText text= fTextViewer.getTextWidget();
    if (text != null) {
      if (fKeyAndMouseListener != null) {
        text.removeMouseListener(fKeyAndMouseListener);
        text.removeKeyListener(fKeyAndMouseListener);
        fKeyAndMouseListener= null;
      }
      if (fTextInputListener != null) {
        fTextViewer.removeTextInputListener(fTextInputListener);
        fTextInputListener= null;
View Full Code Here

    }
    fDocumentEvents.clear();

    StyledText styledText= fViewer.getTextWidget();
    if (fKeyListener != null && styledText != null && !styledText.isDisposed())
      styledText.removeKeyListener(fKeyListener);

    if (fLastProposal != null) {
      if (fLastProposal instanceof ICompletionProposalExtension2) {
        ICompletionProposalExtension2 extension= (ICompletionProposalExtension2) fLastProposal;
        extension.unselected(fViewer);
View Full Code Here

  public void uninstall() {
    deactivate();

    StyledText text= fTextViewer.getTextWidget();
    if (text != null && !text.isDisposed()) {
      text.removeKeyListener(this);
      text.getDisplay().removeFilter(SWT.KeyUp, this);
      text.removeMouseListener(this);
      text.removeMouseMoveListener(this);
      text.removeFocusListener(this);
      text.removeMouseTrackListener(this);
View Full Code Here

    fTextViewer.removeTextListener(this);

    StyledText text= fTextViewer.getTextWidget();
    if (text != null && !text.isDisposed()) {
      text.removeKeyListener(this);
      text.removeMouseListener(this);
    }
  }

  /**
 
View Full Code Here

  public void uninstall() {
    deactivate();

    StyledText text= fTextViewer.getTextWidget();
    if (text != null && !text.isDisposed()) {
      text.removeKeyListener(this);
      text.getDisplay().removeFilter(SWT.KeyUp, this);
      text.removeMouseListener(this);
      text.removeMouseMoveListener(this);
      text.removeFocusListener(this);
      text.removeMouseTrackListener(this);
View Full Code Here

    }
    fDocumentEvents.clear();

    StyledText styledText= fViewer.getTextWidget();
    if (fKeyListener != null && styledText != null && !styledText.isDisposed())
      styledText.removeKeyListener(fKeyListener);

    if (fLastProposal != null) {
      if (fLastProposal instanceof ICompletionProposalExtension2) {
        ICompletionProposalExtension2 extension= (ICompletionProposalExtension2) fLastProposal;
        extension.unselected(fViewer);
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.