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

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.constraint.ConstraintCompletionProcessor
All Implemented Interfaces:
org.eclipse.jface.text.contentassist.IContentAssistProcessor

public class ConstraintCompletionProcessor
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
ConstraintCompletionProcessor(org.jbpm.workflow.core.WorkflowProcess process)
           
 
Method Summary
 org.eclipse.ui.IEditorPart getEditor()
           
 List<org.drools.lang.descr.GlobalDescr> getGlobals()
           
 List getImports()
           
protected  String readBackwards(int documentOffset, org.eclipse.jface.text.IDocument doc)
          Read some text from behind the cursor position.
 void reset()
           
 void setType(String type)
           
 
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, getAttributes, getClassesInPackage, getFunctions, 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

ConstraintCompletionProcessor

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

getEditor

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

setType

public void setType(String type)

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

getGlobals

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

reset

public void reset()


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