|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.sqlbuilder.views.source.SQLCompletionProposal
public class SQLCompletionProposal
Field Summary | |
---|---|
static int |
PROPOSAL_TYPE_COLUMN
|
static int |
PROPOSAL_TYPE_SCHEMA
|
static int |
PROPOSAL_TYPE_SYNTAX
|
static int |
PROPOSAL_TYPE_TABLE
|
static int |
PROPOSAL_TYPE_UNSPECIFIED
|
Constructor Summary | |
---|---|
SQLCompletionProposal(java.lang.String replacementString,
int replacementOffset,
int documentOffset,
int replacementLength,
org.eclipse.swt.graphics.Image image,
java.lang.String displayString,
org.eclipse.jface.text.contentassist.IContextInformation contextInformation)
Creates a new completion proposal. |
|
SQLCompletionProposal(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)
Creates a new completion proposal. |
Method Summary | |
---|---|
void |
apply(org.eclipse.jface.text.IDocument document)
|
void |
apply(org.eclipse.jface.text.IDocument document,
char trigger,
int offset)
|
java.lang.String |
getAdditionalProposalInfo()
|
org.eclipse.jface.text.contentassist.IContextInformation |
getContextInformation()
|
int |
getContextInformationPosition()
|
java.lang.String |
getDisplayString()
|
org.eclipse.swt.graphics.Image |
getImage()
|
int |
getProposalType()
Gets the proposal type of this proposal. |
int |
getReplacementLength()
Gets the replacement length. |
int |
getReplacementOffset()
Gets the replacement offset. |
java.lang.String |
getReplacementString()
Gets the replacement string. |
org.eclipse.swt.graphics.Point |
getSelection(org.eclipse.jface.text.IDocument document)
|
char[] |
getTriggerCharacters()
|
boolean |
isValidFor(org.eclipse.jface.text.IDocument document,
int offset)
|
void |
setContextInformation(org.eclipse.jface.text.contentassist.IContextInformation contextInformation)
Sets the context information. |
void |
setCursorPosition(int cursorPosition)
Sets the cursor position relative to the insertion offset. |
void |
setImage(org.eclipse.swt.graphics.Image image)
Sets the image. |
void |
setProposalType(int proposalType)
Sets the proposal type for this proposal to the given type. |
void |
setReplacementLength(int replacementLength)
Sets the replacement length. |
void |
setReplacementOffset(int replacementOffset)
Sets the replacement offset. |
void |
setReplacementString(java.lang.String replacementString)
Sets the replacement string. |
void |
setTriggerCharacters(char[] triggerCharacters)
Sets the trigger characters. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PROPOSAL_TYPE_UNSPECIFIED
public static final int PROPOSAL_TYPE_SYNTAX
public static final int PROPOSAL_TYPE_SCHEMA
public static final int PROPOSAL_TYPE_TABLE
public static final int PROPOSAL_TYPE_COLUMN
Constructor Detail |
---|
public SQLCompletionProposal(java.lang.String replacementString, int replacementOffset, int documentOffset, int replacementLength, org.eclipse.swt.graphics.Image image, java.lang.String displayString, org.eclipse.jface.text.contentassist.IContextInformation contextInformation)
replacementString
- the actual string to be inserted into the documentreplacementOffset
- the offset of the text to be replaceddocumentOffset
- the offset of the text to be replacedreplacementLength
- the length of the text to be replacedimage
- the image to display for this proposaldisplayString
- the string to be displayed for the proposal If set to
null
, the replacement string will be taken as
display string.public SQLCompletionProposal(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)
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 proposalcontentInformation
- the context information associated with this proposaladditionalProposalInfo
- the additional information associated with this proposalMethod Detail |
---|
public void setContextInformation(org.eclipse.jface.text.contentassist.IContextInformation contextInformation)
contentInformation
- The context information associated with this proposalpublic void setTriggerCharacters(char[] triggerCharacters)
triggerCharacters
- The set of characters which can trigger the application of
this completion proposalpublic void setCursorPosition(int cursorPosition)
cursorPosition
- The cursorPosition to setpublic void apply(org.eclipse.jface.text.IDocument document, char trigger, int offset)
apply
in interface org.eclipse.jface.text.contentassist.ICompletionProposalExtension
public void apply(org.eclipse.jface.text.IDocument document)
apply
in interface org.eclipse.jface.text.contentassist.ICompletionProposal
public org.eclipse.swt.graphics.Point getSelection(org.eclipse.jface.text.IDocument document)
getSelection
in interface org.eclipse.jface.text.contentassist.ICompletionProposal
public org.eclipse.jface.text.contentassist.IContextInformation getContextInformation()
getContextInformation
in interface org.eclipse.jface.text.contentassist.ICompletionProposal
public org.eclipse.swt.graphics.Image getImage()
getImage
in interface org.eclipse.jface.text.contentassist.ICompletionProposal
public java.lang.String getDisplayString()
getDisplayString
in interface org.eclipse.jface.text.contentassist.ICompletionProposal
public java.lang.String getAdditionalProposalInfo()
getAdditionalProposalInfo
in interface org.eclipse.jface.text.contentassist.ICompletionProposal
public char[] getTriggerCharacters()
getTriggerCharacters
in interface org.eclipse.jface.text.contentassist.ICompletionProposalExtension
public int getContextInformationPosition()
getContextInformationPosition
in interface org.eclipse.jface.text.contentassist.ICompletionProposalExtension
public int getReplacementOffset()
public void setReplacementOffset(int replacementOffset)
replacementOffset
- The replacement offset to setpublic int getReplacementLength()
public void setReplacementLength(int replacementLength)
replacementLength
- The replacementLength to setpublic java.lang.String getReplacementString()
public void setReplacementString(java.lang.String replacementString)
replacementString
- The replacement string to setpublic void setImage(org.eclipse.swt.graphics.Image image)
image
- The image to setpublic boolean isValidFor(org.eclipse.jface.text.IDocument document, int offset)
isValidFor
in interface org.eclipse.jface.text.contentassist.ICompletionProposalExtension
public int getProposalType()
public void setProposalType(int proposalType)
proposalType
- the proposal type to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |