Skip to content
Snippets Groups Projects
Commit 0eb14d10 authored by Stefano Borini's avatar Stefano Borini
Browse files

Added ui_visibility flag

parent 6320e704
No related branches found
No related tags found
1 merge request!127Added flag for notification listener visibility
import logging
from traits.api import ABCHasStrictTraits, Instance, String, provides, Type
from traits.api import (
ABCHasStrictTraits, Instance, String, provides, Type, Bool
)
from envisage.plugin import Plugin
from force_bdss.notification_listeners.base_notification_listener import \
......@@ -24,6 +26,11 @@ class BaseNotificationListenerFactory(ABCHasStrictTraits):
#: Name of the factory. User friendly for UI
name = String()
#: If the factor should be visible in the UI. Set to false to make it
#: invisible. This is normally useful for notification systems that are
#: not supposed to be configured by the user.
ui_visible = Bool(True)
#: The listener class that must be instantiated. Define this to your
#: listener class.
listener_class = Type(BaseNotificationListener)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment