Class ChangeCellsOperation

    • 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)  
      protected boolean needCleaCache()
      Check whether there is a need to clean cache
      void performAction()
      Выполнить действие.
      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)  
      protected void updateCacheState()
      Update cache state
      • Methods inherited from class org.eclipse.core.commands.operations.AbstractOperation

        addContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContext, setLabel, toString
    • Field Detail

      • selection

        protected Selection selection
        Область, в которой меняются ячейки.
      • oldCells

        protected SheetAccessor oldCells
        Документ, содеращий содержимое ячеек.
      • sizeHelper

        protected SheetSizeRestoreHelperForSelection sizeHelper
        Помощник для установки размеров табличного документа.
      • changeContentOrFormat

        protected boolean changeContentOrFormat
        Признак того, что меняется содержимое
    • Constructor Detail

      • ChangeCellsOperation

        public ChangeCellsOperation​(String label,
                                    org.eclipse.core.commands.operations.IUndoContext undoContext,
                                    SheetAccessor sheet_,
                                    Selection selection_,
                                    boolean changeContentOrFormat_,
                                    PositionHolder positionHolder)
        Конструктор
    • 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 interface org.eclipse.core.commands.operations.IUndoableOperation
        Specified by:
        execute in class org.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 interface org.eclipse.core.commands.operations.IUndoableOperation
        Specified by:
        redo in class org.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 interface org.eclipse.core.commands.operations.IUndoableOperation
        Specified by:
        undo in class org.eclipse.core.commands.operations.AbstractOperation
        Throws:
        org.eclipse.core.commands.ExecutionException
      • performAction

        public void performAction()
        Выполнить действие.
      • needCleaCache

        protected boolean needCleaCache()
        Check whether there is a need to clean cache
        Returns:
        check result
      • updateCacheState

        protected void updateCacheState()
        Update cache state