From af1897ec674ffb4477dc4b9daae11227364a9b1e Mon Sep 17 00:00:00 2001 From: luukkainen Date: Wed, 21 Sep 2011 10:32:41 +0000 Subject: [PATCH] git-svn-id: https://www.simantics.org/svn/simantics/interoperability/trunk@22359 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../simantics/interop/browsing/INodeEvaluators.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/org.simantics.interop/src/org/simantics/interop/browsing/INodeEvaluators.java b/org.simantics.interop/src/org/simantics/interop/browsing/INodeEvaluators.java index 97c8e29..635fce5 100644 --- a/org.simantics.interop/src/org/simantics/interop/browsing/INodeEvaluators.java +++ b/org.simantics.interop/src/org/simantics/interop/browsing/INodeEvaluators.java @@ -143,10 +143,10 @@ class NodeLabelerFactory implements LabelerFactory { // return ((INode) context.getConstant(BuiltinKeys.INPUT)).getModifier(SimanticsUI.getSession(), key); // } // -// @Override -// public int category(ReadGraph graph) throws DatabaseException { -// return ((INode) context.getConstant(BuiltinKeys.INPUT)).getCategory(graph); -// } + @Override + public int category(ReadGraph graph) throws DatabaseException { + return ((INode) context.getConstant(BuiltinKeys.INPUT)).getCategory(graph); + } }; } } @@ -164,8 +164,9 @@ class NodeImagerFactory implements ImagerFactory { @Override public void run(ReadGraph g) { try { - ImageDescriptor descriptor = ((INode)context.getConstant(BuiltinKeys.INPUT)).getImage(g); - result.setImage(descriptor); + INode node = (INode)context.getConstant(BuiltinKeys.INPUT); + ImageDescriptor descriptor = node.getImage(g); + result.setImage(descriptor); updater.scheduleReplace(context, key, result); } catch (DatabaseException e) { e.printStackTrace(); -- 2.47.1