public AbstractOWLViewComponent getOWLViewComponent() { return (AbstractOWLViewComponent) getView().getViewComponent(); } }
public void windowClosing(WindowEvent e) { try { view.dispose(); view.getViewComponent().dispose(); } catch (Exception e1) { logger.warn("BAD VIEW: (" + view.getViewComponent().getClass().getSimpleName() + ") - exception on dispose: " + e1.getMessage()); } } });
public void windowClosing(WindowEvent e) { try { view.dispose(); view.getViewComponent().dispose(); } catch (Exception e1) { logger.warn("BAD VIEW: (" + view.getViewComponent().getClass().getSimpleName() + ") - exception on dispose: " + e1.getMessage()); } } });
public AbstractOWLViewComponent getOWLViewComponent() { return (AbstractOWLViewComponent) getView().getViewComponent(); } }
public void windowClosing(WindowEvent e) { try { view.dispose(); view.getViewComponent().dispose(); } catch (Exception e1) { logger.warn("BAD VIEW: (" + view.getViewComponent().getClass().getSimpleName() + ") - exception on dispose: " + e1.getMessage()); } } });
public AbstractOWLViewComponent getOWLViewComponent() { return (AbstractOWLViewComponent) getView().getViewComponent(); } }
public AbstractOWLViewComponent getOWLViewComponent() { return (AbstractOWLViewComponent) getView().getViewComponent(); } }
public void reset() { for (View view : viewsPane.getViews()) { if (view.getViewComponent() != null) { if (view.getViewComponent() instanceof Resettable) { ((Resettable) view.getViewComponent()).reset(); } } } getWorkspace().getViewManager().unregisterViews(this); remove(viewsPane); viewsPane.dispose(); ViewsPaneMemento memento = new ViewsPaneMemento(this); memento.setForceReset(true); viewsPane = new ViewsPane(getWorkspace(), memento); add(viewsPane, BorderLayout.CENTER); getWorkspace().getViewManager().registerViews(this); }
public void reset() { for (View view : viewsPane.getViews()) { if (view.getViewComponent() != null) { if (view.getViewComponent() instanceof Resettable) { ((Resettable) view.getViewComponent()).reset(); } } } getWorkspace().getViewManager().unregisterViews(this); remove(viewsPane); viewsPane.dispose(); ViewsPaneMemento memento = new ViewsPaneMemento(this); memento.setForceReset(true); viewsPane = new ViewsPane(getWorkspace(), memento); add(viewsPane, BorderLayout.CENTER); getWorkspace().getViewManager().registerViews(this); }
public void reset() { for (View view : viewsPane.getViews()) { if (view.getViewComponent() != null) { if (view.getViewComponent() instanceof Resettable) { ((Resettable) view.getViewComponent()).reset(); } } } getWorkspace().getViewManager().unregisterViews(this); remove(viewsPane); viewsPane.dispose(); ViewsPaneMemento memento = new ViewsPaneMemento(this); memento.setForceReset(true); viewsPane = new ViewsPane(getWorkspace(), memento); add(viewsPane, BorderLayout.CENTER); getWorkspace().getViewManager().registerViews(this); }
private boolean canDisplay(OWLEntity owlEntity) { String entityCat = new NavFinder().getNav(owlEntity); // search the contained views to see if there is one that can show the entity for (View view : getViewsPane().getViews()){ ViewComponent vc = view.getViewComponent(); if (vc != null){ // if the view is on a tab that has been initialised ask it directly if (vc instanceof AbstractOWLSelectionViewComponent && vc instanceof SelectionDriver){ final AbstractOWLSelectionViewComponent owlEntityViewComponent = (AbstractOWLSelectionViewComponent)vc; if (owlEntityViewComponent.canShowEntity(owlEntity)){ lastEntityDisplayCandidate = Optional.of(view); return true; } } } else { // otherwise, ask its plugin ViewComponentPlugin plugin = getWorkspace().getViewManager().getViewComponentPlugin(view.getId()); if (plugin != null) { for (String nav : plugin.getNavigates()){ if (entityCat.equals(nav)){ lastEntityDisplayCandidate = Optional.of(view); return true; } } } } } return false; }
private boolean canDisplay(OWLEntity owlEntity) { String entityCat = new NavFinder().getNav(owlEntity); // search the contained views to see if there is one that can show the entity for (View view : getViewsPane().getViews()){ ViewComponent vc = view.getViewComponent(); if (vc != null){ // if the view is on a tab that has been initialised ask it directly if (vc instanceof AbstractOWLSelectionViewComponent && vc instanceof SelectionDriver){ final AbstractOWLSelectionViewComponent owlEntityViewComponent = (AbstractOWLSelectionViewComponent)vc; if (owlEntityViewComponent.canShowEntity(owlEntity)){ lastEntityDisplayCandidate = Optional.of(view); return true; } } } else { // otherwise, ask its plugin ViewComponentPlugin plugin = getWorkspace().getViewManager().getViewComponentPlugin(view.getId()); if (plugin != null) { for (String nav : plugin.getNavigates()){ if (entityCat.equals(nav)){ lastEntityDisplayCandidate = Optional.of(view); return true; } } } } } return false; }
private boolean canDisplay(OWLEntity owlEntity) { String entityCat = new NavFinder().getNav(owlEntity); // search the contained views to see if there is one that can show the entity for (View view : getViewsPane().getViews()){ ViewComponent vc = view.getViewComponent(); if (vc != null){ // if the view is on a tab that has been initialised ask it directly if (vc instanceof AbstractOWLSelectionViewComponent){ final AbstractOWLSelectionViewComponent owlEntityViewComponent = (AbstractOWLSelectionViewComponent)vc; if (owlEntityViewComponent.canShowEntity(owlEntity)){ return true; } } } else { // otherwise, ask its plugin ViewComponentPlugin plugin = getWorkspace().getViewManager().getViewComponentPlugin(view.getId()); if (plugin != null) { for (String nav : plugin.getNavigates()){ if (entityCat.equals(nav)){ return true; } } } } } return false; }
private boolean canDisplay(OWLEntity owlEntity) { String entityCat = new NavFinder().getNav(owlEntity); // search the contained views to see if there is one that can show the entity for (View view : getViewsPane().getViews()){ ViewComponent vc = view.getViewComponent(); if (vc != null){ // if the view is on a tab that has been initialised ask it directly if (vc instanceof AbstractOWLSelectionViewComponent){ final AbstractOWLSelectionViewComponent owlEntityViewComponent = (AbstractOWLSelectionViewComponent)vc; if (owlEntityViewComponent.canShowEntity(owlEntity)){ return true; } } } else { // otherwise, ask its plugin ViewComponentPlugin plugin = getWorkspace().getViewManager().getViewComponentPlugin(view.getId()); if (plugin != null) { for (String nav : plugin.getNavigates()){ if (entityCat.equals(nav)){ return true; } } } } } return false; }