org.drools.eclipse.flow.ruleflow.view.property.constraint
Class ImportCompletionProcessor
java.lang.Object
org.drools.eclipse.editors.completion.AbstractCompletionProcessor
org.drools.eclipse.editors.completion.DefaultCompletionProcessor
org.drools.eclipse.flow.ruleflow.view.property.constraint.ImportCompletionProcessor
- All Implemented Interfaces:
- org.eclipse.jface.text.contentassist.IContentAssistProcessor
public class ImportCompletionProcessor
- extends DefaultCompletionProcessor
Completion for ruleflow constraints.
| Methods inherited from class org.drools.eclipse.editors.completion.DefaultCompletionProcessor |
doesNotContainFieldCompletion, getAllClassProposals, getAttributes, getClassesInPackage, getFunctions, getJavaCompletionProposals, getJavaCompletionProposals, getPackage, getUniqueImports, requestJavaCompletionProposals, requestJavaCompletionProposals |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImportCompletionProcessor
public ImportCompletionProcessor()
getEditor
public org.eclipse.ui.IEditorPart getEditor()
- Overrides:
getEditor in class AbstractCompletionProcessor
getCompletionProposals
protected List<org.eclipse.jface.text.contentassist.ICompletionProposal> getCompletionProposals(org.eclipse.jface.text.ITextViewer viewer,
int documentOffset)
- Description copied from class:
AbstractCompletionProcessor
- Returns a list of RuleCompletionProposals.
- Overrides:
getCompletionProposals in class DefaultCompletionProcessor
- Returns:
getImports
public List<String> getImports()
- Overrides:
getImports in class DefaultCompletionProcessor
getGlobals
public List<org.drools.compiler.lang.descr.GlobalDescr> getGlobals()
- Overrides:
getGlobals in class DefaultCompletionProcessor
getCurrentJavaProject
protected org.eclipse.jdt.core.IJavaProject getCurrentJavaProject()
getPossibleProposals
protected List<org.eclipse.jface.text.contentassist.ICompletionProposal> getPossibleProposals(org.eclipse.jface.text.ITextViewer viewer,
int documentOffset,
String backText,
String prefix)
- Overrides:
getPossibleProposals in class DefaultCompletionProcessor
getJavaMvelCompletionProposals
protected Collection<org.eclipse.jface.text.contentassist.ICompletionProposal> getJavaMvelCompletionProposals(int documentOffset,
String javaText,
String prefix,
Map<String,String> params)
- Returns:
- a list of "MVELified" RuleCompletionProposal. That list contains only unique proposal based on
the overrriden equals in
RuleCompletionProposal to avoid the situation when several
accessors can exist for one property. for that case we want to keep only one proposal.
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.