|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.systemz.common.editor.extensionpoints.contentassist.SimpleCompletionProposal
public class SimpleCompletionProposal
A simple replacement proposal that works in both LPEX and newer editors. Because LPEX does not support the apply() method, this method cannot be over-ridden.
| Constructor Summary | |
|---|---|
SimpleCompletionProposal(java.lang.String displayString,
java.lang.String replacementString,
org.eclipse.swt.graphics.Image image,
org.eclipse.jface.text.contentassist.IContextInformation contextInformation,
java.lang.String additionalProposalInfo,
int replacementOffset,
ECompletionProposalType type)
Creates a new completion proposal. |
|
| Method Summary | |
|---|---|
void |
apply(org.eclipse.jface.text.IDocument arg0)
Deprecated. |
java.lang.String |
getAdditionalProposalInfo()
|
org.eclipse.jface.text.contentassist.IContextInformation |
getContextInformation()
|
java.lang.String |
getDisplayString()
|
org.eclipse.swt.graphics.Image |
getImage()
|
int |
getReplacementOffset()
|
java.lang.String |
getReplacementString()
|
org.eclipse.swt.graphics.Point |
getSelection(org.eclipse.jface.text.IDocument arg0)
Deprecated. |
ECompletionProposalType |
getType()
The built-in type of the proposal. |
void |
setContextInformation(org.eclipse.jface.text.contentassist.IContextInformation information)
For recommendations on creating IContextInformation objects, see the ICompletionProposalComputer.computeContextInformation() method. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleCompletionProposal(java.lang.String displayString,
java.lang.String replacementString,
org.eclipse.swt.graphics.Image image,
org.eclipse.jface.text.contentassist.IContextInformation contextInformation,
java.lang.String additionalProposalInfo,
int replacementOffset,
ECompletionProposalType type)
ICompletionProposalComputer.computeContextInformation() method.
displayString - the string to be displayed for the proposalreplacementString - the actual string to be inserted into the documentimage - the image to display for this proposalcontextInformation - the context information associated with this proposaladditionalProposalInfo - the additional information associated with this proposalreplacementOffset - the offset of the text to be replacedtype - the base type of the proposal, may be null| Method Detail |
|---|
@Deprecated public final void apply(org.eclipse.jface.text.IDocument arg0)
apply in interface org.eclipse.jface.text.contentassist.ICompletionProposalpublic java.lang.String getAdditionalProposalInfo()
getAdditionalProposalInfo in interface org.eclipse.jface.text.contentassist.ICompletionProposalpublic void setContextInformation(org.eclipse.jface.text.contentassist.IContextInformation information)
ICompletionProposalComputer.computeContextInformation() method.
information - the context information associated with this proposalpublic org.eclipse.jface.text.contentassist.IContextInformation getContextInformation()
getContextInformation in interface org.eclipse.jface.text.contentassist.ICompletionProposalpublic java.lang.String getDisplayString()
getDisplayString in interface org.eclipse.jface.text.contentassist.ICompletionProposalpublic org.eclipse.swt.graphics.Image getImage()
getImage in interface org.eclipse.jface.text.contentassist.ICompletionProposal@Deprecated public org.eclipse.swt.graphics.Point getSelection(org.eclipse.jface.text.IDocument arg0)
getSelection in interface org.eclipse.jface.text.contentassist.ICompletionProposalpublic int getReplacementOffset()
public java.lang.String getReplacementString()
public ECompletionProposalType getType()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||