public class ImportOrganizingProposal extends ConfigurableCompletionProposal
ConfigurableCompletionProposal.ExitPolicy, ConfigurableCompletionProposal.IReplacementTextApplier
Modifier and Type | Field and Description |
---|---|
protected ReplacingAppendable |
appendable |
protected ITextRegion |
importRegion |
protected java.lang.String |
organizedImportSection |
Constructor and Description |
---|
ImportOrganizingProposal(ReplacingAppendable appendable,
int replacementOffset,
int replacementLength,
int cursorPosition,
org.eclipse.swt.graphics.Image image,
org.eclipse.jface.viewers.StyledString displayString) |
Modifier and Type | Method and Description |
---|---|
void |
apply(org.eclipse.jface.text.IDocument document) |
ReplacingAppendable |
getAppendable()
Public for testing purpose.
|
void |
setTextApplier(ConfigurableCompletionProposal.IReplacementTextApplier textApplier) |
apply, apply, compareTo, equals, getAdditionalData, getAdditionalProposalInfo, getAdditionalProposalInfo, getContextInformation, getContextInformationPosition, getCursorPosition, getDisplayString, getImage, getInformationControlCreator, getMatcher, getPrefixCompletionStart, getPrefixCompletionText, getPriority, getReplaceContextLength, getReplacementLength, getReplacementOffset, getReplacementString, getSelection, getSelectionLength, getSelectionStart, getStyledDisplayString, getTextApplier, getTriggerCharacters, hashCode, isAutoInsertable, isLinkedMode, isValidFor, selected, setAdditionalData, setAdditionalProposalInfo, setAutoInsertable, setContextInformation, setCursorPosition, setDisplayString, setDisplayString, setHover, setImage, setMatcher, setPriority, setProposalContextResource, setReplaceContextLength, setReplacementLength, setReplacementOffset, setReplacementString, setSelectionLength, setSelectionStart, setSimpleLinkedMode, setTriggerCharacters, setUpLinkedMode, toString, unselected, validate
protected ITextRegion importRegion
protected java.lang.String organizedImportSection
protected ReplacingAppendable appendable
public ImportOrganizingProposal(ReplacingAppendable appendable, int replacementOffset, int replacementLength, int cursorPosition, org.eclipse.swt.graphics.Image image, org.eclipse.jface.viewers.StyledString displayString)
public void setTextApplier(ConfigurableCompletionProposal.IReplacementTextApplier textApplier)
setTextApplier
in class ConfigurableCompletionProposal
public void apply(org.eclipse.jface.text.IDocument document)
apply
in interface org.eclipse.jface.text.contentassist.ICompletionProposal
apply
in class ConfigurableCompletionProposal
public ReplacingAppendable getAppendable()