Class SetDefaultWidthWeightFactorOperation

    • Constructor Detail

      • SetDefaultWidthWeightFactorOperation

        public SetDefaultWidthWeightFactorOperation​(String label,
                                                    SheetAccessor sheet,
                                                    Integer widthWeightFactor,
                                                    boolean nested)
        Creates new instance of SetDefaultWidthWeightFactorOperation
        Parameters:
        label - operation label, must not be null
        undoContext - undo context, may be null
        sheet - SheetAccessor, representing target spreadsheet document. Must not be null
        widthWeightFactor - width weight factor to be set, may be null. In case of null value default width weight factir will be unset.
    • Method Detail

      • execute

        public Void execute​(IBmTransaction transaction,
                            org.eclipse.core.runtime.IProgressMonitor progressMonitor)
        Description copied from interface: IBmTask

        The method called by the task executor with an active transaction. The method code must not commit or rollback the transaction.

        If the task is not supposed to return a result, then it may be parameterized with Void and return null.

        Parameters:
        transaction - The active transaction. May not be null.
        progressMonitor - The monitor to indicate the progress. May not be null.
        Returns:
        execution result, may be null.