|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aptana.ide.editor.js.contentassist.JSCompletionProposal
public class JSCompletionProposal
| Field Summary | |
|---|---|
boolean |
defaultSelection
defaultSelection |
boolean |
suggestedSelection
suggestedSelection |
| Constructor Summary | |
|---|---|
JSCompletionProposal(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,
java.lang.String fileLocation,
org.eclipse.swt.graphics.Image[] userAgentImages)
Creates a new completion proposal. |
|
| Method Summary | |
|---|---|
void |
apply(org.eclipse.jface.text.IDocument document)
|
java.lang.String |
getAdditionalProposalInfo()
|
org.eclipse.jface.text.contentassist.IContextInformation |
getContextInformation()
|
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()
|
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 |
isSuggestedSelection()
|
static java.lang.String |
padToColumn(java.lang.String stringToPad,
int columnWidth)
padToColumn |
void |
setDefaultSelection(boolean defaultSelection)
|
void |
setReplacementLength(int replacementLength)
|
void |
setSuggestedSelection(boolean suggestedSelection)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean defaultSelection
public boolean suggestedSelection
| Constructor Detail |
|---|
public JSCompletionProposal(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,
java.lang.String fileLocation,
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).fileLocation - The source file location where the CA proposal was found.userAgentImages - | Method Detail |
|---|
public static java.lang.String padToColumn(java.lang.String stringToPad,
int columnWidth)
stringToPad - columnWidth -
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 java.lang.String getFileLocation()
getFileLocation in interface IUnifiedCompletionProposalpublic int getReplacementLength()
getReplacementLength in interface IUnifiedCompletionProposalpublic void setReplacementLength(int replacementLength)
replacementLength - The replacementLength to set.public org.eclipse.swt.graphics.Image[] getUserAgentImages()
getUserAgentImages in interface IUnifiedCompletionProposalIUnifiedCompletionProposal.getUserAgentImages()public boolean isSuggestedSelection()
isSuggestedSelection in interface IUnifiedCompletionProposalpublic void setSuggestedSelection(boolean suggestedSelection)
setSuggestedSelection in interface IUnifiedCompletionProposalsuggestedSelection - The suggestedSelection to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||