Class HandlersUtil

java.lang.Object
com._1c.g5.v8.dt.internal.cmi.ui.handlers.HandlersUtil

public class HandlersUtil extends Object
Handlers util.
  • 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 drop
      moveds - the moved subsystems
      ownerSubs - the owner subsystems
      location - the location
      Returns:
      the new subsystem list
    • getCommandInterfaceRoot

      public static CommandInterfaceRoot getCommandInterfaceRoot(IBmObject bmObject)
      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 configuration
      contentProvider - the content provider
      labelProvider - the label provider
      name - the name
      Returns:
      the command group
    • getSelectedItems

      public static <T> List<T> getSelectedItems(IStructuredSelection selection, Class<T> targetClass)
      Gets items from selection.
      Parameters:
      selection - the selection
      targetClass - the target class
      Returns:
      the target class items
    • getSelectedItems

      public static <T> List<T> getSelectedItems(Object[] selection, Class<T> targetClass)
      Gets items from selection.
      Parameters:
      selection - the selection
      targetClass - the target class
      Returns:
      the target class items
    • isCommandsSectionSelected

      public static boolean isCommandsSectionSelected(Object menuId, CommandInterfaceEditor editor)
      Is commands section selected.
      Parameters:
      menuId - the menu Id
      editor - the editor
      Returns:
      true if is
    • isSubsystemsSectionSelected

      public static boolean isSubsystemsSectionSelected(Object menuId, CommandInterfaceEditor editor)
      Is subsystems section selected.
      Parameters:
      menuId - the menu Id
      editor - the editor
      Returns:
      true if is