Class ComboViewerContentAdapter
- java.lang.Object
-
- org.eclipse.jface.fieldassist.ComboContentAdapter
-
- com._1c.g5.v8.dt.platform.services.ui.ComboViewerContentAdapter
-
- All Implemented Interfaces:
org.eclipse.jface.fieldassist.IControlContentAdapter
,org.eclipse.jface.fieldassist.IControlContentAdapter2
public class ComboViewerContentAdapter extends org.eclipse.jface.fieldassist.ComboContentAdapter
ComboContentAdapter
extension forComboViewer
object content support.Instead of selection combo items, instances of
ComboViewerContentAdapter
selecting actual content item (with relating selection events).
-
-
Constructor Summary
Constructors Constructor Description ComboViewerContentAdapter(ComboViewer comboViewer)
Constructor ofComboViewerContentAdapter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setControlContents(org.eclipse.swt.widgets.Control control, String text, int cursorPosition)
void
setProposalToObjects(com.google.common.collect.Multimap<String,Object> proposalToObjects)
Set multi map of proposals to object, based on target viewer content.
-
-
-
Constructor Detail
-
ComboViewerContentAdapter
public ComboViewerContentAdapter(ComboViewer comboViewer)
Constructor ofComboViewerContentAdapter
.- Parameters:
comboViewer
- the target combo viewer to create content adapter for, cannot benull
-
-
Method Detail
-
setControlContents
public void setControlContents(org.eclipse.swt.widgets.Control control, String text, int cursorPosition)
- Specified by:
setControlContents
in interfaceorg.eclipse.jface.fieldassist.IControlContentAdapter
- Overrides:
setControlContents
in classorg.eclipse.jface.fieldassist.ComboContentAdapter
-
setProposalToObjects
public void setProposalToObjects(com.google.common.collect.Multimap<String,Object> proposalToObjects)
Set multi map of proposals to object, based on target viewer content. Intended to be invoked after combo viewer input update.- Parameters:
proposalToObjects
- a multi map of content to proposal associations, nevernull
:- key - string representation for the target object
- value - the target object
-
-