Class AttributeActionsGroup

    • Constructor Detail

      • AttributeActionsGroup

        public AttributeActionsGroup​(ISelectionProvider provider,
                                     MappingController controller,
                                     IFormEditorPage editorPage,
                                     FormCopyPasteActionProvider copyPasteActionProvider)
        Creates a new actions group
        Parameters:
        provider - the selection provider
        controller - the mapping model controller
        editorPage - the form editor page
        copyPasteActionProvider - the copy paste actions provider
    • Method Detail

      • getContextId

        public String getContextId()
        Description copied from interface: IGlobalActionsProvider
        The id of context which provides this class.
        Returns:
        the context id
      • getGlobalActions

        public Set<org.eclipse.jface.action.IAction> getGlobalActions()
        Description copied from interface: IGlobalActionsProvider
        Returns the global action for current context. This method can not returns null. If provider has not global actions, is should be return empty set.
        Returns:
        the global actions
        See Also:
        Collections.emptySet()
      • contributeToToolbar

        public void contributeToToolbar​(org.eclipse.jface.action.IToolBarManager manager)
        Description copied from class: AbstractActionsGroup
        This method contribute to toolbar
        Specified by:
        contributeToToolbar in class AbstractActionsGroup
        Parameters:
        manager - the toolbar manager
      • contributeToMenu

        public void contributeToMenu​(org.eclipse.jface.action.IMenuManager manager)
        Description copied from class: AbstractActionsGroup
        This method contribute to context menu
        Specified by:
        contributeToMenu in class AbstractActionsGroup
        Parameters:
        manager - the context menu manager
      • createAddAction

        protected org.eclipse.jface.action.IAction createAddAction()
        Overrides:
        createAddAction in class FormActionsGroup
        Returns:
        creates a add action
      • getAddColumnAction

        protected org.eclipse.jface.action.IAction getAddColumnAction()
      • runAddColumnAction

        protected void runAddColumnAction()
        run add column action
      • calculateAvailablesGoToTtems

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

        protected List<PropertyInfo> getSelectedPropertyInfos()
        Returns collection of selected items.
        Returns:
        collection of selected items, never null
      • getSelectedPropertyInfoStream

        protected Stream<PropertyInfo> getSelectedPropertyInfoStream()
        Returns stream of selected property infos.
        Returns:
        stream of selected property infos, never null