Class AbstractStructuredViewerControlContentAdapter
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.services.ui.AbstractStructuredViewerControlContentAdapter
-
- All Implemented Interfaces:
IViewerControlContentAdapter
,org.eclipse.jface.fieldassist.IControlContentAdapter
,org.eclipse.jface.fieldassist.IControlContentAdapter2
- Direct Known Subclasses:
ComboViewerContentAdapter
,ValueComboChooserViewerContentAdapter
public abstract class AbstractStructuredViewerControlContentAdapter extends Object implements IViewerControlContentAdapter
Abstract implementationIViewerControlContentAdapter
.
-
-
Constructor Summary
Constructors Constructor Description AbstractStructuredViewerControlContentAdapter(StructuredViewer viewer)
Constructor ofAbstractStructuredViewerControlContentAdapter
.
-
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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
AbstractStructuredViewerControlContentAdapter
public AbstractStructuredViewerControlContentAdapter(StructuredViewer viewer)
Constructor ofAbstractStructuredViewerControlContentAdapter
.- Parameters:
viewer
- the target 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
-
setProposalToObjects
public void setProposalToObjects(com.google.common.collect.Multimap<String,Object> proposalToObjects)
Description copied from interface:IViewerControlContentAdapter
Set multi map of proposals to object, based on target viewer content. Intended to be invoked after combo viewer input update.- Specified by:
setProposalToObjects
in interfaceIViewerControlContentAdapter
- Parameters:
proposalToObjects
- a multi map of content to proposal associations, nevernull
:- key - string representation for the target object
- value - the target object
-
-