Class CommandEnablingPropertyTester

java.lang.Object
org.eclipse.core.expressions.PropertyTester
com._1c.g5.v8.dt.core.expressions.AbstractDtPropertyTester
com._1c.g5.v8.dt.internal.cmi.ui.handlers.CommandEnablingPropertyTester
All Implemented Interfaces:
org.eclipse.core.expressions.IPropertyTester

public class CommandEnablingPropertyTester extends AbstractDtPropertyTester
Cmi editor commands enabling tester.
  • Constructor Details

    • CommandEnablingPropertyTester

      public CommandEnablingPropertyTester()
  • Method Details

    • test

      public boolean test(Object receiver, String property, Object[] args, Object expectedValue)
    • isDeleteCommandEnable

      public boolean isDeleteCommandEnable(IStructuredSelection selection, CommandInterfaceEditor editor)
      Checks if delete command is enabled.
      Parameters:
      selection - the current structured selection, cannot be null
      Returns:
      true if delete command enabled, false otherwise
    • isDeleteSubsystemEnable

      public boolean isDeleteSubsystemEnable(IStructuredSelection selection)
      Checks if delete subsystem is enabled.
      Parameters:
      selection - the current structured selection, cannot be null
      Returns:
      true if delete subsystem enabled, false otherwise
    • isMoveCommandEnabled

      public boolean isMoveCommandEnabled(IStructuredSelection selection)
      Checks if move commands is enabled.
      Parameters:
      selection - the current structured selection, cannot be null
      Returns:
      true if move commands enabled, false otherwise
    • checkCommandsChangeAllowance

      public boolean checkCommandsChangeAllowance(IStructuredSelection selection)
      Checks if commands section objects change allowance.
      Parameters:
      selection - the current structured selection, cannot be null
      Returns:
      true if commands section objects change allowance, false otherwise
    • checkCommandChangeAllowance

      public boolean checkCommandChangeAllowance(Object object)
      Checks if command section object change allowance.
      Parameters:
      object - the object to change, cannot be null
      Returns:
      true if command section object change allowance, false otherwise
    • checkSubsystemChangeAllowance

      public boolean checkSubsystemChangeAllowance(Object object)
      Checks if subsystems section object change allowance.
      Parameters:
      object - the object to change, cannot be null
      Returns:
      true if subsystems section object change allowance, false otherwise
    • canAddCommand

      public boolean canAddCommand(CommandInterfaceEditor editor)
      Checks if commands can be added to interface.
      Parameters:
      editor - the command interface editor, cannot be null
      Returns:
      true if commands can be added to interface, false otherwise