Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.IWidgetTokenOwnerExtension


  private boolean acquireWidgetToken(int type) {
    switch (type) {
      case CONTEXT_SELECTOR:
      case PROPOSAL_SELECTOR:
        if (fContentAssistSubjectControl instanceof IWidgetTokenOwnerExtension) {
          IWidgetTokenOwnerExtension extension= (IWidgetTokenOwnerExtension) fContentAssistSubjectControl;
          return extension.requestWidgetToken(this, WIDGET_PRIORITY);
        } else if (fContentAssistSubjectControl instanceof IWidgetTokenOwner) {
          IWidgetTokenOwner owner= (IWidgetTokenOwner) fContentAssistSubjectControl;
          return owner.requestWidgetToken(this);
        } else if (fViewer instanceof IWidgetTokenOwnerExtension) {
          IWidgetTokenOwnerExtension extension= (IWidgetTokenOwnerExtension) fViewer;
          return extension.requestWidgetToken(this, WIDGET_PRIORITY);
        } else if (fViewer instanceof IWidgetTokenOwner) {
          IWidgetTokenOwner owner= (IWidgetTokenOwner) fViewer;
          return owner.requestWidgetToken(this);
        }
    }
View Full Code Here


  /*
   * @see AbstractInformationControlManager#showInformationControl(Rectangle)
   */
  protected void showInformationControl(Rectangle subjectArea) {
    if (fTextViewer instanceof IWidgetTokenOwnerExtension && fTextViewer instanceof IWidgetTokenOwner) {
      IWidgetTokenOwnerExtension extension= (IWidgetTokenOwnerExtension) fTextViewer;
      if (extension.requestWidgetToken(this, WIDGET_PRIORITY))
        super.showInformationControl(subjectArea);
    } else if (fTextViewer instanceof IWidgetTokenOwner) {
      IWidgetTokenOwner owner= (IWidgetTokenOwner) fTextViewer;
      if (owner.requestWidgetToken(this))
        super.showInformationControl(subjectArea);
View Full Code Here

      case PROPOSAL_SELECTOR:
        if (fViewer instanceof IWidgetTokenOwner) {
          IWidgetTokenOwner owner= (IWidgetTokenOwner) fViewer;
          return owner.requestWidgetToken(this);
        } else if (fViewer instanceof IWidgetTokenOwnerExtension)  {
          IWidgetTokenOwnerExtension extension= (IWidgetTokenOwnerExtension) fViewer;
          return extension.requestWidgetToken(this, WIDGET_PRIORITY);
        }
    }
    return true;
  }
View Full Code Here

  private boolean acquireWidgetToken(int type) {
    switch (type) {
      case CONTEXT_SELECTOR:
      case PROPOSAL_SELECTOR:
        if (fContentAssistSubjectControl instanceof IWidgetTokenOwnerExtension) {
          IWidgetTokenOwnerExtension extension= (IWidgetTokenOwnerExtension) fContentAssistSubjectControl;
          return extension.requestWidgetToken(this, WIDGET_PRIORITY);
        } else if (fContentAssistSubjectControl instanceof IWidgetTokenOwner) {
          IWidgetTokenOwner owner= (IWidgetTokenOwner) fContentAssistSubjectControl;
          return owner.requestWidgetToken(this);
        } else if (fViewer instanceof IWidgetTokenOwnerExtension) {
          IWidgetTokenOwnerExtension extension= (IWidgetTokenOwnerExtension) fViewer;
          return extension.requestWidgetToken(this, WIDGET_PRIORITY);
        } else if (fViewer instanceof IWidgetTokenOwner) {
          IWidgetTokenOwner owner= (IWidgetTokenOwner) fViewer;
          return owner.requestWidgetToken(this);
        }
    }
View Full Code Here

    /*
     * @see AbstractInformationControlManager#showInformationControl(Rectangle)
     */
    protected void showInformationControl(Rectangle subjectArea) {
        if (fControl instanceof IWidgetTokenOwnerExtension && fControl instanceof IWidgetTokenOwner) {
            IWidgetTokenOwnerExtension extension = (IWidgetTokenOwnerExtension) fControl;
            if (extension.requestWidgetToken(this, WIDGET_PRIORITY)) {
                super.showInformationControl(subjectArea);
            }
        } else if (fControl instanceof IWidgetTokenOwner) {
            IWidgetTokenOwner owner = (IWidgetTokenOwner) fControl;
            if (owner.requestWidgetToken(this)) {
View Full Code Here

      case PROPOSAL_SELECTOR:
        if (fViewer instanceof IWidgetTokenOwner) {
          IWidgetTokenOwner owner= (IWidgetTokenOwner) fViewer;
          return owner.requestWidgetToken(this);
        } else if (fViewer instanceof IWidgetTokenOwnerExtension)  {
          IWidgetTokenOwnerExtension extension= (IWidgetTokenOwnerExtension) fViewer;
          return extension.requestWidgetToken(this, WIDGET_PRIORITY);
        }
    }
    return true;
  }
View Full Code Here

  /*
   * @see AbstractInformationControlManager#showInformationControl(Rectangle)
   */
  protected void showInformationControl(Rectangle subjectArea) {
    if (fTextViewer instanceof IWidgetTokenOwnerExtension && fTextViewer instanceof IWidgetTokenOwner) {
      IWidgetTokenOwnerExtension extension= (IWidgetTokenOwnerExtension) fTextViewer;
      if (extension.requestWidgetToken(this, WIDGET_PRIORITY))
        super.showInformationControl(subjectArea);
    } else if (fTextViewer instanceof IWidgetTokenOwner) {
      IWidgetTokenOwner owner= (IWidgetTokenOwner) fTextViewer;
      if (owner.requestWidgetToken(this))
        super.showInformationControl(subjectArea);
View Full Code Here

  private boolean acquireWidgetToken(int type) {
    switch (type) {
      case CONTEXT_SELECTOR:
      case PROPOSAL_SELECTOR:
        if (fContentAssistSubjectControl instanceof IWidgetTokenOwnerExtension) {
          IWidgetTokenOwnerExtension extension= (IWidgetTokenOwnerExtension) fContentAssistSubjectControl;
          return extension.requestWidgetToken(this, WIDGET_PRIORITY);
        } else if (fContentAssistSubjectControl instanceof IWidgetTokenOwner) {
          IWidgetTokenOwner owner= (IWidgetTokenOwner) fContentAssistSubjectControl;
          return owner.requestWidgetToken(this);
        } else if (fViewer instanceof IWidgetTokenOwnerExtension) {
          IWidgetTokenOwnerExtension extension= (IWidgetTokenOwnerExtension) fViewer;
          return extension.requestWidgetToken(this, WIDGET_PRIORITY);
        } else if (fViewer instanceof IWidgetTokenOwner) {
          IWidgetTokenOwner owner= (IWidgetTokenOwner) fViewer;
          return owner.requestWidgetToken(this);
        }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.IWidgetTokenOwnerExtension

Copyright © 2018 www.massapicom. 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.