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.ui.fieldassist
Class ContentAssistField


java.lang.Object
  extended by 

org.eclipse.jface.fieldassist.DecoratedField
      extended by 
org.eclipse.ui.fieldassist.ContentAssistField

Deprecated. As of 3.3, clients should use ControlDecoration and ContentAssistCommandAdapter instead of this class.

public class ContentAssistField
extends DecoratedField

ContentAssistField utilizes the concepts of a DecoratedField and the ContentAssistCommandAdapter to provide a decorated field that shows a content assist cue when it gets focus and invokes content assist for a specified command.

This class is not intended to be subclassed.

Since:
3.2

Constructor Summary
ContentAssistField ( Composite parent, int style, IControlCreator controlCreator, IControlContentAdapter controlContentAdapter, IContentProposalProvider proposalProvider, String commandId, char[] autoActivationCharacters)
          Deprecated. Construct a content assist field that shows a content assist cue and can assist the user with choosing content for the field.
 
Method Summary
  ContentAssistCommandAdapter getContentAssistCommandAdapter ()
          Deprecated. Return the ContentAssistCommandAdapter installed on the receiver.
 void setEnabled (boolean enabled)
          Deprecated. Set the boolean flag that determines whether the content assist is enabled.
 
Methods inherited from class org.eclipse.jface.fieldassist. DecoratedField
addFieldDecoration, getControl, getLayoutControl, hideDecoration, hideHover, setUseMaximumDecorationWidth, showDecoration, showHoverText, updateDecoration
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentAssistField

public ContentAssistField(
Composite parent,
                          int style,
                          
IControlCreator controlCreator,
                          
IControlContentAdapter controlContentAdapter,
                          
IContentProposalProvider proposalProvider,
                          
String commandId,
                          char[] autoActivationCharacters)
Deprecated. 
Construct a content assist field that shows a content assist cue and can assist the user with choosing content for the field.

Parameters:
parent - the parent of the decorated field.
style - the desired style bits for the field.
controlCreator - the IControlCreator used to specify the specific kind of control that is to be decorated.
controlContentAdapter - the IControlContentAdapter used to obtain and update the control's contents as proposals are accepted. May not be null.
proposalProvider - the IContentProposalProvider used to obtain content proposals for this control, or null if no content proposal is available.
commandId - the String id of the command that will invoke the content assistant. If not supplied, the default value will be "org.eclipse.ui.edit.text.contentAssist.proposals".
autoActivationCharacters - An array of characters that trigger auto-activation of content proposal. If specified, these characters will trigger auto-activation of the proposal popup, regardless of the specified command id.
Method Detail

setEnabled

public void setEnabled(boolean enabled)
Deprecated. 
Set the boolean flag that determines whether the content assist is enabled.

Parameters:
enabled - true if content assist is enabled and responding to user input, false if it is ignoring user input.

getContentAssistCommandAdapter

public 
ContentAssistCommandAdapter getContentAssistCommandAdapter()
Deprecated. 
Return the ContentAssistCommandAdapter installed on the receiver. This adapter is provided so that clients can configure the adapter if the default values are not appropriate.

Returns:
the ContentAssistCommandAdapter installed on 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