Package org.eclipse.jface.contentassist
Class AbstractControlContentAssistSubjectAdapter
java.lang.Object
org.eclipse.jface.contentassist.AbstractControlContentAssistSubjectAdapter
- All Implemented Interfaces:
- IContentAssistSubjectControl
- Direct Known Subclasses:
- ComboContentAssistSubjectAdapter,- TextContentAssistSubjectAdapter
@Deprecated
public abstract class AbstractControlContentAssistSubjectAdapter
extends Object
implements IContentAssistSubjectControl
Deprecated.
As of 3.2, replaced by Platform UI's field assist support
An 
AbstractControlContentAssistSubjectAdapter delegates assistance requests from a
 content assistant
 to a Control.
 A visual feedback can be configured via setContentAssistCueProvider(ILabelProvider).- Since:
- 3.0
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddKeyListener(KeyListener keyListener) Deprecated.Adds the listener to the collection of listeners who will be notified when keys are pressed and released on the system keyboard, by sending it one of the messages defined in theKeyListenerinterface.booleanappendVerifyKeyListener(VerifyKeyListener verifyKeyListener) Deprecated.If supported, appends a verify key listener to the viewer's list of verify key listeners.abstract ControlDeprecated.Returns the control of this content assist subject control.Deprecated.Returns the line delimiter used for entering new lines by key down or paste operation.booleanprependVerifyKeyListener(VerifyKeyListener verifyKeyListener) Deprecated.If supported, inserts the verify key listener at the beginning of this content assist subject's list of verify key listeners.voidremoveKeyListener(KeyListener keyListener) Deprecated.Removes the listener from the collection of listeners who will be notified when keys are pressed and released on the system keyboard.voidremoveVerifyKeyListener(VerifyKeyListener verifyKeyListener) Deprecated.Removes the verify key listener from this content assist subject control's list of verify key listeners.voidsetContentAssistCueProvider(ILabelProvider labelProvider) Deprecated.Sets the visual feedback provider for content assist.voidsetEventConsumer(IEventConsumer eventConsumer) Deprecated.If supported, registers an event consumer with this content assist subject.booleanDeprecated.Tests whether a verify key listener can be added either usingprependVerifyKeyListenerorIContentAssistSubjectControl.appendVerifyKeyListener(VerifyKeyListener).Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jface.contentassist.IContentAssistSubjectControladdSelectionListener, getCaretOffset, getDocument, getLineHeight, getLocationAtOffset, getSelectedRange, getWidgetSelectionRange, removeSelectionListener, revealRange, setSelectedRange
- 
Field Details- 
DEBUGprotected static final boolean DEBUGDeprecated.
 
- 
- 
Constructor Details- 
AbstractControlContentAssistSubjectAdapterpublic AbstractControlContentAssistSubjectAdapter()Deprecated.Creates a newAbstractControlContentAssistSubjectAdapter.
 
- 
- 
Method Details- 
getControlDeprecated.Description copied from interface:IContentAssistSubjectControlReturns the control of this content assist subject control.- Specified by:
- getControlin interface- IContentAssistSubjectControl
- Returns:
- the control of this content assist subject control
 
- 
addKeyListenerDeprecated.Description copied from interface:IContentAssistSubjectControlAdds the listener to the collection of listeners who will be notified when keys are pressed and released on the system keyboard, by sending it one of the messages defined in theKeyListenerinterface.- Specified by:
- addKeyListenerin interface- IContentAssistSubjectControl
- Parameters:
- keyListener- the listener which should be notified
- See Also:
 
- 
removeKeyListenerDeprecated.Description copied from interface:IContentAssistSubjectControlRemoves the listener from the collection of listeners who will be notified when keys are pressed and released on the system keyboard.- Specified by:
- removeKeyListenerin interface- IContentAssistSubjectControl
- Parameters:
- keyListener- the listener which should be notified
- See Also:
 
- 
supportsVerifyKeyListenerpublic boolean supportsVerifyKeyListener()Deprecated.Description copied from interface:IContentAssistSubjectControlTests whether a verify key listener can be added either usingprependVerifyKeyListenerorIContentAssistSubjectControl.appendVerifyKeyListener(VerifyKeyListener).- Specified by:
- supportsVerifyKeyListenerin interface- IContentAssistSubjectControl
- Returns:
- trueif adding verify key listeners is supported
 
- 
appendVerifyKeyListenerDeprecated.Description copied from interface:IContentAssistSubjectControlIf supported, appends a verify key listener to the viewer's list of verify key listeners. If the listener is already registered with the viewer this call moves the listener to the end of the list.Note: This content assist subject control may not support appending a verify listener, in which case falsewill be returned. If this content assist subject control only supportsaddVerifyKeyListenerthen this method can be used butprependVerifyKeyListenermust returnfalse.- Specified by:
- appendVerifyKeyListenerin interface- IContentAssistSubjectControl
- Parameters:
- verifyKeyListener- the listener to be added
- Returns:
- trueif the listener was added
 
- 
prependVerifyKeyListenerDeprecated.Description copied from interface:IContentAssistSubjectControlIf supported, inserts the verify key listener at the beginning of this content assist subject's list of verify key listeners. If the listener is already registered with the viewer this call moves the listener to the beginning of the list.Note: This content assist subject control may not support prepending a verify listener, in which case falsewill be returned. However,IContentAssistSubjectControl.appendVerifyKeyListener(VerifyKeyListener)might work.- Specified by:
- prependVerifyKeyListenerin interface- IContentAssistSubjectControl
- Parameters:
- verifyKeyListener- the listener to be inserted
- Returns:
- trueif the listener was added
 
- 
removeVerifyKeyListenerDeprecated.Description copied from interface:IContentAssistSubjectControlRemoves the verify key listener from this content assist subject control's list of verify key listeners. If the listener is not registered, this call has no effect.- Specified by:
- removeVerifyKeyListenerin interface- IContentAssistSubjectControl
- Parameters:
- verifyKeyListener- the listener to be removed
 
- 
setEventConsumerDeprecated.Description copied from interface:IContentAssistSubjectControlIf supported, registers an event consumer with this content assist subject.- Specified by:
- setEventConsumerin interface- IContentAssistSubjectControl
- Parameters:
- eventConsumer- the content assist subject control's event consumer.- nullis a valid argument.
 
- 
getLineDelimiterDeprecated.Description copied from interface:IContentAssistSubjectControlReturns the line delimiter used for entering new lines by key down or paste operation.- Specified by:
- getLineDelimiterin interface- IContentAssistSubjectControl
- Returns:
- line delimiter used for entering new lines by key down or paste operation
 
- 
setContentAssistCueProviderDeprecated.Sets the visual feedback provider for content assist. The givenILabelProvidermethods are called withgetControl()as argument.- getImage(Object)provides the visual cue image. The image can maximally be 5 pixels wide and 8 pixels high. If- getImage(Object)returns- null, a default image is used.
- getText(Object)provides the hover info text. It is shown when hovering over the cue image or the adapted- Control. No info text is shown if- getText(Object)returns- null.
 The given ILabelProviderbecomes owned by theAbstractControlContentAssistSubjectAdapter, i.e. it gets disposed when the adaptedControlis disposed or when anotherILabelProvideris set.- Parameters:
- labelProvider- a- ILabelProvider, or- nullif no visual feedback should be shown
 
 
-