Examples of BestMatchHover


Examples of melnorme.lang.ide.ui.editor.BestMatchHover

  }
 
  @Override
  public ITextHover getTextHover(ISourceViewer sourceViewer, String contentType, int stateMask) {
    if(contentType.equals(DeePartitions.DEE_CODE)) {
      return new BestMatchHover(getEditor(), stateMask);
    }
    return null;
  }
View Full Code Here

Examples of melnorme.lang.ide.ui.editor.BestMatchHover

  }
 
  @Override
  public ITextHover getTextHover(ISourceViewer sourceViewer, String contentType, int stateMask) {
    if(contentType.equals(IDocument.DEFAULT_CONTENT_TYPE)) {
      return new BestMatchHover(editor, stateMask);
    }
    return null;
  }
View Full Code Here

Examples of org.eclipse.php.internal.ui.editor.hover.BestMatchHover

  @Override
  protected IInformationProvider getInformationProvider(
      ISourceViewer sourceViewer, String partitionType) {
    if (!(sourceViewer instanceof PHPStructuredTextViewer))
      return super.getInformationProvider(sourceViewer, partitionType);
    ITextHover bestMatchHover = new BestMatchHover(
        ((PHPStructuredTextViewer) sourceViewer).getTextEditor(),
        PHPUiPlugin.getDefault().getPreferenceStore());

    return new TextHoverInformationProvider(bestMatchHover);
  }
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover

   *             <code>documentationTextHover</code> element in the
   *             <code>org.eclipse.wst.sse.ui.editorConfiguration</code>
   *             extension point
   */
  protected IInformationProvider getInformationProvider(ISourceViewer sourceViewer, String partitionType) {
    ITextHover bestMatchHover = new BestMatchHover(createDocumentationHovers(partitionType));
    return new TextHoverInformationProvider(bestMatchHover);
  }
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover

        if (TextHoverManager.PROBLEM_HOVER.equalsIgnoreCase(hoverType))
          textHover = new ProblemAnnotationHoverProcessor();
        else if (TextHoverManager.ANNOTATION_HOVER.equalsIgnoreCase(hoverType))
          textHover = new AnnotationHoverProcessor();
        else if (TextHoverManager.COMBINATION_HOVER.equalsIgnoreCase(hoverType))
          textHover = new BestMatchHover(createDocumentationHovers(contentType));
        else if (TextHoverManager.DOCUMENTATION_HOVER.equalsIgnoreCase(hoverType)) {
          ITextHover[] hovers = createDocumentationHovers(contentType);
          if (hovers.length > 0) {
            textHover = hovers[0];
          }
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover

   *             <code>documentationTextHover</code> element in the
   *             <code>org.eclipse.wst.sse.ui.editorConfiguration</code>
   *             extension point
   */
  protected IInformationProvider getInformationProvider(ISourceViewer sourceViewer, String partitionType) {
    ITextHover bestMatchHover = new BestMatchHover(partitionType);
    return new TextHoverInformationProvider(bestMatchHover);
  }
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover

        if (TextHoverManager.PROBLEM_HOVER.equalsIgnoreCase(hoverType))
          textHover = new ProblemAnnotationHoverProcessor();
        else if (TextHoverManager.ANNOTATION_HOVER.equalsIgnoreCase(hoverType))
          textHover = new AnnotationHoverProcessor();
        else if (TextHoverManager.COMBINATION_HOVER.equalsIgnoreCase(hoverType))
          textHover = new BestMatchHover(contentType);
        else if (TextHoverManager.DOCUMENTATION_HOVER.equalsIgnoreCase(hoverType)) {
          ITextHover[] hovers = createDocumentationHovers(contentType);
          if (hovers.length > 0) {
            textHover = hovers[0];
          }
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.