Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.IWidgetTokenOwner.releaseWidgetToken()


      if (fContentAssistSubjectControl instanceof IWidgetTokenOwner)
        owner= (IWidgetTokenOwner) fContentAssistSubjectControl;
      else if (fViewer instanceof IWidgetTokenOwner)
        owner= (IWidgetTokenOwner) fViewer;
      if (owner != null)
        owner.releaseWidgetToken(this);
    }
  }

  /**
   * Unregisters a content assist listener.
View Full Code Here


    try {
      super.hideInformationControl();
    } finally {
      if (fTextViewer instanceof IWidgetTokenOwner) {
        IWidgetTokenOwner owner= (IWidgetTokenOwner) fTextViewer;
        owner.releaseWidgetToken(this);
      }
    }
  }

  /*
 
View Full Code Here

    try {
      super.handleInformationControlDisposed();
    } finally {
      if (fTextViewer instanceof IWidgetTokenOwner) {
        IWidgetTokenOwner owner= (IWidgetTokenOwner) fTextViewer;
        owner.releaseWidgetToken(this);
      }
    }
  }

  /*
 
View Full Code Here

   */
  private void releaseWidgetToken(int type) {
    if (fListeners[CONTEXT_SELECTOR] == null && fListeners[PROPOSAL_SELECTOR] == null) {
      if (fViewer instanceof IWidgetTokenOwner) {
        IWidgetTokenOwner owner= (IWidgetTokenOwner) fViewer;
        owner.releaseWidgetToken(this);
      }
    }
  }

  /**
 
View Full Code Here

      if (fContentAssistSubjectControl instanceof IWidgetTokenOwner)
        owner= (IWidgetTokenOwner) fContentAssistSubjectControl;
      else if (fViewer instanceof IWidgetTokenOwner)
        owner= (IWidgetTokenOwner) fViewer;
      if (owner != null)
        owner.releaseWidgetToken(this);
    }
  }

  /**
   * Unregisters a content assist listener.
View Full Code Here

            try {
                super.hideInformationControl();
            } finally {
                if (fControl instanceof IWidgetTokenOwner) {
                    IWidgetTokenOwner owner = (IWidgetTokenOwner) fControl;
                    owner.releaseWidgetToken(this);
                }
            }
            this.disposeInformationControl();

            //Restore previous active shell?
View Full Code Here

        try {
            super.handleInformationControlDisposed();
        } finally {
            if (fControl instanceof IWidgetTokenOwner) {
                IWidgetTokenOwner owner = (IWidgetTokenOwner) fControl;
                owner.releaseWidgetToken(this);
            }
        }
    }

    /*
 
View Full Code Here

   */
  private void releaseWidgetToken(int type) {
    if (fListeners[CONTEXT_SELECTOR] == null && fListeners[PROPOSAL_SELECTOR] == null) {
      if (fViewer instanceof IWidgetTokenOwner) {
        IWidgetTokenOwner owner= (IWidgetTokenOwner) fViewer;
        owner.releaseWidgetToken(this);
      }
    }
  }

  /**
 
View Full Code Here

    try {
      super.hideInformationControl();
    } finally {
      if (fTextViewer instanceof IWidgetTokenOwner) {
        IWidgetTokenOwner owner= (IWidgetTokenOwner) fTextViewer;
        owner.releaseWidgetToken(this);
      }
    }
  }

  /*
 
View Full Code Here

    try {
      super.handleInformationControlDisposed();
    } finally {
      if (fTextViewer instanceof IWidgetTokenOwner) {
        IWidgetTokenOwner owner= (IWidgetTokenOwner) fTextViewer;
        owner.releaseWidgetToken(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.