Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.text
Class FindReplaceDocumentAdapterContentProposalProvider


java.lang.Object
  extended by 
org.eclipse.jface.text.FindReplaceDocumentAdapterContentProposalProvider
All Implemented Interfaces:
IContentProposalProvider

public class FindReplaceDocumentAdapterContentProposalProvider
extends Object
implements IContentProposalProvider

Content assist proposal provider for the FindReplaceDocumentAdapter.

Clients can subclass to provide additional proposals in case they are supported by their own find/replace mechanism.

Note: Clients must not make any assumptions about the returned proposals. This can change from release to release to adapt to changes made in FindReplaceDocumentAdapter.

Since:
3.4

Constructor Summary
FindReplaceDocumentAdapterContentProposalProvider (boolean isFind)
          Creates a new completion proposal provider.
 
Method Summary
  IContentProposal[] getProposals ( String contents, int position)
          Return an array of Objects representing the valid content proposals for a field.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindReplaceDocumentAdapterContentProposalProvider

public FindReplaceDocumentAdapterContentProposalProvider(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 'replace' field
Method Detail

getProposals

public 
IContentProposal[] getProposals(
String contents,
                                       int position)
Description copied from interface: IContentProposalProvider
Return an array of Objects representing the valid content proposals for a field.

Specified by:
getProposals in interface IContentProposalProvider
Parameters:
contents - the current contents of the text field
position - the current position of the cursor in the contents
Returns:
the array of IContentProposal that represent valid proposals for the field.

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire