|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aptana.ide.editors.unified.contentassist.UnifiedCompletionProposal
public abstract class UnifiedCompletionProposal
UnifiedCompletionProposal
| Field Summary | |
|---|---|
protected java.lang.String |
additionalProposalInfo
The additional info of this proposal. |
protected org.eclipse.jface.text.contentassist.IContextInformation |
contextInformation
The context information of this proposal. |
protected int |
cursorPosition
The cursor position after this proposal has been applied. |
boolean |
defaultSelection
defaultSelection |
protected java.lang.String |
displayString
The string to be displayed in the completion proposal popup. |
protected org.eclipse.swt.graphics.Image |
image
The image to be displayed in the completion proposal popup. |
protected int |
objectType
The type of the object. |
protected boolean |
popAssistOnInsert
Do we pop code assist once the insertion has happened * |
protected int |
replacementLength
The replacement length. |
protected int |
replacementOffset
The replacement offset. |
protected java.lang.String |
replacementString
The replacement string. |
boolean |
suggestedSelection
suggestedSelection |
protected org.eclipse.jface.text.ITextViewer |
unifiedViewer
The local document viewer * |
protected org.eclipse.swt.graphics.Image[] |
userAgentImages
The list of images to display for various user agents |
| Constructor Summary | |
|---|---|
UnifiedCompletionProposal(java.lang.String replacementString,
int replacementOffset,
int replacementLength,
int cursorPosition,
org.eclipse.swt.graphics.Image image,
java.lang.String displayString,
org.eclipse.jface.text.contentassist.IContextInformation contextInformation,
java.lang.String additionalProposalInfo,
int objectType,
org.eclipse.jface.text.ITextViewer unifiedViewer,
org.eclipse.swt.graphics.Image[] userAgentImages)
Creates a new completion proposal. |
|
| Method Summary | |
|---|---|
boolean |
activateContentAssistOnInsert()
activateContentAssistOnInsert |
void |
apply(org.eclipse.jface.text.IDocument document)
|
java.lang.String |
getAdditionalProposalInfo()
|
org.eclipse.jface.text.contentassist.IContextInformation |
getContextInformation()
|
int |
getCursorPosition()
getCursorPosition |
java.lang.String |
getDisplayString()
|
java.lang.String |
getFileLocation()
|
org.eclipse.swt.graphics.Image |
getImage()
|
int |
getObjectType()
Returns the type of object this proposal contains (class, method, etc).This is used for sorting. |
int |
getReplacementLength()
|
int |
getReplacementOffset()
getReplacementOffset |
java.lang.String |
getReplacementString()
getReplacementString |
java.lang.String |
getReplaceString()
|
org.eclipse.swt.graphics.Point |
getSelection(org.eclipse.jface.text.IDocument document)
|
org.eclipse.swt.graphics.Image[] |
getUserAgentImages()
|
boolean |
isDefaultSelection()
|
boolean |
isPopAssistOnInsert()
isPopAssistOnInsert |
boolean |
isSuggestedSelection()
|
void |
scheduleContentAssistOnInsert(boolean popAssistOnInsert)
scheduleContentAssistOnInsert |
void |
setCursorPosition(int cursorPosition)
setCursorPosition |
void |
setDefaultSelection(boolean defaultSelection)
|
void |
setPopAssistOnInsert(boolean popAssistOnInsert)
setPopAssistOnInsert |
void |
setReplacementLength(int replacementLength)
|
void |
setReplacementOffset(int replacementOffset)
setReplacementOffset |
void |
setReplacementString(java.lang.String replacementString)
setReplacementString |
void |
setSuggestedSelection(boolean suggestedSelection)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String displayString
protected java.lang.String replacementString
protected int replacementOffset
protected int replacementLength
protected int cursorPosition
protected org.eclipse.swt.graphics.Image image
protected org.eclipse.jface.text.contentassist.IContextInformation contextInformation
protected java.lang.String additionalProposalInfo
protected int objectType
protected org.eclipse.jface.text.ITextViewer unifiedViewer
protected boolean popAssistOnInsert
protected org.eclipse.swt.graphics.Image[] userAgentImages
public boolean defaultSelection
public boolean suggestedSelection
| Constructor Detail |
|---|
public UnifiedCompletionProposal(java.lang.String replacementString,
int replacementOffset,
int replacementLength,
int cursorPosition,
org.eclipse.swt.graphics.Image image,
java.lang.String displayString,
org.eclipse.jface.text.contentassist.IContextInformation contextInformation,
java.lang.String additionalProposalInfo,
int objectType,
org.eclipse.jface.text.ITextViewer unifiedViewer,
org.eclipse.swt.graphics.Image[] userAgentImages)
replacementString - the actual string to be inserted into the documentreplacementOffset - the offset of the text to be replacedreplacementLength - the length of the text to be replacedcursorPosition - the position of the cursor following the insert relative to replacementOffsetimage - the image to display for this proposaldisplayString - the string to be displayed for the proposalcontextInformation - the context information associated with this proposaladditionalProposalInfo - the additional information associated with this proposalobjectType - The type of the object. This is an 'enum' of JSCompletionProposalComparator sorting types (used for
quicker sorting).unifiedViewer - userAgentImages - | Method Detail |
|---|
public int getObjectType()
public void apply(org.eclipse.jface.text.IDocument document)
apply in interface org.eclipse.jface.text.contentassist.ICompletionProposalICompletionProposal.apply(IDocument)public org.eclipse.swt.graphics.Point getSelection(org.eclipse.jface.text.IDocument document)
getSelection in interface org.eclipse.jface.text.contentassist.ICompletionProposalICompletionProposal.getSelection(IDocument)public org.eclipse.jface.text.contentassist.IContextInformation getContextInformation()
getContextInformation in interface org.eclipse.jface.text.contentassist.ICompletionProposalICompletionProposal.getContextInformation()public org.eclipse.swt.graphics.Image getImage()
getImage in interface org.eclipse.jface.text.contentassist.ICompletionProposalICompletionProposal.getImage()public java.lang.String getDisplayString()
getDisplayString in interface IUnifiedCompletionProposalgetDisplayString in interface org.eclipse.jface.text.contentassist.ICompletionProposalICompletionProposal.getDisplayString()public java.lang.String getReplaceString()
getReplaceString in interface IUnifiedCompletionProposalIUnifiedCompletionProposal.getReplaceString()public java.lang.String getAdditionalProposalInfo()
getAdditionalProposalInfo in interface org.eclipse.jface.text.contentassist.ICompletionProposalICompletionProposal.getAdditionalProposalInfo()public boolean isDefaultSelection()
isDefaultSelection in interface IUnifiedCompletionProposalpublic void setDefaultSelection(boolean defaultSelection)
setDefaultSelection in interface IUnifiedCompletionProposaldefaultSelection - The defaultSelection to set.public boolean isSuggestedSelection()
isSuggestedSelection in interface IUnifiedCompletionProposalpublic void setSuggestedSelection(boolean suggestedSelection)
setSuggestedSelection in interface IUnifiedCompletionProposalsuggestedSelection - The suggestedSelection to set.public boolean activateContentAssistOnInsert()
public void scheduleContentAssistOnInsert(boolean popAssistOnInsert)
popAssistOnInsert - public int getCursorPosition()
public void setCursorPosition(int cursorPosition)
cursorPosition - public boolean isPopAssistOnInsert()
public int getReplacementLength()
getReplacementLength in interface IUnifiedCompletionProposalpublic void setReplacementLength(int replacementLength)
replacementLength - The replacementLength to set.public void setPopAssistOnInsert(boolean popAssistOnInsert)
popAssistOnInsert - public int getReplacementOffset()
public void setReplacementOffset(int replacementOffset)
replacementOffset - public java.lang.String getReplacementString()
public void setReplacementString(java.lang.String replacementString)
replacementString - public java.lang.String getFileLocation()
getFileLocation in interface IUnifiedCompletionProposalIUnifiedCompletionProposal.getFileLocation()public org.eclipse.swt.graphics.Image[] getUserAgentImages()
getUserAgentImages in interface IUnifiedCompletionProposalIUnifiedCompletionProposal.getUserAgentImages()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||