|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.eclipse.editors.completion.RuleCompletionProposal
public class RuleCompletionProposal
Holds a completion proposal to be popped up.
| Nested Class Summary | |
|---|---|
static class |
RuleCompletionProposal.RuleCompletionProposalComparator
|
| Constructor Summary | |
|---|---|
RuleCompletionProposal(int replacementOffset,
int replacementLength,
String content)
This is used when the stuff that is displayed, is the stuff that is used. |
|
RuleCompletionProposal(int replacementOffset,
int replacementLength,
String display,
String content)
This is used when a different display value is shown to what is put in when selected. |
|
RuleCompletionProposal(int replacementOffset,
int replacementLength,
String display,
String content,
org.eclipse.swt.graphics.Image image)
Also allows an icon to be used |
|
RuleCompletionProposal(int replacementOffset,
int replacementLength,
String display,
String content,
int cursorPosition)
|
|
RuleCompletionProposal(int replacementOffset,
int replacementLength,
String display,
String content,
int cursorPosition,
org.eclipse.swt.graphics.Image image)
This is used when a different display value is shown to what is put in when selected. |
|
| Method Summary | |
|---|---|
void |
apply(org.eclipse.jface.text.IDocument document)
|
boolean |
equals(Object obj)
|
String |
getAdditionalProposalInfo()
|
String |
getContent()
|
org.eclipse.jface.text.contentassist.IContextInformation |
getContextInformation()
|
int |
getCursorPosition()
|
String |
getDisplay()
|
String |
getDisplayString()
|
org.eclipse.swt.graphics.Image |
getImage()
|
int |
getPriority()
|
int |
getReplacementLength()
|
org.eclipse.swt.graphics.Point |
getSelection(org.eclipse.jface.text.IDocument document)
|
int |
hashCode()
|
void |
setImage(org.eclipse.swt.graphics.Image image)
|
void |
setPriority(int priority)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RuleCompletionProposal(int replacementOffset,
int replacementLength,
String content)
public RuleCompletionProposal(int replacementOffset,
int replacementLength,
String display,
String content)
public RuleCompletionProposal(int replacementOffset,
int replacementLength,
String display,
String content,
org.eclipse.swt.graphics.Image image)
public RuleCompletionProposal(int replacementOffset,
int replacementLength,
String display,
String content,
int cursorPosition)
public RuleCompletionProposal(int replacementOffset,
int replacementLength,
String display,
String content,
int cursorPosition,
org.eclipse.swt.graphics.Image image)
| Method Detail |
|---|
public String getDisplay()
public int getReplacementLength()
public int getCursorPosition()
public org.eclipse.swt.graphics.Image getImage()
getImage in interface org.eclipse.jface.text.contentassist.ICompletionProposalpublic String getContent()
public void setImage(org.eclipse.swt.graphics.Image image)
public int getPriority()
public void setPriority(int priority)
public String toString()
toString in class Objectpublic void apply(org.eclipse.jface.text.IDocument document)
apply in interface org.eclipse.jface.text.contentassist.ICompletionProposalpublic String getAdditionalProposalInfo()
getAdditionalProposalInfo in interface org.eclipse.jface.text.contentassist.ICompletionProposalpublic org.eclipse.jface.text.contentassist.IContextInformation getContextInformation()
getContextInformation in interface org.eclipse.jface.text.contentassist.ICompletionProposalpublic String getDisplayString()
getDisplayString in interface org.eclipse.jface.text.contentassist.ICompletionProposalpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic org.eclipse.swt.graphics.Point getSelection(org.eclipse.jface.text.IDocument document)
getSelection in interface org.eclipse.jface.text.contentassist.ICompletionProposal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||