org.drools.eclipse.flow.ruleflow.view.property.action
Class ActionCompletionProcessor

java.lang.Object
  extended by org.drools.eclipse.editors.completion.AbstractCompletionProcessor
      extended by org.drools.eclipse.editors.completion.DefaultCompletionProcessor
          extended by org.drools.eclipse.editors.completion.RuleCompletionProcessor
              extended by org.drools.eclipse.flow.ruleflow.view.property.action.ActionCompletionProcessor
All Implemented Interfaces:
org.eclipse.jface.text.contentassist.IContentAssistProcessor

public class ActionCompletionProcessor
extends RuleCompletionProcessor

Completion for ruleflow constraints.


Field Summary
 
Fields inherited from class org.drools.eclipse.editors.completion.DefaultCompletionProcessor
IMPORT_PATTERN, METHOD_ICON, VARIABLE_ICON
 
Constructor Summary
ActionCompletionProcessor(org.jbpm.workflow.core.WorkflowProcess process)
           
 
Method Summary
protected  Map<String,String> getAttributes()
           
 org.eclipse.ui.IEditorPart getEditor()
           
protected  List<String> getFunctions()
           
 List<org.drools.lang.descr.GlobalDescr> getGlobals()
           
 List<String> getImports()
           
protected  String readBackwards(int documentOffset, org.eclipse.jface.text.IDocument doc)
          Read some text from behind the cursor position.
 void reset()
           
 void setDialect(String dialect)
           
 
Methods inherited from class org.drools.eclipse.editors.completion.RuleCompletionProcessor
addAllNewProposals, addLHSCompletionProposals, addRHSCompletionProposals, containsProposal, getCompletionProposals, mvelifyProposals, processMacros
 
Methods inherited from class org.drools.eclipse.editors.completion.DefaultCompletionProcessor
doesNotContainFieldCompletion, getAllClassProposals, getClassesInPackage, getJavaCompletionProposals, getJavaCompletionProposals, getPackage, getPossibleProposals, getUniqueImports, requestJavaCompletionProposals, requestJavaCompletionProposals
 
Methods inherited from class org.drools.eclipse.editors.completion.AbstractCompletionProcessor
computeCompletionProposals, computeContextInformation, filterProposalsOnPrefix, getCompletionProposalAutoActivationCharacters, getContextInformationAutoActivationCharacters, getContextInformationValidator, getErrorMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionCompletionProcessor

public ActionCompletionProcessor(org.jbpm.workflow.core.WorkflowProcess process)
Method Detail

setDialect

public void setDialect(String dialect)

getEditor

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

readBackwards

protected String readBackwards(int documentOffset,
                               org.eclipse.jface.text.IDocument doc)
                        throws org.eclipse.jface.text.BadLocationException
Description copied from class: AbstractCompletionProcessor
Read some text from behind the cursor position. This provides context to both filter what is shown based on what the user has typed in, and also to provide more information for the list of suggestions based on context.

Overrides:
readBackwards in class AbstractCompletionProcessor
Throws:
org.eclipse.jface.text.BadLocationException

getImports

public List<String> getImports()
Overrides:
getImports in class DefaultCompletionProcessor

getGlobals

public List<org.drools.lang.descr.GlobalDescr> getGlobals()
Overrides:
getGlobals in class DefaultCompletionProcessor

getFunctions

protected List<String> getFunctions()
Overrides:
getFunctions in class DefaultCompletionProcessor

getAttributes

protected Map<String,String> getAttributes()
Overrides:
getAttributes in class DefaultCompletionProcessor

reset

public void reset()


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.