/*
- * 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.
@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();
-
}