Package com._1c.g5.v8.dt.ui
Class DtSelectionFactory
- java.lang.Object
- 
- com._1c.g5.v8.dt.ui.DtSelectionFactory
 
- 
 public final class DtSelectionFactory extends Object The factory that producesIModelApiAwareSelection.
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static IModelApiAwareSelectioncreate(IModelApi modelApi, Object... objects)Creates the structured selection with the specified objects.static IStructuredSelectioncreateContextAwareIfPresented(IModelApi modelApi, Object... objects)Creates the structured selection with the specified objects.static IMultiSelectioncreateMulti(IModelApi modelApi, IStructuredSelection defaultSelection, String defaultSelectionLabel)Creates the multi selection with the specified default selection.static IMultiSelectioncreateMultiContextAwareIfPresented(IModelApi modelApi, IStructuredSelection defaultSelection, String defaultSelectionLabel)Creates the multi selection with the specified default selection.
 
- 
- 
- 
Method Detail- 
createContextAwareIfPresentedpublic static IStructuredSelection createContextAwareIfPresented(IModelApi modelApi, Object... objects) Creates the structured selection with the specified objects.It creates the IModelApiAwareSelectionif the provided {code modelApi} is not null.- Parameters:
- modelApi- the- IModelApiinstance or- null.
- objects- an objects to create selection, cannot be- null.
- Returns:
- a created structured selection, never null.
 
 - 
createMultiContextAwareIfPresentedpublic static IMultiSelection createMultiContextAwareIfPresented(IModelApi modelApi, IStructuredSelection defaultSelection, String defaultSelectionLabel) Creates the multi selection with the specified default selection.It creates the IModelApiAwareSelectionif the provided {code modelApi} is not null.- Parameters:
- modelApi- the- IModelApiinstance or- null.
- defaultSelection- the default structured selection, cannot be- null.
- defaultSelectionLabel- the label for the default selection, cannot be- null.
- Returns:
- a created multi selection, never null.
 
 - 
createMultipublic static IMultiSelection createMulti(IModelApi modelApi, IStructuredSelection defaultSelection, String defaultSelectionLabel) Creates the multi selection with the specified default selection. The created selection implements theIModelApiAwareSelection.- Parameters:
- modelApi- the- IModelApiinstance, cannot be- null.
- defaultSelection- the default structured selection, cannot be- null.
- defaultSelectionLabel- the label for the default selection, cannot be- null.
- Returns:
- a created multi selection, never null.
- Throws:
- IllegalArgumentException- if one of the specified arguments is- null.
 
 - 
createpublic static IModelApiAwareSelection create(IModelApi modelApi, Object... objects) Creates the structured selection with the specified objects. The created selection implements theIModelApiAwareSelection.>- Parameters:
- modelApi- the- IModelApiinstance, cannot be- null.
- objects- an objects to create selection, cannot be- null.
- Returns:
- a created structured selection, never null.
- Throws:
- IllegalArgumentException- if one of the specified arguments is- null.
 
 
- 
 
-