org.eclipse.mylar.internal.team.ui.preferences.workaround
Class RegExContentProposalProvider

java.lang.Object
  extended by org.eclipse.mylar.internal.team.ui.preferences.workaround.RegExContentProposalProvider
All Implemented Interfaces:
org.eclipse.jface.fieldassist.IContentProposalProvider

public final class RegExContentProposalProvider
extends java.lang.Object
implements org.eclipse.jface.fieldassist.IContentProposalProvider

Content assist proposal provider for regular expressions.

Note: Replaces RegExContentAssistProcessor which was introduced in 3.0.

Copied from org.eclipse.ui.texteditor.RegExContentProposalProvider.

Needed by org.eclipse.mylar.internal.team.ui.preferences.workaround.MylarTeamPreferencePage.

TODO Ask platform guys to open this API

Since:
3.2

Nested Class Summary
private static class RegExContentProposalProvider.ProposalComputer
          Proposal computer.
 
Field Summary
private  boolean fIsFind
          true iff the processor is for the find field.
 
Constructor Summary
RegExContentProposalProvider(boolean isFind)
          Creates a new completion proposal provider.
 
Method Summary
 org.eclipse.jface.fieldassist.IContentProposal[] getProposals(java.lang.String contents, int position)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fIsFind

private final boolean fIsFind
true iff the processor is for the find field. false iff the processor is for the replace field.

Constructor Detail

RegExContentProposalProvider

public RegExContentProposalProvider(boolean isFind)
Creates a new completion proposal provider.

Parameters:
isFind - true if the provider is used for the 'find' field false if the provider is used for the 'reaplce' field
Method Detail

getProposals

public org.eclipse.jface.fieldassist.IContentProposal[] getProposals(java.lang.String contents,
                                                                     int position)
Specified by:
getProposals in interface org.eclipse.jface.fieldassist.IContentProposalProvider