Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX : provide interfaces #293

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions envisage/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,10 @@ def stop_plugin(self, plugin=None, plugin_id=None):
# 'IServiceRegistry' interface.
###########################################################################

registered = Event

unregistered = Event

def get_required_service(
self, protocol, query="", minimize="", maximize=""
):
Expand Down
9 changes: 8 additions & 1 deletion envisage/ui/workbench/workbench_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from envisage.api import ExtensionPoint, ServiceRegistry
from envisage.ui.action.api import ActionSet
from pyface.action.api import StatusBarManager
from traits.api import Delegate, Instance, List, Property, provides
from traits.api import Delegate, Event, Instance, List, Property, provides

# Local imports.
from .workbench_action_manager_builder import WorkbenchActionManagerBuilder
Expand Down Expand Up @@ -174,6 +174,10 @@ def _action_sets_default(self):
# 'IServiceRegistry' interface.
###########################################################################

registered = Event

unregistered = Event

def get_service(self, protocol, query="", minimize="", maximize=""):
""" Return at most one service that matches the specified query. """

Expand All @@ -183,6 +187,9 @@ def get_service(self, protocol, query="", minimize="", maximize=""):

return service

def get_service_from_id(self, service_id):
pass

def get_service_properties(self, service_id):
""" Return the dictionary of properties associated with a service. """

Expand Down