org.drools.eclipse.flow.ruleflow.view.property.constraint
Class ImportCompletionProcessor

java.lang.Object
  extended by org.drools.eclipse.editors.completion.AbstractCompletionProcessor
      extended by org.drools.eclipse.editors.completion.DefaultCompletionProcessor
          extended by 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.


Field Summary
 
Fields inherited from class org.drools.eclipse.editors.completion.DefaultCompletionProcessor
CLASS_ICON, IMPORT_PATTERN, METHOD_ICON, VARIABLE_ICON
 
Constructor Summary
ImportCompletionProcessor()
           
 
Method Summary
protected  List getCompletionProposals(org.eclipse.jface.text.ITextViewer viewer, int documentOffset)
          Returns a list of RuleCompletionProposals.
protected  org.eclipse.jdt.core.IJavaProject getCurrentJavaProject()
           
 org.eclipse.ui.IEditorPart getEditor()
           
 List getGlobals()
           
 List getImports()
           
protected  Collection getJavaMvelCompletionProposals(int documentOffset, String javaText, String prefix, Map params)
           
protected  List getPossibleProposals(org.eclipse.jface.text.ITextViewer viewer, int documentOffset, String backText, String prefix)
           
 
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 org.drools.eclipse.editors.completion.AbstractCompletionProcessor
computeCompletionProposals, computeContextInformation, filterProposalsOnPrefix, getCompletionProposalAutoActivationCharacters, getContextInformationAutoActivationCharacters, getContextInformationValidator, getErrorMessage, readBackwards
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportCompletionProcessor

public ImportCompletionProcessor()
Method Detail

getEditor

public org.eclipse.ui.IEditorPart getEditor()
Overrides:
getEditor in class AbstractCompletionProcessor

getCompletionProposals

protected List 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 getImports()
Overrides:
getImports in class DefaultCompletionProcessor

getGlobals

public List getGlobals()
Overrides:
getGlobals in class DefaultCompletionProcessor

getCurrentJavaProject

protected org.eclipse.jdt.core.IJavaProject getCurrentJavaProject()

getPossibleProposals

protected List getPossibleProposals(org.eclipse.jface.text.ITextViewer viewer,
                                    int documentOffset,
                                    String backText,
                                    String prefix)
Overrides:
getPossibleProposals in class DefaultCompletionProcessor

getJavaMvelCompletionProposals

protected Collection getJavaMvelCompletionProposals(int documentOffset,
                                                    String javaText,
                                                    String prefix,
                                                    Map 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-2012 JBoss by Red Hat. All Rights Reserved.