Search in sources :

Example 1 with ProtocolPanelProviderTracker

use of com.mucommander.ui.main.osgi.ProtocolPanelProviderTracker in project mucommander by mucommander.

the class Activator method start.

@Override
public void start(BundleContext context) throws Exception {
    LOGGER.debug("starting");
    this.context = context;
    // Register the application-specific 'bookmark' protocol.
    FileProtocolService bookmarksService = createBookmarkProtocolService();
    bookmarksRegistration = context.registerService(FileProtocolService.class, bookmarksService, null);
    // Listen to protocol panel services
    protocolPanelTracker = new ProtocolPanelProviderTracker(context);
    protocolPanelTracker.open();
    // Listen to translation service
    translationTracker = new TranslationTracker(context);
    translationTracker.open();
    // Listen to file viewer services
    viewersTracker = new FileViewerServiceTracker(context);
    viewersTracker.open();
    // Listen to file editor services
    editorsTracker = new FileEditorServiceTracker(context);
    editorsTracker.open();
    // Listen to operating system services
    osTracker = new OperatingSystemServiceTracker(context);
    osTracker.open();
    // Register core functionality service
    CoreService coreService = createCoreService();
    coreRegistration = context.registerService(CoreService.class, coreService, null);
    // Traps VM shutdown
    Runtime.getRuntime().addShutdownHook(shutdownHook = new ShutdownHook());
    Application.run(this);
}
Also used : ProtocolPanelProviderTracker(com.mucommander.ui.main.osgi.ProtocolPanelProviderTracker) FileEditorServiceTracker(com.mucommander.osgi.FileEditorServiceTracker) FileViewerServiceTracker(com.mucommander.osgi.FileViewerServiceTracker) TranslationTracker(com.mucommander.text.TranslationTracker) CoreService(com.mucommander.os.api.CoreService) OperatingSystemServiceTracker(com.mucommander.osgi.OperatingSystemServiceTracker) FileProtocolService(com.mucommander.commons.file.osgi.FileProtocolService)

Aggregations

FileProtocolService (com.mucommander.commons.file.osgi.FileProtocolService)1 CoreService (com.mucommander.os.api.CoreService)1 FileEditorServiceTracker (com.mucommander.osgi.FileEditorServiceTracker)1 FileViewerServiceTracker (com.mucommander.osgi.FileViewerServiceTracker)1 OperatingSystemServiceTracker (com.mucommander.osgi.OperatingSystemServiceTracker)1 TranslationTracker (com.mucommander.text.TranslationTracker)1 ProtocolPanelProviderTracker (com.mucommander.ui.main.osgi.ProtocolPanelProviderTracker)1