org.eclipse.m2m.atl.adt.ui.text.atl
Class AtlCompletionProcessor

java.lang.Object
  extended by org.eclipse.m2m.atl.adt.ui.text.atl.AtlCompletionProcessor
All Implemented Interfaces:
org.eclipse.jface.text.contentassist.IContentAssistProcessor

public class AtlCompletionProcessor
extends java.lang.Object
implements org.eclipse.jface.text.contentassist.IContentAssistProcessor

The completion processor, provides content assist.


Constructor Summary
AtlCompletionProcessor(org.eclipse.ui.IEditorPart editor)
          Constructor.
 
Method Summary
 org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals(org.eclipse.jface.text.ITextViewer refViewer, int documentOffset)
          
 org.eclipse.jface.text.contentassist.IContextInformation[] computeContextInformation(org.eclipse.jface.text.ITextViewer viewer, int offset)
          
 AtlCompletionDataSource getCompletionDatasource()
           
 char[] getCompletionProposalAutoActivationCharacters()
          
 char[] getContextInformationAutoActivationCharacters()
          
 org.eclipse.jface.text.contentassist.IContextInformationValidator getContextInformationValidator()
          
 java.lang.String getErrorMessage()
          
 void orderProposalsAlphabetically(boolean order)
          Reorder proposals.
 void restrictProposalsToMatchingCases(boolean restrict)
          Tells this processor to restrict is proposals to those starting with matching cases.
 void restrictProposalsToVisibility(boolean restrict)
          Tells this processor to restrict its proposal to those element visible in the actual invocation context.
 void setCompletionProposalAutoActivationCharacters(char[] activationSet)
          Sets this processor's set of characters triggering the activation of the completion proposal computation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtlCompletionProcessor

public AtlCompletionProcessor(org.eclipse.ui.IEditorPart editor)
Constructor.

Parameters:
editor - the editor part
Method Detail

computeCompletionProposals

public org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals(org.eclipse.jface.text.ITextViewer refViewer,
                                                                                             int documentOffset)

Specified by:
computeCompletionProposals in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
See Also:
IContentAssistProcessor.computeCompletionProposals(org.eclipse.jface.text.ITextViewer, int)

computeContextInformation

public org.eclipse.jface.text.contentassist.IContextInformation[] computeContextInformation(org.eclipse.jface.text.ITextViewer viewer,
                                                                                            int offset)

Specified by:
computeContextInformation in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
See Also:
IContentAssistProcessor.computeContextInformation(org.eclipse.jface.text.ITextViewer, int)

getCompletionProposalAutoActivationCharacters

public char[] getCompletionProposalAutoActivationCharacters()

Specified by:
getCompletionProposalAutoActivationCharacters in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
See Also:
IContentAssistProcessor.getCompletionProposalAutoActivationCharacters()

getContextInformationAutoActivationCharacters

public char[] getContextInformationAutoActivationCharacters()

Specified by:
getContextInformationAutoActivationCharacters in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
See Also:
IContentAssistProcessor.getContextInformationAutoActivationCharacters()

getContextInformationValidator

public org.eclipse.jface.text.contentassist.IContextInformationValidator getContextInformationValidator()

Specified by:
getContextInformationValidator in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
See Also:
IContentAssistProcessor.getContextInformationValidator()

getErrorMessage

public java.lang.String getErrorMessage()

Specified by:
getErrorMessage in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
See Also:
IContentAssistProcessor.getErrorMessage()

orderProposalsAlphabetically

public void orderProposalsAlphabetically(boolean order)
Reorder proposals.

Parameters:
order - the order to set.

restrictProposalsToMatchingCases

public void restrictProposalsToMatchingCases(boolean restrict)
Tells this processor to restrict is proposals to those starting with matching cases.

Parameters:
restrict - true if proposals should be restricted

restrictProposalsToVisibility

public void restrictProposalsToVisibility(boolean restrict)
Tells this processor to restrict its proposal to those element visible in the actual invocation context.

Parameters:
restrict - true if proposals should be restricted

getCompletionDatasource

public AtlCompletionDataSource getCompletionDatasource()

setCompletionProposalAutoActivationCharacters

public void setCompletionProposalAutoActivationCharacters(char[] activationSet)
Sets this processor's set of characters triggering the activation of the completion proposal computation.

Parameters:
activationSet - the activation set

Copyright 2007 IBM Corporation and others.
All Rights Reserved.