/*
- * 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.
}
private boolean isPassed = true;
- private boolean isDisposed = false;
protected synchronized void setPassed(boolean isPassed) {
this.isPassed = isPassed;
@Override
public synchronized boolean hasChildren() {
- // sometimes in UI, disposed objects are still called.
- if (isDisposed)
- return false;
+ // only initialize when needed : correctly called by the jface framework
if (!isLoaded())
initialize();
return super.hasChildren();
}
public void forceFullRefresh() {
- if (isDisposed)
- return;
+ // if (isDisposed)
+ // return;
if (hasChildren())
clearChildren();
initialize();
}
- public synchronized void dispose() {
- super.dispose();
- isDisposed = true;
- }
-
protected abstract void initialize();
-
}