// 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
@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