* \r
* @throws DatabaseException\r
*/\r
- public void init() throws DatabaseException \r
+ public AddVariableToChartAction init() throws DatabaseException \r
{\r
Simantics.getSession().sync( new ReadRequest() {\r
@Override\r
init(g);\r
}\r
} );\r
+ return this;\r
}\r
\r
/**\r
* \r
* @throws DatabaseException\r
*/\r
- public void init( ReadGraph g ) throws DatabaseException \r
+ public AddVariableToChartAction init( ReadGraph g ) throws DatabaseException \r
{\r
Layer0 L0 = Layer0.getInstance(g);\r
if(chart != null) {\r
variableReferences.add( var.getVariableId().toPossibleString(g, configuration) );\r
}\r
}\r
+\r
+ return this;\r
}\r
\r
/**\r