CookieImplementation(
            resource_type = QUANTITY_RESOURCE_TYPE,

            cookie_interface = "envisage.project.action" \
                + ".open_cookie.OpenCookie",

            cookie_implementation = BASE \
                + ".quantity_resource_open_cookie.QuantityResourceOpenCookie"
        ),
    ]
)

### Resource Wizards ##########################################################
resource_wizards = ResourceWizards(resource_wizards=[
    ResourceWizard(
        category='Data Resources',
        name='Quantity',
        class_name=BASE + '.new_quantity_wizard.NewQuantityWizard'),
    ResourceWizard(
        category='Data Resources',
        name='Scalar',
        class_name=BASE + '.new_scalar_wizard.NewScalarWizard')
])

#### Menus/Actions ############################################################
set_unit_system = Action(
    id='action.SetUnitSystem',
    class_name=BASE + '.action.set_unit_system_action.SetUnitSystem',
    name='Set Unit System...',
    description='Set the system-wide default unit system',
    image='',
    tooltip='Set the system-wide default unit system',
예제 #2
0
            resource_type = QUANTITY_RESOURCE_TYPE,

            cookie_interface = "envisage.project.action" \
                + ".open_cookie.OpenCookie",

            cookie_implementation = 'scimath.units.plugin' \
                + ".quantity_resource_open_cookie.QuantityResourceOpenCookie"
        ),
    ]
)

### Resource Wizards ##########################################################
resource_wizards = ResourceWizards(resource_wizards=[
    ResourceWizard(
        category='Data Resources',
        name='Quantity',
        class_name='scimath.units.plugin.new_quantity_wizard.NewQuantityWizard'
    ),
    ResourceWizard(
        category='Data Resources',
        name='Scalar',
        class_name='scimath.units.plugin.new_scalar_wizard.NewScalarWizard')
])

#### Menus/Actions ############################################################
set_unit_system = Action(
    id              = 'action.SetUnitSystem',
    class_name      = \
         'scimath.units.plugin.action.set_unit_system_action.SetUnitSystem',
    name            = 'Set Unit System...',
    description     = 'Set the system-wide default unit system',