Class HandlersUtil
java.lang.Object
com._1c.g5.v8.dt.internal.cmi.ui.handlers.HandlersUtil
Handlers util.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateNewSubsystemsList(MdObject target, List<Subsystem> moveds, List<Subsystem> ownerSubs, int location) Creates new subsystem list.static CommandInterfaceRootgetCommandInterfaceRoot(IBmObject bmObject) Gets command interface root.static CommandGroupgetItemGroupByString(Configuration configuration, CommandGroupContentProvider contentProvider, CommandInterfaceLabelProvider labelProvider, String name) Gets command group by name.static <T> List<T>getSelectedItems(Object[] selection, Class<T> targetClass) Gets items from selection.static <T> List<T>getSelectedItems(IStructuredSelection selection, Class<T> targetClass) Gets items from selection.static booleanisCommandsSectionSelected(Object menuId, CommandInterfaceEditor editor) Is commands section selected.static booleanisSubsystemsSectionSelected(Object menuId, CommandInterfaceEditor editor) Is subsystems section selected.
-
Constructor Details
-
HandlersUtil
public HandlersUtil()
-
-
Method Details
-
createNewSubsystemsList
public static List<Subsystem> createNewSubsystemsList(MdObject target, List<Subsystem> moveds, List<Subsystem> ownerSubs, int location) Creates new subsystem list.- Parameters:
target- the target dropmoveds- the moved subsystemsownerSubs- the owner subsystemslocation- the location- Returns:
- the new subsystem list
-
getCommandInterfaceRoot
Gets command interface root.- Parameters:
bmObject- the bm-object- Returns:
- the ci root
-
getItemGroupByString
public static CommandGroup getItemGroupByString(Configuration configuration, CommandGroupContentProvider contentProvider, CommandInterfaceLabelProvider labelProvider, String name) Gets command group by name.- Parameters:
configuration- the configurationcontentProvider- the content providerlabelProvider- the label providername- the name- Returns:
- the command group
-
getSelectedItems
Gets items from selection.- Parameters:
selection- the selectiontargetClass- the target class- Returns:
- the target class items
-
getSelectedItems
Gets items from selection.- Parameters:
selection- the selectiontargetClass- the target class- Returns:
- the target class items
-
isCommandsSectionSelected
Is commands section selected.- Parameters:
menuId- the menu Ideditor- the editor- Returns:
- true if is
-
isSubsystemsSectionSelected
Is subsystems section selected.- Parameters:
menuId- the menu Ideditor- the editor- Returns:
- true if is
-