From: Marko Luukkainen Date: Wed, 28 Oct 2020 10:10:36 +0000 (+0200) Subject: Check for property tab contribution change. X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F84%2F4584%2F1;p=simantics%2Fplatform.git Check for property tab contribution change. gitlab #631 Change-Id: I08d2a156728298410639d236f5833c05d0ba0d9e --- diff --git a/bundles/org.simantics.selectionview/src/org/simantics/selectionview/TabbedPropertyTable.java b/bundles/org.simantics.selectionview/src/org/simantics/selectionview/TabbedPropertyTable.java index 70a0c573a..7f7aecd0b 100644 --- a/bundles/org.simantics.selectionview/src/org/simantics/selectionview/TabbedPropertyTable.java +++ b/bundles/org.simantics.selectionview/src/org/simantics/selectionview/TabbedPropertyTable.java @@ -275,15 +275,20 @@ public class TabbedPropertyTable extends Composite implements IPropertyTab { } protected Consumer> inputCallback(final Collection selectionContents, final ISessionContext sessionContext) { - return new Consumer>() { + return new Consumer>() { + Collection currentContribs =null; @Override public void accept(final Collection contribs) { - if (isDisposed()) + if (isDisposed()) { + currentContribs = null; return; + } + if (contribs != null && contribs.equals(currentContribs)) + return; + currentContribs = contribs; // if (contribs.isEmpty()) // return; - SimanticsUI.asyncExecSWT(TabbedPropertyTable.this, new Runnable() { public void run() {