| java.lang.Object org.drools.eclipse.editors.completion.AbstractCompletionProcessor org.drools.eclipse.editors.completion.DefaultCompletionProcessor
All known Subclasses: org.drools.eclipse.editors.completion.RuleCompletionProcessor,
DefaultCompletionProcessor | public class DefaultCompletionProcessor extends AbstractCompletionProcessor (Code) | | This is the basic completion processor that is used when the editor is outside of a rule block
partition.
The provides the content assistance for basic rule assembly stuff.
This processor will also read behind the current editing position, to provide some context to
help provide the pop up list.
author: Michael Neale, Kris Verlaenen |
Method Summary | |
protected Map | getAttributes() | protected List | getClassesInPackage() | protected List | getCompletionProposals(ITextViewer viewer, int documentOffset) | protected List | getFunctions() | protected List | getGlobals() | protected List | getImports() | protected List | getJavaCompletionProposals(int documentOffset, String javaText, String prefix, Map params) | protected Collection | getJavaMvelCompletionProposals(int documentOffset, String javaText, String prefix, Map params) a list of "MVELified" RuleCompletionProposal. | protected String | getPackage() | protected List | getPossibleProposals(ITextViewer viewer, int documentOffset, String backText, String prefix) | protected FactTemplateDescr | getTemplate(String name) | protected Set | getTemplates() | public static String | getTextWithoutPrefix(String javaText, String prefix) | protected Set | getUniqueImports() | protected boolean | isStartOfDialectExpression(String text) | protected void | requestJavaCompletionProposals(String javaText, String prefix, int documentOffset, Map params, Collection results) |
CLASS_ICON | final protected static Image CLASS_ICON(Code) | | |
METHOD_ICON | final protected static Image METHOD_ICON(Code) | | |
START_OF_NEW_JAVA_STATEMENT | final protected static Pattern START_OF_NEW_JAVA_STATEMENT(Code) | | |
VARIABLE_ICON | final protected static Image VARIABLE_ICON(Code) | | |
getAttributes | protected Map getAttributes()(Code) | | |
getClassesInPackage | protected List getClassesInPackage()(Code) | | |
getCompletionProposals | protected List getCompletionProposals(ITextViewer viewer, int documentOffset)(Code) | | |
getJavaCompletionProposals | protected List getJavaCompletionProposals(int documentOffset, String javaText, String prefix, Map params)(Code) | | |
getJavaMvelCompletionProposals | protected Collection getJavaMvelCompletionProposals(int documentOffset, String javaText, String prefix, Map params)(Code) | | a list of "MVELified" RuleCompletionProposal. That list contains only unique proposal based onthe overrriden equals in RuleCompletionProposal to avoid the situation when severalaccessors can exist for one property. for that case we want to keep only one proposal. |
getPossibleProposals | protected List getPossibleProposals(ITextViewer viewer, int documentOffset, String backText, String prefix)(Code) | | |
getTemplates | protected Set getTemplates()(Code) | | |
getUniqueImports | protected Set getUniqueImports()(Code) | | |
isStartOfDialectExpression | protected boolean isStartOfDialectExpression(String text)(Code) | | |
requestJavaCompletionProposals | protected void requestJavaCompletionProposals(String javaText, String prefix, int documentOffset, Map params, Collection results)(Code) | | |
Methods inherited from org.drools.eclipse.editors.completion.AbstractCompletionProcessor | public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int documentOffset)(Code)(Java Doc) public IContextInformation[] computeContextInformation(ITextViewer viewer, int documentOffset)(Code)(Java Doc) protected static void filterProposalsOnPrefix(String prefix, List props)(Code)(Java Doc) public char[] getCompletionProposalAutoActivationCharacters()(Code)(Java Doc) abstract protected List getCompletionProposals(ITextViewer viewer, int documentOffset)(Code)(Java Doc) public char[] getContextInformationAutoActivationCharacters()(Code)(Java Doc) public IContextInformationValidator getContextInformationValidator()(Code)(Java Doc) protected IEditorPart getEditor()(Code)(Java Doc) public String getErrorMessage()(Code)(Java Doc) protected String readBackwards(int documentOffset, IDocument doc) throws BadLocationException(Code)(Java Doc)
|
|
|