X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.browsing.ui.swt%2Fsrc%2Forg%2Fsimantics%2Fbrowsing%2Fui%2Fswt%2FNodePropertyTester.java;h=2b6f7c37992e3b78ad0486ffda5cc46829973ac2;hp=647d0a158df4c62bec42b2e6b6fcc7440a40fe24;hb=72186a982dc8b076bef48313fbbd22ecc78c08bc;hpb=f94662db8f48e79c706844ace3692734dd6c2f48 diff --git a/bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/NodePropertyTester.java b/bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/NodePropertyTester.java index 647d0a158..2b6f7c379 100644 --- a/bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/NodePropertyTester.java +++ b/bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/NodePropertyTester.java @@ -26,6 +26,7 @@ import org.simantics.browsing.ui.model.queries.IsNodeContextModifiable; import org.simantics.browsing.ui.model.queries.IsNodeContextRemovable; import org.simantics.db.Resource; import org.simantics.db.Session; +import org.simantics.db.common.procedure.adapter.TransientCacheListener; import org.simantics.db.common.utils.RequestUtil; import org.simantics.db.exception.DatabaseException; import org.simantics.db.layer0.SelectionHints; @@ -158,7 +159,8 @@ public class NodePropertyTester extends PropertyTester { SimanticsUI.UI_THREAD_REQUEST_START_TIMEOUT, SimanticsUI.UI_THREAD_REQUEST_EXECUTION_TIMEOUT, false, - new IsNodeContextRemovable( nc ) ); + new IsNodeContextRemovable( nc ), + TransientCacheListener.instance()); } catch (DatabaseException | InterruptedException e) { } return false; @@ -185,7 +187,8 @@ public class NodePropertyTester extends PropertyTester { SimanticsUI.UI_THREAD_REQUEST_START_TIMEOUT, SimanticsUI.UI_THREAD_REQUEST_EXECUTION_TIMEOUT, false, - new IsNodeContextModifiable( nc ) ); + new IsNodeContextModifiable( nc ), + TransientCacheListener.instance()); } catch (DatabaseException | InterruptedException e) { } return false;