*******************************************************************************/\r
package org.simantics.g3d.csg.ontology;\r
\r
+import org.simantics.db.RequestProcessor;\r
import org.simantics.db.Resource;\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.request.Read;\r
return ret;\r
}\r
\r
- public static CSG getInstance(Session session) throws DatabaseException {\r
+ public static CSG getInstance(RequestProcessor session) throws DatabaseException {\r
CSG ret = session.peekService(CSG.class);\r
if(ret == null) {\r
ret = session.syncRequest(new Read<CSG>() {\r
*******************************************************************************/\r
package org.simantics.g3d.ontology;\r
\r
+import org.simantics.db.RequestProcessor;\r
import org.simantics.db.Resource;\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.request.Read;\r
return ret;\r
}\r
\r
- public static G3D getInstance(Session session) throws DatabaseException {\r
+ public static G3D getInstance(RequestProcessor session) throws DatabaseException {\r
G3D ret = session.peekService(G3D.class);\r
if(ret == null) {\r
ret = session.syncRequest(new Read<G3D>() {\r
import java.util.List;\r
import java.util.Map;\r
import java.util.Set;\r
+import java.util.function.Consumer;\r
\r
import org.eclipse.jface.layout.GridDataFactory;\r
import org.eclipse.jface.viewers.AbstractTableViewer;\r
\r
\r
\r
- \r
- \r
@Override\r
- public void updatePartName(Callback<String> updateCallback) {\r
+ public void updatePartName(Consumer<String> updateCallback) {\r
if (node != null)\r
- updateCallback.run(node.toString()); \r
+ updateCallback.accept(node.toString()); \r
\r
}\r
\r