Skip to content
Snippets Groups Projects
Unverified Commit e9a7fc37 authored by Stefano Borini's avatar Stefano Borini Committed by GitHub
Browse files

Merge pull request #127 from force-h2020/notification-ui-visibility

Added flag for notification listener visibility
parents 6320e704 28fb241d
No related branches found
No related tags found
No related merge requests found
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)
......
from traits.api import Interface, String, Instance, Type
from traits.api import Interface, String, Instance, Type, Bool
from envisage.plugin import Plugin
......@@ -12,6 +12,8 @@ class INotificationListenerFactory(Interface):
name = String()
ui_visible = Bool()
listener_class = Type(
"force_bdss.notification_listeners"
".base_notification_listener.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