Examples of removeKeyListener()


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

    fTextViewer.removeTextListener(this);

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

  /**
 
View Full Code Here

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

  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

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

    }
    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

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

  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

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

    fTextViewer.removeTextListener(this);

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

  /**
 
View Full Code Here

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

  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

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

  public void setActiveEditor(AbstractConfigEditor targetEditor) {
    if (this.editor != null && this.editor.getTextViewer() != null
        && this.editor.getTextViewer().getTextWidget() != null) {
      StyledText textWidget = this.editor.getTextViewer().getTextWidget();
      textWidget.removeMouseListener(this);
      textWidget.removeKeyListener(this);
      updateAnnotations(new HashSet<OccurrenceLocation>());
    }
    this.editor = targetEditor;
    setChecked(prefStore.getBoolean(STS_MARK_OCCURRENCES));
    if (this.editor != null && this.editor.getTextViewer() != null
View Full Code Here

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

        if (active) {
            Control control = getContext().getViewportPane().getControl();
            control.addKeyListener(this);
        }else{
            Control control = getContext().getViewportPane().getControl();
            control.removeKeyListener(this);
        }
       
    }
   
    private double distance() throws TransformException {
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.