From b79406dcc167890ad62d43f0aa1baf1ce25b5e47 Mon Sep 17 00:00:00 2001 From: luukkainen Date: Thu, 8 Dec 2016 14:52:18 +0000 Subject: [PATCH] Recomplied G3D ontologies and updated AnntotatedPropertyTabContrubutor refs #6862 git-svn-id: https://www.simantics.org/svn/simantics/3d/trunk@33408 ac1ea38d-2e2b-0410-8846-a27921b304fc --- org.simantics.g3d.csg.ontology/graph.tg | Bin 13109 -> 13109 bytes .../org/simantics/g3d/csg/ontology/CSG.java | 3 ++- org.simantics.g3d.ontology/graph.tg | Bin 4535 -> 4535 bytes .../src/org/simantics/g3d/ontology/G3D.java | 3 ++- ...nnotatedPropertyTabContributorFactory.java | 7 +++---- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/org.simantics.g3d.csg.ontology/graph.tg b/org.simantics.g3d.csg.ontology/graph.tg index 5c532de4b4d2522c6be606a5416cc73c3a10b2a1..525ba1366927f5b541031e0a19455a2c199387ed 100644 GIT binary patch delta 181 zcmWN|u?>Pi7=Y1SOU`)ZX-KZYtIiD=0XM+JMk-vuFaq7*G6IDOp<{#_;p{CmE`W(& z@ya(hbMuH+o#knrBx}?~e)g+w^4U3cpEmn#rZPEtC&3%Zp|Ku}ypa&GV8nnP9a_|= fP$D3Q##-=^5V2syfF2!M)TmG*6h>XAlYi+yA4EIs delta 181 zcmWN|u?>Pi7=Y1SOU`)ZX-KZYtIiD=0XM+JMk-vuFaq7*G6IDOp<{#_;p{CmE`W(& z@ya(hbMuH+UF2zPDxrmk}IPJ%a*Lt{M{c_SfW!H5ApI<%-! fp+rCqjkVw-A!5OZ0X;gjs8OLrD2&RclYi+yP`*3t diff --git a/org.simantics.g3d.csg.ontology/src/org/simantics/g3d/csg/ontology/CSG.java b/org.simantics.g3d.csg.ontology/src/org/simantics/g3d/csg/ontology/CSG.java index af2df4db..2efbbb01 100644 --- a/org.simantics.g3d.csg.ontology/src/org/simantics/g3d/csg/ontology/CSG.java +++ b/org.simantics.g3d.csg.ontology/src/org/simantics/g3d/csg/ontology/CSG.java @@ -11,6 +11,7 @@ *******************************************************************************/ package org.simantics.g3d.csg.ontology; +import org.simantics.db.RequestProcessor; import org.simantics.db.Resource; import org.simantics.db.ReadGraph; import org.simantics.db.request.Read; @@ -230,7 +231,7 @@ public class CSG { return ret; } - public static CSG getInstance(Session session) throws DatabaseException { + public static CSG getInstance(RequestProcessor session) throws DatabaseException { CSG ret = session.peekService(CSG.class); if(ret == null) { ret = session.syncRequest(new Read() { diff --git a/org.simantics.g3d.ontology/graph.tg b/org.simantics.g3d.ontology/graph.tg index 8c6bb84afb0a9b963fc54b981a3506e558602149..ed0e5d348c7dfae8e25161e17491e74d34668739 100644 GIT binary patch delta 95 zcmdn4yj^)i1JC3Gyd0BP@JdWxz$-9$0uVOi(5Gw$&0I$F#AoYPq eVDbYXz5v7rfOrECF96~RK-|E?vH1k=du9N$QXXOe delta 95 zcmdn4yj^)i1JC3Gyd0BP@JdWxz$-9$0uVOi(5Gw$&0I$F#AoYPq eVDbYXz5v7rfOrECF96~RK-|E?vH1k=du9N$QXXOe diff --git a/org.simantics.g3d.ontology/src/org/simantics/g3d/ontology/G3D.java b/org.simantics.g3d.ontology/src/org/simantics/g3d/ontology/G3D.java index 87d260d0..ee58a301 100644 --- a/org.simantics.g3d.ontology/src/org/simantics/g3d/ontology/G3D.java +++ b/org.simantics.g3d.ontology/src/org/simantics/g3d/ontology/G3D.java @@ -11,6 +11,7 @@ *******************************************************************************/ package org.simantics.g3d.ontology; +import org.simantics.db.RequestProcessor; import org.simantics.db.Resource; import org.simantics.db.ReadGraph; import org.simantics.db.request.Read; @@ -134,7 +135,7 @@ public class G3D { return ret; } - public static G3D getInstance(Session session) throws DatabaseException { + public static G3D getInstance(RequestProcessor session) throws DatabaseException { G3D ret = session.peekService(G3D.class); if(ret == null) { ret = session.syncRequest(new Read() { diff --git a/org.simantics.g3d/src/org/simantics/g3d/property/AnnotatedPropertyTabContributorFactory.java b/org.simantics.g3d/src/org/simantics/g3d/property/AnnotatedPropertyTabContributorFactory.java index c0ea36e9..b922e77d 100644 --- a/org.simantics.g3d/src/org/simantics/g3d/property/AnnotatedPropertyTabContributorFactory.java +++ b/org.simantics.g3d/src/org/simantics/g3d/property/AnnotatedPropertyTabContributorFactory.java @@ -24,6 +24,7 @@ import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; +import java.util.function.Consumer; import org.eclipse.jface.layout.GridDataFactory; import org.eclipse.jface.viewers.AbstractTableViewer; @@ -707,12 +708,10 @@ public class AnnotatedPropertyTabContributorFactory implements PropertyTabContri - - @Override - public void updatePartName(Callback updateCallback) { + public void updatePartName(Consumer updateCallback) { if (node != null) - updateCallback.run(node.toString()); + updateCallback.accept(node.toString()); } -- 2.47.1