public class ComboContentAssistSubjectAdapter extends AbstractControlContentAssistSubjectAdapter
Combo to a IContentAssistSubjectControl.
Known issues:
DEBUG| Constructor and Description |
|---|
ComboContentAssistSubjectAdapter(Combo combo)
Deprecated.
Creates a content assist subject control adapter for the given combo.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addSelectionListener(SelectionListener selectionListener)
Deprecated.
If supported, adds a selection listener.
|
int |
getCaretOffset()
Deprecated.
Returns the caret position relative to the start of the text in widget
coordinates.
|
Control |
getControl()
Deprecated.
Returns the control of this content assist subject control.
|
IDocument |
getDocument()
Deprecated.
Returns this content assist subject control's document.
|
int |
getLineHeight()
Deprecated.
Returns the line height.
|
Point |
getLocationAtOffset(int offset)
Deprecated.
Returns the x, y location of the upper left corner of the character
bounding box at the specified offset in the text.
|
Point |
getSelectedRange()
Deprecated.
Returns the selected range.
|
Point |
getWidgetSelectionRange()
Deprecated.
Returns the selected range in the subject's widget.
|
void |
removeSelectionListener(SelectionListener selectionListener)
Deprecated.
Removes the specified selection listener.
|
void |
revealRange(int i,
int j)
Deprecated.
Reveals the given region.
|
void |
setSelectedRange(int i,
int j)
Deprecated.
Sets the selected range.
|
addKeyListener, appendVerifyKeyListener, getLineDelimiter, prependVerifyKeyListener, removeKeyListener, removeVerifyKeyListener, setContentAssistCueProvider, setEventConsumer, supportsVerifyKeyListenerpublic ComboContentAssistSubjectAdapter(Combo combo)
combo - the combo to adaptpublic Control getControl()
IContentAssistSubjectControlgetControl in interface IContentAssistSubjectControlgetControl in class AbstractControlContentAssistSubjectAdapterpublic int getLineHeight()
IContentAssistSubjectControlpublic int getCaretOffset()
IContentAssistSubjectControlpublic Point getLocationAtOffset(int offset)
IContentAssistSubjectControloffset - widget offset relative to the start of the content 0
<= offset <= getCharCount()public Point getWidgetSelectionRange()
IContentAssistSubjectControlpublic Point getSelectedRange()
IContentAssistSubjectControlpublic IDocument getDocument()
IContentAssistSubjectControlpublic void setSelectedRange(int i,
int j)
IContentAssistSubjectControli - the offset of the selection based on the subject's model e.g. documentj - the length of the selection based on the subject's model e.g. documentpublic void revealRange(int i,
int j)
IContentAssistSubjectControli - the offset of the selection based on the subject's model e.g. documentj - the length of the selection based on the subject's model e.g. documentpublic boolean addSelectionListener(SelectionListener selectionListener)
IContentAssistSubjectControlselectionListener - the listenertrue if adding a selection listener is supported
SWT.ERROR_WIDGET_DISPOSED - if the receiver has been disposedSWT.ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiverpublic void removeSelectionListener(SelectionListener selectionListener)
IContentAssistSubjectControlselectionListener - the listenerGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.