Package org.eclipse.jface.contentassist
Class ComboContentAssistSubjectAdapter
- java.lang.Object
-
- org.eclipse.jface.contentassist.AbstractControlContentAssistSubjectAdapter
-
- org.eclipse.jface.contentassist.ComboContentAssistSubjectAdapter
-
- All Implemented Interfaces:
IContentAssistSubjectControl
@Deprecated public class ComboContentAssistSubjectAdapter extends AbstractControlContentAssistSubjectAdapter
Deprecated.As of 3.2, replaced by Platform UI's field assist supportAdapts aComboto aIContentAssistSubjectControl.Known issues:
- https://bugs.eclipse.org/bugs/show_bug.cgi?id=50121 = > Combo doesn't get Arrow_up/Down keys on GTK
- https://bugs.eclipse.org/bugs/show_bug.cgi?id=50123 = > Combo broken on MacOS X
- Since:
- 3.0
-
-
Field Summary
-
Fields inherited from class org.eclipse.jface.contentassist.AbstractControlContentAssistSubjectAdapter
DEBUG
-
-
Constructor Summary
Constructors Constructor Description ComboContentAssistSubjectAdapter(Combo combo)Deprecated.Creates a content assist subject control adapter for the given combo.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanaddSelectionListener(SelectionListener selectionListener)Deprecated.If supported, adds a selection listener.intgetCaretOffset()Deprecated.Returns the caret position relative to the start of the text in widget coordinates.ControlgetControl()Deprecated.Returns the control of this content assist subject control.IDocumentgetDocument()Deprecated.Returns this content assist subject control's document.intgetLineHeight()Deprecated.Returns the line height.PointgetLocationAtOffset(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.PointgetSelectedRange()Deprecated.Returns the selected range.PointgetWidgetSelectionRange()Deprecated.Returns the selected range in the subject's widget.voidremoveSelectionListener(SelectionListener selectionListener)Deprecated.Removes the specified selection listener.voidrevealRange(int i, int j)Deprecated.Reveals the given region.voidsetSelectedRange(int i, int j)Deprecated.Sets the selected range.-
Methods inherited from class org.eclipse.jface.contentassist.AbstractControlContentAssistSubjectAdapter
addKeyListener, appendVerifyKeyListener, getLineDelimiter, prependVerifyKeyListener, removeKeyListener, removeVerifyKeyListener, setContentAssistCueProvider, setEventConsumer, supportsVerifyKeyListener
-
-
-
-
Constructor Detail
-
ComboContentAssistSubjectAdapter
public ComboContentAssistSubjectAdapter(Combo combo)
Deprecated.Creates a content assist subject control adapter for the given combo.- Parameters:
combo- the combo to adapt
-
-
Method Detail
-
getControl
public Control getControl()
Deprecated.Description copied from interface:IContentAssistSubjectControlReturns the control of this content assist subject control.- Specified by:
getControlin interfaceIContentAssistSubjectControl- Specified by:
getControlin classAbstractControlContentAssistSubjectAdapter- Returns:
- the control of this content assist subject control
-
getLineHeight
public int getLineHeight()
Deprecated.Description copied from interface:IContentAssistSubjectControlReturns the line height.- Returns:
- line height in pixel
-
getCaretOffset
public int getCaretOffset()
Deprecated.Description copied from interface:IContentAssistSubjectControlReturns the caret position relative to the start of the text in widget coordinates.- Returns:
- the caret position relative to the start of the text in widget coordinates
-
getLocationAtOffset
public Point getLocationAtOffset(int offset)
Deprecated.Description copied from interface:IContentAssistSubjectControlReturns the x, y location of the upper left corner of the character bounding box at the specified offset in the text. The point is relative to the upper left corner of the widget client area.- Parameters:
offset- widget offset relative to the start of the content 0 <= offset >= getCharCount()- Returns:
- x, y location of the upper left corner of the character bounding box at the specified offset in the text
-
getWidgetSelectionRange
public Point getWidgetSelectionRange()
Deprecated.Description copied from interface:IContentAssistSubjectControlReturns the selected range in the subject's widget.- Returns:
- start and length of the selection, x is the offset of the
-
getSelectedRange
public Point getSelectedRange()
Deprecated.Description copied from interface:IContentAssistSubjectControlReturns the selected range.- Returns:
- start and length of the selection, x is the offset and y the length based on the subject's model (e.g. document)
-
getDocument
public IDocument getDocument()
Deprecated.Description copied from interface:IContentAssistSubjectControlReturns this content assist subject control's document.- Returns:
- the viewer's input document
-
setSelectedRange
public void setSelectedRange(int i, int j)Deprecated.Description copied from interface:IContentAssistSubjectControlSets the selected range. Offset and length based on the subject's model (e.g. document).- Parameters:
i- 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. document
-
revealRange
public void revealRange(int i, int j)Deprecated.Description copied from interface:IContentAssistSubjectControlReveals the given region. Offset and length based on the subject's model (e.g. document).- Parameters:
i- 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. document
-
addSelectionListener
public boolean addSelectionListener(SelectionListener selectionListener)
Deprecated.Description copied from interface:IContentAssistSubjectControlIf supported, adds a selection listener. A Selection event is sent by the widget when the selection has changed.- Parameters:
selectionListener- the listener- Returns:
trueif adding a selection listener is supportedSWT.ERROR_WIDGET_DISPOSED- if the receiver has been disposedSWT.ERROR_THREAD_INVALID_ACCESS- if not called from the thread that created the receiver
-
removeSelectionListener
public void removeSelectionListener(SelectionListener selectionListener)
Deprecated.Description copied from interface:IContentAssistSubjectControlRemoves the specified selection listener.- Parameters:
selectionListener- the listener
-
-