@Override public Iterator<? extends KBHandle> getRoots() { try { return kbService.listRootConcepts(kbModel.getObject(), preferences.getObject().showAllConcepts).iterator(); } catch (QueryEvaluationException e) { error(getString("listRootConceptsErrorMsg") + ": " + e.getLocalizedMessage()); LOG.error("Unable to list root concepts.", e); return Collections.emptyIterator(); } }
private List<KBHandle> getInstances() { if (conceptModel.getObject() != null) { try { return kbService.listInstances(kbModel.getObject(), conceptModel.getObject().getIdentifier(), showAll.getObject()); } catch (QueryEvaluationException e) { error("Unable to list instances: " + e.getLocalizedMessage()); LOG.error("Unable to list instances.",e); return Collections.emptyList(); } } else { return Collections.emptyList(); } }
@Override public Iterator<? extends KBHandle> getRoots() { try { return kbService.listRootConcepts(kbModel.getObject(), preferences.getObject().showAllConcepts).iterator(); } catch (QueryEvaluationException e) { error(getString("listRootConceptsErrorMsg") + ": " + e.getLocalizedMessage()); LOG.error("Unable to list root concepts.", e); return Collections.emptyIterator(); } }
private List<KBHandle> getConcepts() { if (isVisibleInHierarchy()) { Preferences prefs = preferences.getObject(); try { return kbService.listConcepts(kbModel.getObject(), prefs.showAllConcepts); } catch (QueryEvaluationException e) { error("Unable to list concepts: " + e.getLocalizedMessage()); LOG.error("Unable to list concepts.",e); return Collections.emptyList(); } } else { return Collections.emptyList(); } }
private List<KBHandle> getInstances() { if (conceptModel.getObject() != null) { try { return kbService.listInstances(kbModel.getObject(), conceptModel.getObject().getIdentifier(), showAll.getObject()); } catch (QueryEvaluationException e) { error("Unable to list instances: " + e.getLocalizedMessage()); LOG.error("Unable to list instances.",e); return Collections.emptyList(); } } else { return Collections.emptyList(); } }
private List<KBHandle> getConcepts() { if (isVisibleInHierarchy()) { Preferences prefs = preferences.getObject(); try { return kbService.listConcepts(kbModel.getObject(), prefs.showAllConcepts); } catch (QueryEvaluationException e) { error("Unable to list concepts: " + e.getLocalizedMessage()); LOG.error("Unable to list concepts.",e); return Collections.emptyList(); } } else { return Collections.emptyList(); } }
error("Unable to list statements: " + e.getLocalizedMessage()); LOG.error("Unable to list statements.", e);
error("Unable to list statements: " + e.getLocalizedMessage()); LOG.error("Unable to list statements.", e);
@Override public Iterator<? extends KBHandle> getChildren(KBHandle aNode) { try { // If the KB is read-only, then we cache the values and re-use the cached values. if (kbModel.getObject().isReadOnly()) { List<KBHandle> children = childrensCache.get(aNode); if (children == null) { children = kbService.listChildConcepts(kbModel.getObject(), aNode.getIdentifier(), preferences.getObject().showAllConcepts); childrensCache.put(aNode, children); } return children.iterator(); } else { return kbService.listChildConcepts(kbModel.getObject(), aNode.getIdentifier(), preferences.getObject().showAllConcepts).iterator(); } } catch (QueryEvaluationException e) { error(getString("listChildConceptsErrorMsg") + ": " + e.getLocalizedMessage()); LOG.error("Unable to list child concepts.", e); return Collections.emptyIterator(); } }
@Override public Iterator<? extends KBHandle> getChildren(KBHandle aNode) { try { // If the KB is read-only, then we cache the values and re-use the cached values. if (kbModel.getObject().isReadOnly()) { List<KBHandle> children = childrensCache.get(aNode); if (children == null) { children = kbService.listChildConcepts(kbModel.getObject(), aNode.getIdentifier(), preferences.getObject().showAllConcepts); childrensCache.put(aNode, children); } return children.iterator(); } else { return kbService.listChildConcepts(kbModel.getObject(), aNode.getIdentifier(), preferences.getObject().showAllConcepts).iterator(); } } catch (QueryEvaluationException e) { error(getString("listChildConceptsErrorMsg") + ": " + e.getLocalizedMessage()); LOG.error("Unable to list child concepts.", e); return Collections.emptyIterator(); } }
error(getString("listChildConceptsErrorMsg") + ": " + e.getLocalizedMessage()); LOG.error("Unable to list child concepts.", e); return false;
error(getString("listChildConceptsErrorMsg") + ": " + e.getLocalizedMessage()); LOG.error("Unable to list child concepts.", e); return false;
error("Unable to list statements: " + e.getLocalizedMessage()); LOG.error("Unable to list statements.", e); error("Unable to list properties: " + e.getLocalizedMessage()); LOG.error("Unable to list properties.", e);
error("Unable to list statements: " + e.getLocalizedMessage()); LOG.error("Unable to list statements.", e); error("Unable to list properties: " + e.getLocalizedMessage()); LOG.error("Unable to list properties.", e);
replacementPanel = emptyPanel(); error("Unable to read instance: " + e.getLocalizedMessage()); LOG.error("Unable to read instance.", e); event.getTarget().addChildren(getPage(), IFeedback.class);
replacementPanel = emptyPanel(); error("Unable to read instance: " + e.getLocalizedMessage()); LOG.error("Unable to read instance.", e); event.getTarget().addChildren(getPage(), IFeedback.class);
error("Unable to read property: " + e.getLocalizedMessage()); LOG.error("Unable to read property.", e); replacementPanel = new EmptyPanel(DETAILS_MARKUP_ID);
error("Unable to read property: " + e.getLocalizedMessage()); LOG.error("Unable to read property.", e); replacementPanel = new EmptyPanel(DETAILS_MARKUP_ID);
error("Unable to read concept: " + e.getLocalizedMessage()); LOG.error("Unable to read concept.", e); replacementPanel = new EmptyPanel(DETAILS_MARKUP_ID);
error("Unable to read concept: " + e.getLocalizedMessage()); LOG.error("Unable to read concept.", e); replacementPanel = new EmptyPanel(DETAILS_MARKUP_ID);