Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > ccd2f5c08185f7721754f86a114862fe > files > 358

python-enthought-envisageplugins-3.1.1-2mdv2010.0.noarch.rpm

#-----------------------------------------------------------------------------
#
#  Copyright (c) 2007 by Enthought, Inc.
#  All rights reserved.
#
#-----------------------------------------------------------------------------

"""
An action set for contributing actions to Data.

"""

# Enthought library imports.
from enthought.envisage.action.action_plugin_definition import ActionSet


##############################################################################
# Constants
##############################################################################

# A commonly used string within our declarations.
ROOT = 'data.plugin.resource_type'

# The prefix used to identify menu-building resources, within an action set,
# for the context menu applying to a Data.  This string MUST MATCH the string
# that the Data's node type is looking for!
DATA_CONTEXT_MENU = '%s.data_node_type' % ROOT


class DataActionSet(ActionSet):
    """
    Action and menu definitions for the project view.

    """

    # A mapping from human-readable root names to globally unique Ids.
    aliases = {
        'DataContextMenu': DATA_CONTEXT_MENU
        }


#### EOF #####################################################################