Class AttributeActionsGroup
- java.lang.Object
-
- com._1c.g5.v8.dt.form.ui.editor.actionsgroup.AbstractActionsGroup
-
- com._1c.g5.v8.dt.form.ui.editor.actionsgroup.FormActionsGroup
-
- com._1c.g5.v8.dt.form.ui.editor.attribute.AttributeActionsGroup
-
- All Implemented Interfaces:
IGlobalActionsProvider
public class AttributeActionsGroup extends FormActionsGroup
The actions group of form attribute
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.form.ui.editor.actionsgroup.FormActionsGroup
FormActionsGroup.FormAction
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.form.ui.editor.actionsgroup.AbstractActionsGroup
provider
-
-
Constructor Summary
Constructors Constructor Description AttributeActionsGroup(ISelectionProvider provider, MappingController controller, IFormEditorPage editorPage, FormCopyPasteActionProvider copyPasteActionProvider)
Creates a new actions group
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
calculateActionsState(IStructuredSelection selection)
Method for recalculation actions state, at change selection.protected List<com._1c.g5.v8.dt.form.internal.ui.service._goto.GoToItem>
calculateAvailablesGoToTtems()
This method calculate available the goto item for current selectionvoid
contributeToMenu(org.eclipse.jface.action.IMenuManager manager)
This method contribute to context menuvoid
contributeToToolbar(org.eclipse.jface.action.IToolBarManager manager)
This method contribute to toolbarprotected org.eclipse.jface.action.IAction
createAddAction()
protected org.eclipse.jface.action.IAction
getAddColumnAction()
String
getContextId()
The id of context which provides this class.Set<org.eclipse.jface.action.IAction>
getGlobalActions()
Returns the global action for current context.protected FormAttributeManagementService
getManagementService()
ReturnsFormAttributeManagementService
instance.protected List<PropertyInfo>
getSelectedPropertyInfos()
Returns collection of selected items.protected Stream<PropertyInfo>
getSelectedPropertyInfoStream()
Returns stream of selected property infos.protected void
runAddAction()
run the add actionprotected void
runAddColumnAction()
run add column actionprotected void
runDeleteAction()
run the delete actionprotected void
runEditAction()
run the edit actionprotected void
runFormAction(String id)
Calls when action run-
Methods inherited from class com._1c.g5.v8.dt.form.ui.editor.actionsgroup.FormActionsGroup
createDeleteAction, createEditAction, createGoToAction, createMoveDownAction, createMoveUpAction, createShowPropertyAction, dispose, execute, getAddAction, getCopyAction, getDeleteAction, getEditAction, getEditingContext, getEditorPage, getGotoAction, getModel, getMoveDownAction, getMoveUpAction, getPasteAction, getPreviewAction, getShowPropertyAction, getV8project, isReadOnlyMode, runCopyAction, runGoToAction, runMoveDownAction, runMoveUpAction, runPasteAction, setSelectionAndNavigateToProperties, setV8ProjectManager
-
Methods inherited from class com._1c.g5.v8.dt.form.ui.editor.actionsgroup.AbstractActionsGroup
contributeToMenu, contributeToToolbar, getSelection, getSingleObject, isEmptySelection, isMultiSelection, refresh, selectionChanged, setSelection
-
-
-
-
Constructor Detail
-
AttributeActionsGroup
public AttributeActionsGroup(ISelectionProvider provider, MappingController controller, IFormEditorPage editorPage, FormCopyPasteActionProvider copyPasteActionProvider)
Creates a new actions group- Parameters:
provider
- the selection providercontroller
- the mapping model controllereditorPage
- the form editor pagecopyPasteActionProvider
- 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 returnsnull
. 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 classAbstractActionsGroup
- 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 classAbstractActionsGroup
- Parameters:
manager
- the context menu manager
-
createAddAction
protected org.eclipse.jface.action.IAction createAddAction()
- Overrides:
createAddAction
in classFormActionsGroup
- Returns:
- creates a add action
-
getAddColumnAction
protected org.eclipse.jface.action.IAction getAddColumnAction()
-
runFormAction
protected void runFormAction(String id)
Description copied from class:FormActionsGroup
Calls when action run- Overrides:
runFormAction
in classFormActionsGroup
- Parameters:
id
- the running action id- See Also:
FormActionFactory
,ActionFactory
-
runEditAction
protected void runEditAction()
Description copied from class:FormActionsGroup
run the edit action- Overrides:
runEditAction
in classFormActionsGroup
-
runAddAction
protected void runAddAction()
Description copied from class:FormActionsGroup
run the add action- Overrides:
runAddAction
in classFormActionsGroup
-
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 classFormActionsGroup
- Returns:
- the available goto items. If items hot exists should return empty list.
-
runDeleteAction
protected void runDeleteAction()
Description copied from class:FormActionsGroup
run the delete action- Overrides:
runDeleteAction
in classFormActionsGroup
-
calculateActionsState
protected void calculateActionsState(IStructuredSelection selection)
Description copied from class:AbstractActionsGroup
Method for recalculation actions state, at change selection. This method is called when change selection.- Specified by:
calculateActionsState
in classAbstractActionsGroup
- Parameters:
selection
- the changed selection
-
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
-
getManagementService
protected FormAttributeManagementService getManagementService()
ReturnsFormAttributeManagementService
instance.- Returns:
FormAttributeManagementService
instance
-
-