Class FormParameterActionsGroup
- 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.parameter.FormParameterActionsGroup
-
- All Implemented Interfaces:
IGlobalActionsProvider
public class FormParameterActionsGroup extends FormActionsGroup
The actions group of form parameter
-
-
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 FormParameterActionsGroup(ISelectionProvider provider, 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.void
contributeToMenu(org.eclipse.jface.action.IMenuManager manager)
This method contribute to context menuvoid
contributeToToolbar(org.eclipse.jface.action.IToolBarManager manager)
This method contribute to toolbarString
getContextId()
The id of context which provides this class.Set<org.eclipse.jface.action.IAction>
getGlobalActions()
Returns the global action for current context.protected FormParameterManagementService
getManagementService()
ReturnsFormAttributeManagementService
instance.protected List<FormParameter>
getSelectedParameters()
Returns collection of selected parameters.protected void
runAddAction()
run the add actionprotected void
runDeleteAction()
run the delete actionprotected void
runEditAction()
run the edit action-
Methods inherited from class com._1c.g5.v8.dt.form.ui.editor.actionsgroup.FormActionsGroup
calculateAvailablesGoToTtems, createAddAction, createDeleteAction, createEditAction, createGoToAction, createMoveDownAction, createMoveUpAction, createShowPropertyAction, dispose, execute, getAddAction, getCopyAction, getDeleteAction, getEditAction, getEditingContext, getEditorPage, getGotoAction, getModel, getMoveDownAction, getMoveUpAction, getPasteAction, getPreviewAction, getShowPropertyAction, getV8project, isReadOnlyMode, runCopyAction, runFormAction, 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
-
FormParameterActionsGroup
public FormParameterActionsGroup(ISelectionProvider provider, IFormEditorPage editorPage, FormCopyPasteActionProvider copyPasteActionProvider)
Creates a new actions group- Parameters:
provider
- the selection providereditorPage
- the form editor pagecopyPasteActionProvider
- the copy paste action provider
-
-
Method Detail
-
getContextId
public String getContextId()
Description copied from interface:IGlobalActionsProvider
The id of context which provides this class.- Returns:
- the context id
-
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
-
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()
-
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
-
runAddAction
protected void runAddAction()
Description copied from class:FormActionsGroup
run the add action- Overrides:
runAddAction
in classFormActionsGroup
-
runEditAction
protected void runEditAction()
Description copied from class:FormActionsGroup
run the edit action- Overrides:
runEditAction
in classFormActionsGroup
-
runDeleteAction
protected void runDeleteAction()
Description copied from class:FormActionsGroup
run the delete action- Overrides:
runDeleteAction
in classFormActionsGroup
-
getSelectedParameters
protected List<FormParameter> getSelectedParameters()
Returns collection of selected parameters.- Returns:
- collection of selected parameters, never
null
-
getManagementService
protected FormParameterManagementService getManagementService()
ReturnsFormAttributeManagementService
instance.- Returns:
FormAttributeManagementService
instance
-
-