Class FormActionsGroup
- java.lang.Object
-
- com._1c.g5.v8.dt.form.ui.editor.actionsgroup.AbstractActionsGroup
-
- com._1c.g5.v8.dt.form.ui.editor.actionsgroup.FormActionsGroup
-
- All Implemented Interfaces:
IGlobalActionsProvider
- Direct Known Subclasses:
AttributeActionsGroup
,FormCommandActionsGroup
,FormItemActionsGroup
,FormParameterActionsGroup
public abstract class FormActionsGroup extends AbstractActionsGroup implements IGlobalActionsProvider
The basic form actions group.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
FormActionsGroup.FormAction
The Form action
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.form.ui.editor.actionsgroup.AbstractActionsGroup
provider
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FormActionsGroup(IFormEditorPage editorPage, ISelectionProvider provider, FormCopyPasteActionProvider copyPasteActionProvider)
Creates a new actions group.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<com._1c.g5.v8.dt.form.internal.ui.service._goto.GoToItem>
calculateAvailablesGoToTtems()
This method calculate available the goto item for current selectionprotected org.eclipse.jface.action.IAction
createAddAction()
protected org.eclipse.jface.action.IAction
createDeleteAction()
protected org.eclipse.jface.action.IAction
createEditAction()
protected org.eclipse.jface.action.IAction
createGoToAction()
protected org.eclipse.jface.action.IAction
createMoveDownAction()
protected org.eclipse.jface.action.IAction
createMoveUpAction()
protected org.eclipse.jface.action.IAction
createShowPropertyAction()
void
dispose()
Clears allocated resources.protected void
execute(IBmTask<?> task)
Executes bm task.protected org.eclipse.jface.action.IAction
getAddAction()
Gets the add actionprotected org.eclipse.jface.action.IAction
getCopyAction()
Gets the copy actionprotected org.eclipse.jface.action.IAction
getDeleteAction()
Gets the edit deleteorg.eclipse.jface.action.IAction
getEditAction()
Gets the edit actionprotected IBmEditingContext
getEditingContext()
Returns bm editing context.protected IFormEditorPage
getEditorPage()
Gets form editor pageprotected org.eclipse.jface.action.IAction
getGotoAction()
Gets the go to actionprotected Form
getModel()
Returns current form modelprotected org.eclipse.jface.action.IAction
getMoveDownAction()
Gets the move down actionprotected org.eclipse.jface.action.IAction
getMoveUpAction()
Gets the move up actionprotected org.eclipse.jface.action.IAction
getPasteAction()
Gets the paste actionprotected org.eclipse.jface.action.IAction
getPreviewAction()
Gets the form preview action.protected org.eclipse.jface.action.IAction
getShowPropertyAction()
Gets the show property actionprotected IV8Project
getV8project()
Returns V8 project on witch the form model definedprotected boolean
isReadOnlyMode()
Returns whether this action group is in read-only mode.protected void
runAddAction()
run the add actionprotected void
runCopyAction()
run the move down actionprotected void
runDeleteAction()
run the delete actionprotected void
runEditAction()
run the edit actionprotected void
runFormAction(String id)
Calls when action runprotected void
runGoToAction()
run the goto actionprotected void
runMoveDownAction()
run the move down actionprotected void
runMoveUpAction()
run the move up actionprotected void
runPasteAction()
run the move down actionprotected void
setSelectionAndNavigateToProperties(IStructuredSelection selection)
Sets selection and navigates to properties.protected void
setV8ProjectManager(IV8ProjectManager v8projectManager)
-
Methods inherited from class com._1c.g5.v8.dt.form.ui.editor.actionsgroup.AbstractActionsGroup
calculateActionsState, contributeToMenu, contributeToMenu, contributeToToolbar, contributeToToolbar, getSelection, getSingleObject, isEmptySelection, isMultiSelection, refresh, selectionChanged, setSelection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.form.ui.editor.IGlobalActionsProvider
getContextId, getGlobalActions
-
-
-
-
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 benull
provider
- the selection provider, cannot benull
copyPasteActionProvider
- the copy paste action provider, can benull
-
-
Method Detail
-
dispose
public void dispose()
Description copied from class:AbstractActionsGroup
Clears allocated resources. Must be called explicitly.- Overrides:
dispose
in classAbstractActionsGroup
-
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 benull
.
-
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 benull
.
-
-