1 | try {↵ | | 1 | try {↵
|
|
2 | IExtensionHandler handler = PluginManager.getInstance()↵ | | 2 | IExtensionHandler handler = PluginManager.getInstance()↵
|
3 | .getExtensionHandler(↵ | | 3 | .getExtensionHandler(↵
|
4 | IExtensionHandlerKeys.ORG_COLUMBA_CORE_HTMLVIEWER);↵ | | 4 | IExtensionHandlerKeys.ORG_COLUMBA_CORE_HTMLVIEWER);↵
|
|
5 | IExtension extension = handler.getExtension(pluginId);↵ | | 5 | IExtension extension = handler.getExtension(pluginId);↵
|
6 | if (extension == null)↵ | | 6 | if (extension == null)↵
|
7 | return null;↵ | | 7 | return null;↵
|
|
8 | plugin = (IHTMLViewerPlugin) extension.instanciateExtension(null);↵ | | 8 | plugin = (IHTMLViewerPlugin) extension.instanciateExtension(null);↵
|
|
9 | return plugin;↵ | | 9 | return plugin;↵
|
10 | } catch (PluginHandlerNotFoundException e) {↵ | | 10 | } catch (PluginHandlerNotFoundException e) {↵
|
11 | LOG.severe("Error while loading viewer plugin: " + e.getMessage());↵ | | 11 | LOG.severe("Error while loading viewer plugin: " + e.getMessage());↵
|
12 | if (Logging.DEBUG)↵ | | 12 | if (Logging.DEBUG)↵
|
13 | e.printStackTrace();↵ | | 13 | e.printStackTrace();↵
|
14 | } catch (PluginException e) {↵ | | 14 | } catch (PluginException e) {↵
|
15 | LOG.severe("Error while loading viewer plugin: " + e.getMessage());↵ | | 15 | LOG.severe("Error while loading viewer plugin: " + e.getMessage());↵
|
16 | if (Logging.DEBUG)↵ | | 16 | if (Logging.DEBUG)↵
|
17 | e.printStackTrace();↵ | | 17 | e.printStackTrace();↵
|
18 | | | 18 |
|