Drools :: Eclipse :: Base 6.2.0.Beta2

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

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

public class GlobalCompletionProcessor
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
GlobalCompletionProcessor()
           
 
Method Summary
protected  List<org.eclipse.jface.text.contentassist.ICompletionProposal> 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<org.drools.compiler.lang.descr.GlobalDescr> getGlobals()
           
 List<String> getImports()
           
protected  List<org.eclipse.jface.text.contentassist.ICompletionProposal> 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

GlobalCompletionProcessor

public GlobalCompletionProcessor()
Method Detail

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

Drools :: Eclipse :: Base 6.2.0.Beta2

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