Class DelegatingMasterDetailAction

    • Constructor Detail

      • DelegatingMasterDetailAction

        public DelegatingMasterDetailAction​(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
        Constructor.
        Parameters:
        editingDomain - The EditingDomain which is used by the BaseSelectionListenerAction.
    • Method Detail

      • getEMFImagePath

        protected abstract java.lang.String getEMFImagePath()
        The path to the image for the BaseSelectionListenerAction.
        Returns:
        The path to the local image for the BaseSelectionListenerAction.
      • createDelegatedAction

        protected abstract org.eclipse.ui.actions.BaseSelectionListenerAction createDelegatedAction​(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
        Creates the BaseSelectionListenerAction to which this KeybindedMasterDetailAction forwards to.
        Parameters:
        editingDomain - The EditingDomain which is used to create the BaseSelectionListenerAction.
        Returns:
        The BaseSelectionListenerAction to which this KeybindedMasterDetailAction forwards to.
      • execute

        public java.lang.Object execute​(org.eclipse.core.commands.ExecutionEvent event)
                                 throws org.eclipse.core.commands.ExecutionException
        Throws:
        org.eclipse.core.commands.ExecutionException
      • execute

        public void execute​(java.util.List<java.lang.Object> objects)
        Specified by:
        execute in class MasterDetailAction
        Parameters:
        objects - The list of objects on which the action is executed
      • shouldShow

        public boolean shouldShow​(java.util.List<java.lang.Object> objects)
        Specified by:
        shouldShow in class MasterDetailAction
        Parameters:
        objects - the list of objects on which to test if the action can be executed
        Returns:
        true if the action can be executed on the parameter
      • getDelegatedAction

        public org.eclipse.ui.actions.BaseSelectionListenerAction getDelegatedAction()
        Returns the BaseSelectionListenerAction to which this KeybindedMasterDetailAction forwards to.
        Returns:
        The BaseSelectionListenerAction this KeybindedMasterDetailAction is forwarding to.