From d613530ca19459bcc8a75015ec28533968b92c2d Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Wed, 28 Oct 2020 12:10:36 +0200 Subject: [PATCH] Check for property tab contribution change. gitlab #631 Change-Id: I08d2a156728298410639d236f5833c05d0ba0d9e --- .../simantics/selectionview/TabbedPropertyTable.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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() { -- 2.47.1