X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=plugins%2Forg.argeo.slc.client.ui%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fmodel%2FResultParent.java;h=a616cc4ff7c085a153f2f90bd30c3af66ded049d;hb=89114859830f6e159a259937375bd063f25f80c9;hp=ecbffcae4a863cc0e3c1be5a10154f07d3f28d9a;hpb=e8997305e4d5fe939e2e4ec55195afdc0d488bbc;p=gpl%2Fargeo-slc.git diff --git a/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/model/ResultParent.java b/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/model/ResultParent.java index ecbffcae4..a616cc4ff 100644 --- a/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/model/ResultParent.java +++ b/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/model/ResultParent.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007-2012 Mathieu Baudier + * Copyright (C) 2007-2012 Argeo GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -39,16 +39,19 @@ public abstract class ResultParent extends TreeParent { @Override public synchronized boolean hasChildren() { + // only initialize when needed : correctly called by the jface framework if (!isLoaded()) initialize(); return super.hasChildren(); } public void forceFullRefresh() { - clearChildren(); + // if (isDisposed) + // return; + if (hasChildren()) + clearChildren(); initialize(); } protected abstract void initialize(); - }