Class SetAutoWidthCalculationOperation
- java.lang.Object
-
- org.eclipse.core.commands.operations.AbstractOperation
-
- com._1c.g5.v8.dt.moxel.ui.operations.BaseOperation
-
- com._1c.g5.v8.dt.moxel.ui.operations.SetAutoWidthCalculationOperation
-
- All Implemented Interfaces:
org.eclipse.core.commands.operations.IUndoableOperation
public class SetAutoWidthCalculationOperation extends BaseOperation
Operation for setting automatic width calculation mode for range of columns.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.moxel.ui.operations.BaseOperation
sheet
-
-
Constructor Summary
Constructors Constructor Description SetAutoWidthCalculationOperation(String label, org.eclipse.core.commands.operations.IUndoContext undoContext, SheetAccessor sheet, int beginColumnIndex, int endColumnIndex, Columns columns, Boolean autoWidthCalculation)
Creates new instance ofSetAutoWidthCalculationOperation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.core.runtime.IStatus
execute(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info)
org.eclipse.core.runtime.IStatus
redo(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info)
org.eclipse.core.runtime.IStatus
undo(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info)
-
-
-
Constructor Detail
-
SetAutoWidthCalculationOperation
public SetAutoWidthCalculationOperation(String label, org.eclipse.core.commands.operations.IUndoContext undoContext, SheetAccessor sheet, int beginColumnIndex, int endColumnIndex, Columns columns, Boolean autoWidthCalculation)
Creates new instance ofSetAutoWidthCalculationOperation
- Parameters:
label
- operation label, must not benull
undoContext
- undo context, may benull
sheet
-SheetAccessor
representing target sheet, must not benull
beginColumnIndex
- begin column indexendColumnIndex
- end column indexcolumns
-Columns
, must not benull
autoWidthCalculation
- auto width calculation value, may benull
. In case ofnull
value automatic width calculation will be unset.
-
-
Method Detail
-
execute
public org.eclipse.core.runtime.IStatus execute(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info) throws org.eclipse.core.commands.ExecutionException
- Specified by:
execute
in interfaceorg.eclipse.core.commands.operations.IUndoableOperation
- Specified by:
execute
in classorg.eclipse.core.commands.operations.AbstractOperation
- Throws:
org.eclipse.core.commands.ExecutionException
-
redo
public org.eclipse.core.runtime.IStatus redo(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info) throws org.eclipse.core.commands.ExecutionException
- Specified by:
redo
in interfaceorg.eclipse.core.commands.operations.IUndoableOperation
- Specified by:
redo
in classorg.eclipse.core.commands.operations.AbstractOperation
- Throws:
org.eclipse.core.commands.ExecutionException
-
undo
public org.eclipse.core.runtime.IStatus undo(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info) throws org.eclipse.core.commands.ExecutionException
- Specified by:
undo
in interfaceorg.eclipse.core.commands.operations.IUndoableOperation
- Specified by:
undo
in classorg.eclipse.core.commands.operations.AbstractOperation
- Throws:
org.eclipse.core.commands.ExecutionException
-
-