Class GroupActionMenu
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.emf.compare.rcp.ui.internal.structuremergeviewer.actions.GroupActionMenu
- All Implemented Interfaces:
org.eclipse.jface.action.IAction
,org.eclipse.jface.action.IMenuCreator
public class GroupActionMenu
extends org.eclipse.jface.action.Action
implements org.eclipse.jface.action.IMenuCreator
This menu will display actions that will allow the user to group differences together.
- Since:
- 4.0
-
Field Summary
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
-
Constructor Summary
ConstructorDescriptionGroupActionMenu
(StructureMergeViewerGrouper structureMergeViewerGrouper, IDifferenceGroupProvider.Descriptor.Registry registry) Constructs our grouping menu. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
org.eclipse.swt.widgets.Menu
getMenu
(org.eclipse.swt.widgets.Control parent) org.eclipse.swt.widgets.Menu
getMenu
(org.eclipse.swt.widgets.Menu parent) void
updateMenu
(IComparisonScope scope, Comparison comparison) Create the grouping action in the given menu.Methods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, run, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
Methods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Constructor Details
-
GroupActionMenu
public GroupActionMenu(StructureMergeViewerGrouper structureMergeViewerGrouper, IDifferenceGroupProvider.Descriptor.Registry registry) Constructs our grouping menu.- Parameters:
structureMergeViewerGrouper
- The viewer grouper that will be affected by this menu's actions.registry
- The registry that contains the group provider..
-
-
Method Details
-
updateMenu
Create the grouping action in the given menu.- Parameters:
scope
- The scope on which the groups will be applied.comparison
- The comparison which differences are to be split into groups.
-
dispose
public void dispose()- Specified by:
dispose
in interfaceorg.eclipse.jface.action.IMenuCreator
- See Also:
-
IMenuCreator.dispose()
-
getMenu
public org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Control parent) - Specified by:
getMenu
in interfaceorg.eclipse.jface.action.IMenuCreator
- See Also:
-
IMenuCreator.getMenu(Control)
-
getMenu
public org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Menu parent) - Specified by:
getMenu
in interfaceorg.eclipse.jface.action.IMenuCreator
- See Also:
-
IMenuCreator.getMenu(Menu)
-