X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.selectionview%2Fsrc%2Forg%2Fsimantics%2Fselectionview%2FTabbedPropertyTable.java;fp=bundles%2Forg.simantics.selectionview%2Fsrc%2Forg%2Fsimantics%2Fselectionview%2FTabbedPropertyTable.java;h=7f7aecd0b6e9a7b21a31f6ab077645845978968a;hb=d613530ca19459bcc8a75015ec28533968b92c2d;hp=70a0c573a8cb95073c039d06996e2d6b412236b2;hpb=8ccd78dfefc346015da21a4eb197264ec32f0d44;p=simantics%2Fplatform.git 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() {