private JComponent createErrorPanel(Exception e) { return ComponentFactory.createExceptionComponent(e.getMessage(), e, null); }
private JComponent createErrorPanel(Exception e) { return ComponentFactory.createExceptionComponent(e.getMessage(), e, null); }
private JComponent createErrorPanel(Exception e) { return ComponentFactory.createExceptionComponent(e.getMessage(), e, null); }
private void createContent() { try { viewComponent = plugin.newInstance(); viewComponentHolder.add(viewComponent); viewComponent.setView(this); viewComponent.initialise(); } catch (Exception e) { logger.error("An error occurred whilst creating the view content for the '{}' view: {}", plugin.getLabel(), e); viewComponentHolder.add(ComponentFactory.createExceptionComponent( "An error occurred whilst creating the view", e, null)); } }
public WorkspaceTab addTabForPlugin(WorkspaceTabPlugin plugin) { WorkspaceTab tab = null; try { tab = plugin.newInstance(); addTab(tab); } catch (Throwable e) { if (tab != null) { String msg = "An error occurred when creating the " + plugin.getLabel() + " tab."; tab.setLayout(new BorderLayout()); tab.add(ComponentFactory.createExceptionComponent(msg, e, null)); } LOGGER.warn(e); } return tab; }
private void createContent() { try { viewComponent = plugin.newInstance(); viewComponentHolder.add(viewComponent); viewComponent.setView(this); viewComponent.initialise(); } catch (Exception e) { ProtegeApplication.getErrorLog().logError(e); viewComponentHolder.add(ComponentFactory.createExceptionComponent( "An error occurred whilst creating the view", e, null)); } }
private void createContent() { try { viewComponent = plugin.newInstance(); viewComponentHolder.add(viewComponent); viewComponent.setView(this); viewComponent.initialise(); } catch (Exception e) { ProtegeApplication.getErrorLog().logError(e); viewComponentHolder.add(ComponentFactory.createExceptionComponent( "An error occurred whilst creating the view", e, null)); } }
public WorkspaceTab addTabForPlugin(WorkspaceTabPlugin plugin) { WorkspaceTab tab = null; try { tab = plugin.newInstance(); addTab(tab); } catch (Throwable e) { if (tab != null) { String msg = "An error occurred when creating the " + plugin.getLabel() + " tab."; tab.setLayout(new BorderLayout()); tab.add(ComponentFactory.createExceptionComponent(msg, e, null)); } LOGGER.warn(e); } return tab; }
public WorkspaceTab addTabForPlugin(WorkspaceTabPlugin plugin) { WorkspaceTab tab = null; try { tab = plugin.newInstance(); addTab(tab); } catch (Throwable e) { if (tab != null) { String msg = "An error occurred when creating the " + plugin.getLabel() + " tab."; tab.setLayout(new BorderLayout()); tab.add(ComponentFactory.createExceptionComponent(msg, e, null)); } logger.error("An error occurred when attempting to instantiate a tab plugin. " + "Tab plugin Id: {}. Error details: {}", plugin.getId(), e); } return tab; }