Class CopyPasteProviderPolicy

  • All Implemented Interfaces:
    org.eclipse.gmf.runtime.common.core.service.IProviderPolicy

    public class CopyPasteProviderPolicy
    extends Object
    implements org.eclipse.gmf.runtime.common.core.service.IProviderPolicy
    Only enable "Edit -> Cut/Copy/Paste" menu items for items other than roles. This extension does only work if org.eclipse.gmf.runtime.common.ui.services.action.globalActionHandlerProviders extension generated into diagram plugin is removed. It can't be overwritten because it is of lowest priority, therefore no extension can be executed after it.
    • Constructor Detail

      • CopyPasteProviderPolicy

        public CopyPasteProviderPolicy()
    • Method Detail

      • provides

        public boolean provides​(org.eclipse.gmf.runtime.common.core.service.IOperation operation)
        (non-Javadoc).
        Specified by:
        provides in interface org.eclipse.gmf.runtime.common.core.service.IProviderPolicy
        Parameters:
        operation - the operation
        Returns:
        true, if successful
        See Also:
        IProviderPolicy.provides(org.eclipse.gmf.runtime.common.core.service.IOperation)