Class CommandInterfaceTaskFactory
java.lang.Object
com._1c.g5.v8.dt.internal.cmi.tasks.CommandInterfaceTaskFactory
- All Implemented Interfaces:
ICommandInterfaceTaskFactory
Default implementation of
ICommandInterfaceTaskFactory
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIBmTask<org.eclipse.core.runtime.IStatus>
createAddCommandToMainSectionTask
(Configuration configuration, Command command) Creates a task responsible for adding the command to the main section.IBmTask<org.eclipse.core.runtime.IStatus>
createRemoveCommandFromMainSectionTask
(CommandInterface commandInterface, Command command, CommandContainer commandContainer) Creates a task responsible for the removal of the command from the command interface.IBmTask<org.eclipse.core.runtime.IStatus>
createRemoveCommandGroupFromMainSectionTask
(CommandInterface commandInterface, CustomCommandItemGroup customCommandItemGroup, CommandContainer commandContainer) Creates a task responsible for the removal of the command group from the command interface.IBmTask<org.eclipse.core.runtime.IStatus>
createSetCommandOrderTask
(CommandInterface commandInterface, CommandGroup group, List<Command> commands) Creates a task responsible for setting particular command order within the group.IBmTask<org.eclipse.core.runtime.IStatus>
createSetCommandPlacementTask
(CommandInterface commandInterface, Command command, CommandGroup destinationGroup) Creates a task responsible for placing the command to the specified group.IBmTask<org.eclipse.core.runtime.IStatus>
createSetCommandVisibilityTask
(CommandInterface commandInterface, Command command, AdjustableBoolean visibility) Creates a task responsible for setting the specified visibility for the command.IBmTask<org.eclipse.core.runtime.IStatus>
createSetDefaultCommandOrderTask
(CommandInterface commandInterface, CommandGroup group) Creates a task responsible for restoring default command order within the group.IBmTask<org.eclipse.core.runtime.IStatus>
createSetDefaultCommandPlacementTask
(CommandInterface commandInterface, Command command) Creates a task responsible for restoring default placement of the given command.IBmTask<org.eclipse.core.runtime.IStatus>
createSetDefaultCommandVisibilityTask
(CommandInterface commandInterface, Command command) Creates a task responsible for restoring default visibility of the given command.IBmTask<org.eclipse.core.runtime.IStatus>
createSetDefaultSubsystemOrderTask
(CommandInterface commandInterface) Creates a task responsible for restoring default subsystem order.IBmTask<org.eclipse.core.runtime.IStatus>
createSetDefaultSubsystemVisibilityTask
(CommandInterface commandInterface, Subsystem subsystem) Creates a task responsible for restoring default visibility for the given subsystem.IBmTask<org.eclipse.core.runtime.IStatus>
createSetSubsystemOrderTask
(CommandInterface commandInterface, List<Subsystem> subsystems) Creates a task responsible for setting the specified subsystem order.IBmTask<org.eclipse.core.runtime.IStatus>
createSetSubsystemVisibilityTask
(CommandInterface commandInterface, Subsystem subsystem, AdjustableBoolean visibility) Creates a task responsible for setting visibility for the given subsystem.
-
Constructor Details
-
CommandInterfaceTaskFactory
public CommandInterfaceTaskFactory()
-
-
Method Details
-
createAddCommandToMainSectionTask
public IBmTask<org.eclipse.core.runtime.IStatus> createAddCommandToMainSectionTask(Configuration configuration, Command command) Creates a task responsible for adding the command to the main section.- Specified by:
createAddCommandToMainSectionTask
in interfaceICommandInterfaceTaskFactory
- Parameters:
configuration
- the configuration.command
- the command.- Returns:
- created task.
-
createRemoveCommandFromMainSectionTask
public IBmTask<org.eclipse.core.runtime.IStatus> createRemoveCommandFromMainSectionTask(CommandInterface commandInterface, Command command, CommandContainer commandContainer) Creates a task responsible for the removal of the command from the command interface.- Specified by:
createRemoveCommandFromMainSectionTask
in interfaceICommandInterfaceTaskFactory
- Parameters:
commandInterface
- the command interface.command
- the command.commandContainer
- the command container- Returns:
- created task.
-
createRemoveCommandGroupFromMainSectionTask
public IBmTask<org.eclipse.core.runtime.IStatus> createRemoveCommandGroupFromMainSectionTask(CommandInterface commandInterface, CustomCommandItemGroup customCommandItemGroup, CommandContainer commandContainer) Creates a task responsible for the removal of the command group from the command interface.- Specified by:
createRemoveCommandGroupFromMainSectionTask
in interfaceICommandInterfaceTaskFactory
- Parameters:
commandInterface
- the command interface.commandContainer
- the command container- Returns:
- created task.
-
createSetCommandOrderTask
public IBmTask<org.eclipse.core.runtime.IStatus> createSetCommandOrderTask(CommandInterface commandInterface, CommandGroup group, List<Command> commands) Creates a task responsible for setting particular command order within the group.- Specified by:
createSetCommandOrderTask
in interfaceICommandInterfaceTaskFactory
- Parameters:
commandInterface
- the command interface.group
- the group.commands
- the commands order.- Returns:
- created task.
-
createSetCommandPlacementTask
public IBmTask<org.eclipse.core.runtime.IStatus> createSetCommandPlacementTask(CommandInterface commandInterface, Command command, CommandGroup destinationGroup) Creates a task responsible for placing the command to the specified group.- Specified by:
createSetCommandPlacementTask
in interfaceICommandInterfaceTaskFactory
- Parameters:
commandInterface
- the command interface.command
- the command.destinationGroup
- the destination groupl- Returns:
- created task.
-
createSetCommandVisibilityTask
public IBmTask<org.eclipse.core.runtime.IStatus> createSetCommandVisibilityTask(CommandInterface commandInterface, Command command, AdjustableBoolean visibility) Creates a task responsible for setting the specified visibility for the command.- Specified by:
createSetCommandVisibilityTask
in interfaceICommandInterfaceTaskFactory
- Parameters:
commandInterface
- the command interface.command
- the command.visibility
- the visibility.- Returns:
- created task.
-
createSetDefaultCommandOrderTask
public IBmTask<org.eclipse.core.runtime.IStatus> createSetDefaultCommandOrderTask(CommandInterface commandInterface, CommandGroup group) Creates a task responsible for restoring default command order within the group.- Specified by:
createSetDefaultCommandOrderTask
in interfaceICommandInterfaceTaskFactory
- Parameters:
commandInterface
- the command interface.group
- the group.- Returns:
- created task.
-
createSetDefaultCommandPlacementTask
public IBmTask<org.eclipse.core.runtime.IStatus> createSetDefaultCommandPlacementTask(CommandInterface commandInterface, Command command) Creates a task responsible for restoring default placement of the given command.- Specified by:
createSetDefaultCommandPlacementTask
in interfaceICommandInterfaceTaskFactory
- Parameters:
commandInterface
- the command interface.command
- the command.- Returns:
- created task.
-
createSetDefaultCommandVisibilityTask
public IBmTask<org.eclipse.core.runtime.IStatus> createSetDefaultCommandVisibilityTask(CommandInterface commandInterface, Command command) Creates a task responsible for restoring default visibility of the given command.- Specified by:
createSetDefaultCommandVisibilityTask
in interfaceICommandInterfaceTaskFactory
- Parameters:
commandInterface
- the command interface.command
- the command.- Returns:
- created task.
-
createSetDefaultSubsystemOrderTask
public IBmTask<org.eclipse.core.runtime.IStatus> createSetDefaultSubsystemOrderTask(CommandInterface commandInterface) Creates a task responsible for restoring default subsystem order.- Specified by:
createSetDefaultSubsystemOrderTask
in interfaceICommandInterfaceTaskFactory
- Parameters:
commandInterface
- the command interface.- Returns:
- created task.
-
createSetDefaultSubsystemVisibilityTask
public IBmTask<org.eclipse.core.runtime.IStatus> createSetDefaultSubsystemVisibilityTask(CommandInterface commandInterface, Subsystem subsystem) Creates a task responsible for restoring default visibility for the given subsystem.- Specified by:
createSetDefaultSubsystemVisibilityTask
in interfaceICommandInterfaceTaskFactory
- Parameters:
commandInterface
- the command interface.subsystem
- the subsystem.- Returns:
- created task.
-
createSetSubsystemOrderTask
public IBmTask<org.eclipse.core.runtime.IStatus> createSetSubsystemOrderTask(CommandInterface commandInterface, List<Subsystem> subsystems) Creates a task responsible for setting the specified subsystem order.- Specified by:
createSetSubsystemOrderTask
in interfaceICommandInterfaceTaskFactory
- Parameters:
commandInterface
- the command interface.subsystems
- the subsystem order.- Returns:
- created task.
-
createSetSubsystemVisibilityTask
public IBmTask<org.eclipse.core.runtime.IStatus> createSetSubsystemVisibilityTask(CommandInterface commandInterface, Subsystem subsystem, AdjustableBoolean visibility) Creates a task responsible for setting visibility for the given subsystem.- Specified by:
createSetSubsystemVisibilityTask
in interfaceICommandInterfaceTaskFactory
- Parameters:
commandInterface
- the command interface.subsystem
- the subsystem.visibility
- the visibility.- Returns:
- created task.
-