org.eclipse.xtext.ui.editor.hover
Class AnnotationWithQuickFixesHover.AnnotationInfo

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.hover.AnnotationWithQuickFixesHover.AnnotationInfo
Enclosing class:
AnnotationWithQuickFixesHover

public static class AnnotationWithQuickFixesHover.AnnotationInfo
extends java.lang.Object


Field Summary
 org.eclipse.jface.text.source.Annotation annotation
           
 org.eclipse.jface.text.Position position
           
 org.eclipse.jface.text.contentassist.ICompletionProposal[] proposals
           
 org.eclipse.jface.text.ITextViewer viewer
           
 
Constructor Summary
AnnotationWithQuickFixesHover.AnnotationInfo(org.eclipse.jface.text.source.Annotation annotation, org.eclipse.jface.text.Position position, org.eclipse.jface.text.ITextViewer textViewer, org.eclipse.jface.text.contentassist.ICompletionProposal[] proposals)
           
 
Method Summary
 void fillToolBar(org.eclipse.jface.action.ToolBarManager manager, org.eclipse.jface.text.IInformationControl infoControl)
          Adds actions to the given toolbar.
 org.eclipse.jface.text.contentassist.ICompletionProposal[] getCompletionProposals()
          Create completion proposals which can resolve the given annotation at the given position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

annotation

public final org.eclipse.jface.text.source.Annotation annotation

position

public final org.eclipse.jface.text.Position position

viewer

public final org.eclipse.jface.text.ITextViewer viewer

proposals

public final org.eclipse.jface.text.contentassist.ICompletionProposal[] proposals
Constructor Detail

AnnotationWithQuickFixesHover.AnnotationInfo

public AnnotationWithQuickFixesHover.AnnotationInfo(org.eclipse.jface.text.source.Annotation annotation,
                                                    org.eclipse.jface.text.Position position,
                                                    org.eclipse.jface.text.ITextViewer textViewer,
                                                    org.eclipse.jface.text.contentassist.ICompletionProposal[] proposals)
Method Detail

getCompletionProposals

public org.eclipse.jface.text.contentassist.ICompletionProposal[] getCompletionProposals()
Create completion proposals which can resolve the given annotation at the given position. Returns an empty array if no such proposals exist.

Returns:
the proposals or an empty array

fillToolBar

public void fillToolBar(org.eclipse.jface.action.ToolBarManager manager,
                        org.eclipse.jface.text.IInformationControl infoControl)
Adds actions to the given toolbar.

Parameters:
manager - the toolbar manager to add actions to
infoControl - the information control