Class FormActionsGroup

    • Constructor Detail

      • FormActionsGroup

        protected FormActionsGroup​(IFormEditorPage editorPage,
                                   ISelectionProvider provider,
                                   FormCopyPasteActionProvider copyPasteActionProvider)
        Creates a new actions group.
        Parameters:
        editorPage - the main page of form editor, cannot be null
        provider - the selection provider, cannot be null
        copyPasteActionProvider - the copy paste action provider, can be null
    • Method Detail

      • isReadOnlyMode

        protected boolean isReadOnlyMode()
        Returns whether this action group is in read-only mode.
        Returns:
        true if in read-only mode, false otherwise
      • getAddAction

        protected org.eclipse.jface.action.IAction getAddAction()
        Gets the add action
        Returns:
        return the add action
      • getEditAction

        public org.eclipse.jface.action.IAction getEditAction()
        Gets the edit action
        Returns:
        return the edit action
      • getDeleteAction

        protected org.eclipse.jface.action.IAction getDeleteAction()
        Gets the edit delete
        Returns:
        return the delete action
      • getShowPropertyAction

        protected org.eclipse.jface.action.IAction getShowPropertyAction()
        Gets the show property action
        Returns:
        return the show property action
      • getGotoAction

        protected org.eclipse.jface.action.IAction getGotoAction()
        Gets the go to action
        Returns:
        return the goto action
      • getCopyAction

        protected org.eclipse.jface.action.IAction getCopyAction()
        Gets the copy action
        Returns:
        return the copy action
      • getPasteAction

        protected org.eclipse.jface.action.IAction getPasteAction()
        Gets the paste action
        Returns:
        return the paste action
      • getPreviewAction

        protected org.eclipse.jface.action.IAction getPreviewAction()
        Gets the form preview action.
        Returns:
        the form preview action.
      • getMoveUpAction

        protected org.eclipse.jface.action.IAction getMoveUpAction()
        Gets the move up action
        Returns:
        return the move up action
      • getMoveDownAction

        protected org.eclipse.jface.action.IAction getMoveDownAction()
        Gets the move down action
        Returns:
        return the move down action
      • execute

        protected void execute​(IBmTask<?> task)
        Executes bm task.
        Parameters:
        task - the bm task, can be null.
      • createAddAction

        protected org.eclipse.jface.action.IAction createAddAction()
        Returns:
        creates a add action
      • createEditAction

        protected org.eclipse.jface.action.IAction createEditAction()
        Returns:
        creates a edit action
      • createDeleteAction

        protected org.eclipse.jface.action.IAction createDeleteAction()
        Returns:
        creates a delete action
      • createShowPropertyAction

        protected org.eclipse.jface.action.IAction createShowPropertyAction()
        Returns:
        creates a show property action
      • createGoToAction

        protected org.eclipse.jface.action.IAction createGoToAction()
        Returns:
        creates a goto action
      • createMoveUpAction

        protected org.eclipse.jface.action.IAction createMoveUpAction()
        Returns:
        creates a move up action
      • createMoveDownAction

        protected org.eclipse.jface.action.IAction createMoveDownAction()
        Returns:
        creates a move down action
      • runAddAction

        protected void runAddAction()
        run the add action
      • runEditAction

        protected void runEditAction()
        run the edit action
      • runDeleteAction

        protected void runDeleteAction()
        run the delete action
      • runGoToAction

        protected void runGoToAction()
        run the goto action
      • calculateAvailablesGoToTtems

        protected List<com._1c.g5.v8.dt.form.internal.ui.service._goto.GoToItem> calculateAvailablesGoToTtems()
        This method calculate available the goto item for current selection
        Returns:
        the available goto items. If items hot exists should return empty list.
      • runMoveUpAction

        protected void runMoveUpAction()
        run the move up action
      • runMoveDownAction

        protected void runMoveDownAction()
        run the move down action
      • runCopyAction

        protected void runCopyAction()
        run the move down action
      • runPasteAction

        protected void runPasteAction()
        run the move down action
      • getModel

        protected Form getModel()
        Returns current form model
        Returns:
        the form model
      • getV8project

        protected IV8Project getV8project()
        Returns V8 project on witch the form model defined
        Returns:
        the IV8Project
      • setV8ProjectManager

        @Inject
        protected void setV8ProjectManager​(IV8ProjectManager v8projectManager)
      • getEditingContext

        protected IBmEditingContext getEditingContext()
        Returns bm editing context.
        Returns:
        the bm editing context.
      • runFormAction

        protected void runFormAction​(String id)
        Calls when action run
        Parameters:
        id - the running action id
        See Also:
        FormActionFactory, ActionFactory
      • getEditorPage

        protected IFormEditorPage getEditorPage()
        Gets form editor page
        Returns:
        the form page editor.
      • setSelectionAndNavigateToProperties

        protected void setSelectionAndNavigateToProperties​(IStructuredSelection selection)
        Sets selection and navigates to properties.
        Parameters:
        selection - the selection to set, cannot be null.