org.eclipse.gmf.runtime.lite.shortcuts
Interface IShortcutProvider


public interface IShortcutProvider

Interface that should be implemented by a diagram plugin that provides shortcut elements to other diagrams.


Method Summary
 org.eclipse.gef.EditPart createShortcutEditPart(org.eclipse.gef.EditPart context, org.eclipse.gmf.runtime.notation.View shortcutView)
          Creates shortcut edit part for the given shortcut view in the given parent.
 CreateNotationalElementCommand getCreateShortcutCommand(org.eclipse.gmf.runtime.notation.View containerView, org.eclipse.emf.ecore.EObject underlyingModelObject)
          Returns the command to create a shortcut in the given containerView for the given underlying model object.
 org.eclipse.emf.common.command.Command getRefreshShortcutCommand(org.eclipse.gmf.runtime.notation.View shortcut)
          Returns the command to refresh the notational representation of the given top-level shortcut.
 

Method Detail

createShortcutEditPart

org.eclipse.gef.EditPart createShortcutEditPart(org.eclipse.gef.EditPart context,
                                                org.eclipse.gmf.runtime.notation.View shortcutView)
Creates shortcut edit part for the given shortcut view in the given parent.


getCreateShortcutCommand

CreateNotationalElementCommand getCreateShortcutCommand(org.eclipse.gmf.runtime.notation.View containerView,
                                                        org.eclipse.emf.ecore.EObject underlyingModelObject)
Returns the command to create a shortcut in the given containerView for the given underlying model object. May return null if the receiver is not applicable for the given underlying model object.


getRefreshShortcutCommand

org.eclipse.emf.common.command.Command getRefreshShortcutCommand(org.eclipse.gmf.runtime.notation.View shortcut)
Returns the command to refresh the notational representation of the given top-level shortcut. Should return null to indicate a no-op command.



Copyright © 2012. All Rights Reserved.