Class PageProposal
- java.lang.Object
-
- com.e1c.g5.v8.dt.lcore.ui.templates.preferences.PageProposal
-
- All Implemented Interfaces:
Comparable<PageProposal>
,org.eclipse.jface.text.contentassist.ICompletionProposal
,org.eclipse.jface.text.contentassist.ICompletionProposalExtension2
,org.eclipse.jface.text.contentassist.ICompletionProposalExtension3
,org.eclipse.jface.text.contentassist.ICompletionProposalExtension5
public class PageProposal extends Object implements org.eclipse.jface.text.contentassist.ICompletionProposal, org.eclipse.jface.text.contentassist.ICompletionProposalExtension2, org.eclipse.jface.text.contentassist.ICompletionProposalExtension3, org.eclipse.jface.text.contentassist.ICompletionProposalExtension5, Comparable<PageProposal>
Default proposal for preference page usage. Proposes variable in pattern editor
-
-
Constructor Summary
Constructors Constructor Description PageProposal(org.eclipse.jface.text.ITextViewer viewer, IVariablePresentation presentation, org.eclipse.jface.text.IRegion region, boolean isRu)
Creates new instance of this with given parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(org.eclipse.jface.text.IDocument document)
void
apply(org.eclipse.jface.text.ITextViewer viewer, char trigger, int stateMask, int offset)
int
compareTo(PageProposal o)
protected IVariableStartFinder
createVariableStartFinder()
Creates newIVariableStartFinder
String
getAdditionalProposalInfo()
Object
getAdditionalProposalInfo(org.eclipse.core.runtime.IProgressMonitor monitor)
org.eclipse.jface.text.contentassist.IContextInformation
getContextInformation()
String
getDisplayString()
org.eclipse.swt.graphics.Image
getImage()
org.eclipse.jface.text.IInformationControlCreator
getInformationControlCreator()
int
getPrefixCompletionStart(org.eclipse.jface.text.IDocument document, int completionOffset)
CharSequence
getPrefixCompletionText(org.eclipse.jface.text.IDocument document, int completionOffset)
org.eclipse.swt.graphics.Point
getSelection(org.eclipse.jface.text.IDocument document)
void
selected(org.eclipse.jface.text.ITextViewer viewer, boolean smartToggle)
void
unselected(org.eclipse.jface.text.ITextViewer viewer)
boolean
validate(org.eclipse.jface.text.IDocument document, int offset, org.eclipse.jface.text.DocumentEvent event)
-
-
-
Constructor Detail
-
PageProposal
public PageProposal(org.eclipse.jface.text.ITextViewer viewer, IVariablePresentation presentation, org.eclipse.jface.text.IRegion region, boolean isRu)
Creates new instance of this with given parameters- Parameters:
viewer
- The viewer that called for content assist operation, cannot benull
presentation
- The presentation of the variable to create proposal from, cannot benull
region
- The region to insert this variable, cannot benull
-
-
Method Detail
-
apply
public void apply(org.eclipse.jface.text.IDocument document)
- Specified by:
apply
in interfaceorg.eclipse.jface.text.contentassist.ICompletionProposal
-
getSelection
public org.eclipse.swt.graphics.Point getSelection(org.eclipse.jface.text.IDocument document)
- Specified by:
getSelection
in interfaceorg.eclipse.jface.text.contentassist.ICompletionProposal
-
getAdditionalProposalInfo
public String getAdditionalProposalInfo()
- Specified by:
getAdditionalProposalInfo
in interfaceorg.eclipse.jface.text.contentassist.ICompletionProposal
-
getDisplayString
public String getDisplayString()
- Specified by:
getDisplayString
in interfaceorg.eclipse.jface.text.contentassist.ICompletionProposal
-
getImage
public org.eclipse.swt.graphics.Image getImage()
- Specified by:
getImage
in interfaceorg.eclipse.jface.text.contentassist.ICompletionProposal
-
getContextInformation
public org.eclipse.jface.text.contentassist.IContextInformation getContextInformation()
- Specified by:
getContextInformation
in interfaceorg.eclipse.jface.text.contentassist.ICompletionProposal
-
compareTo
public int compareTo(PageProposal o)
- Specified by:
compareTo
in interfaceComparable<PageProposal>
-
apply
public void apply(org.eclipse.jface.text.ITextViewer viewer, char trigger, int stateMask, int offset)
- Specified by:
apply
in interfaceorg.eclipse.jface.text.contentassist.ICompletionProposalExtension2
-
selected
public void selected(org.eclipse.jface.text.ITextViewer viewer, boolean smartToggle)
- Specified by:
selected
in interfaceorg.eclipse.jface.text.contentassist.ICompletionProposalExtension2
-
unselected
public void unselected(org.eclipse.jface.text.ITextViewer viewer)
- Specified by:
unselected
in interfaceorg.eclipse.jface.text.contentassist.ICompletionProposalExtension2
-
validate
public boolean validate(org.eclipse.jface.text.IDocument document, int offset, org.eclipse.jface.text.DocumentEvent event)
- Specified by:
validate
in interfaceorg.eclipse.jface.text.contentassist.ICompletionProposalExtension2
-
getInformationControlCreator
public org.eclipse.jface.text.IInformationControlCreator getInformationControlCreator()
- Specified by:
getInformationControlCreator
in interfaceorg.eclipse.jface.text.contentassist.ICompletionProposalExtension3
-
getPrefixCompletionText
public CharSequence getPrefixCompletionText(org.eclipse.jface.text.IDocument document, int completionOffset)
- Specified by:
getPrefixCompletionText
in interfaceorg.eclipse.jface.text.contentassist.ICompletionProposalExtension3
-
getPrefixCompletionStart
public int getPrefixCompletionStart(org.eclipse.jface.text.IDocument document, int completionOffset)
- Specified by:
getPrefixCompletionStart
in interfaceorg.eclipse.jface.text.contentassist.ICompletionProposalExtension3
-
getAdditionalProposalInfo
public Object getAdditionalProposalInfo(org.eclipse.core.runtime.IProgressMonitor monitor)
- Specified by:
getAdditionalProposalInfo
in interfaceorg.eclipse.jface.text.contentassist.ICompletionProposalExtension5
-
createVariableStartFinder
protected IVariableStartFinder createVariableStartFinder()
Creates newIVariableStartFinder
- Returns:
- The newly created
IVariableStartFinder
, cannot benull
-
-