Class SetWidthWeightFactorOperation
- 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.SetWidthWeightFactorOperation
-
- All Implemented Interfaces:
org.eclipse.core.commands.operations.IUndoableOperation
- Direct Known Subclasses:
UnsetWidthWeightFactorOperation
public class SetWidthWeightFactorOperation extends BaseOperation
Operation for setting width weight factor for range of columns.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.moxel.ui.operations.BaseOperation
sheet
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SetWidthWeightFactorOperation(String label, org.eclipse.core.commands.operations.IUndoContext undoContext, SheetAccessor sheet, int beginColumnIndex, int endColumnIndex, Columns columns)
Creates new instance ofSetWidthWeightFactorOperation
.SetWidthWeightFactorOperation(String label, org.eclipse.core.commands.operations.IUndoContext undoContext, SheetAccessor sheet, int beginColumnIndex, int endColumnIndex, Columns columns, int widthWeightFactor)
Creates new instance ofSetWidthWeightFactorOperation
.SetWidthWeightFactorOperation(String label, org.eclipse.core.commands.operations.IUndoContext undoContext, SheetAccessor sheet, int beginColumnIndex, int endColumnIndex, Columns columns, List<Integer> widthWeightFactors)
Creates new instance ofSetWidthWeightFactorOperation
.
-
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
-
SetWidthWeightFactorOperation
public SetWidthWeightFactorOperation(String label, org.eclipse.core.commands.operations.IUndoContext undoContext, SheetAccessor sheet, int beginColumnIndex, int endColumnIndex, Columns columns, int widthWeightFactor)
Creates new instance ofSetWidthWeightFactorOperation
.- Parameters:
label
- operation label, must not benull
undoContext
- undo context, may benull
sheet
-SheetAccessor
representing targer sheet. Must not benull
beginColumnIndex
- begin column indexendColumnIndex
- end column indexcolumns
-Columns
, must not benull
widthWeightFactor
- width weight factor to be set
-
SetWidthWeightFactorOperation
public SetWidthWeightFactorOperation(String label, org.eclipse.core.commands.operations.IUndoContext undoContext, SheetAccessor sheet, int beginColumnIndex, int endColumnIndex, Columns columns, List<Integer> widthWeightFactors)
Creates new instance ofSetWidthWeightFactorOperation
.- Parameters:
label
- operation label, must not benull
undoContext
- undo context, may benull
sheet
-SheetAccessor
representing targer sheet. Must not benull
beginColumnIndex
- begin column indexendColumnIndex
- end column indexcolumns
-Columns
, must not benull
widthWeightFactors
- list of weight factors to be set
-
SetWidthWeightFactorOperation
protected SetWidthWeightFactorOperation(String label, org.eclipse.core.commands.operations.IUndoContext undoContext, SheetAccessor sheet, int beginColumnIndex, int endColumnIndex, Columns columns)
Creates new instance ofSetWidthWeightFactorOperation
.- Parameters:
label
- operation label, must not benull
undoContext
- undo context, may benull
sheet
-SheetAccessor
representing targer sheet. Must not benull
beginColumnIndex
- begin column indexendColumnIndex
- end column indexcolumns
-Columns
, must not benull
-
-
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
-
-