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=d613530ca19459bcc8a75015ec28533968b92c2d;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() {