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
Cmi editor commands enabling tester.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAddCommand(CommandInterfaceEditor editor) Checks if commands can be added to interface.booleancheckCommandChangeAllowance(Object object) Checks if command section object change allowance.booleancheckCommandsChangeAllowance(IStructuredSelection selection) Checks if commands section objects change allowance.booleancheckSubsystemChangeAllowance(Object object) Checks if subsystems section object change allowance.booleanisDeleteCommandEnable(IStructuredSelection selection, CommandInterfaceEditor editor) Checks if delete command is enabled.booleanisDeleteSubsystemEnable(IStructuredSelection selection) Checks if delete subsystem is enabled.booleanisMoveCommandEnabled(IStructuredSelection selection) Checks if move commands is enabled.booleanMethods inherited from class com._1c.g5.v8.dt.core.expressions.AbstractDtPropertyTester
isAliveMethods inherited from class org.eclipse.core.expressions.PropertyTester
handles, instantiate, internalCreateDescriptor, internalInitialize, isDeclaringPluginActive, isInstantiated
-
Constructor Details
-
CommandEnablingPropertyTester
public CommandEnablingPropertyTester()
-
-
Method Details
-
test
-
isDeleteCommandEnable
Checks if delete command is enabled.- Parameters:
selection- the current structured selection, cannot benull- Returns:
trueif delete command enabled,falseotherwise
-
isDeleteSubsystemEnable
Checks if delete subsystem is enabled.- Parameters:
selection- the current structured selection, cannot benull- Returns:
trueif delete subsystem enabled,falseotherwise
-
isMoveCommandEnabled
Checks if move commands is enabled.- Parameters:
selection- the current structured selection, cannot benull- Returns:
trueif move commands enabled,falseotherwise
-
checkCommandsChangeAllowance
Checks if commands section objects change allowance.- Parameters:
selection- the current structured selection, cannot benull- Returns:
trueif commands section objects change allowance,falseotherwise
-
checkCommandChangeAllowance
Checks if command section object change allowance.- Parameters:
object- the object to change, cannot benull- Returns:
trueif command section object change allowance,falseotherwise
-
checkSubsystemChangeAllowance
Checks if subsystems section object change allowance.- Parameters:
object- the object to change, cannot benull- Returns:
trueif subsystems section object change allowance,falseotherwise
-
canAddCommand
Checks if commands can be added to interface.- Parameters:
editor- the command interface editor, cannot benull- Returns:
trueif commands can be added to interface,falseotherwise
-