]> gerrit.simantics Code Review - simantics/interop.git/commitdiff
git-svn-id: https://www.simantics.org/svn/simantics/interoperability/trunk@22359...
authorluukkainen <luukkainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 21 Sep 2011 10:32:41 +0000 (10:32 +0000)
committerMarko Luukkainen <marko.luukkainen@vtt.fi>
Thu, 2 Feb 2017 09:22:16 +0000 (11:22 +0200)
org.simantics.interop/src/org/simantics/interop/browsing/INodeEvaluators.java

index 97c8e290eeb1ba2d1104d5fef98932f38eeef8c2..635fce5936901f199feee30dd4feea6e50dca7bf 100644 (file)
@@ -143,10 +143,10 @@ class NodeLabelerFactory implements LabelerFactory {
 //                return ((INode) context.getConstant(BuiltinKeys.INPUT)).getModifier(SimanticsUI.getSession(), key);\r
 //            }\r
 //\r
-//            @Override\r
-//            public int category(ReadGraph graph) throws DatabaseException {\r
-//                return ((INode) context.getConstant(BuiltinKeys.INPUT)).getCategory(graph);\r
-//            }\r
+            @Override\r
+            public int category(ReadGraph graph) throws DatabaseException {\r
+                return ((INode) context.getConstant(BuiltinKeys.INPUT)).getCategory(graph);\r
+            }\r
         };\r
     }\r
 }\r
@@ -164,8 +164,9 @@ class NodeImagerFactory implements ImagerFactory {
             @Override\r
             public void run(ReadGraph g) {\r
                 try {\r
-                    ImageDescriptor descriptor = ((INode)context.getConstant(BuiltinKeys.INPUT)).getImage(g);\r
-                    result.setImage(descriptor);\r
+                       INode node = (INode)context.getConstant(BuiltinKeys.INPUT);\r
+                    ImageDescriptor descriptor = node.getImage(g);\r
+                       result.setImage(descriptor);\r
                     updater.scheduleReplace(context, key, result);\r
                 } catch (DatabaseException e) {\r
                     e.printStackTrace();\r