return element.toString();
}
protected synchronized Object[] loadAndGetChildren(final Object parent) {
final RefreshableNode w = (RefreshableNode)parent;
if(w.isLoaded()) return w.getChildren();
// Must load the model
Job job = new Job("Loading " + parent + "...") {
/*
* (non-Javadoc)
* @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor)
*/
@Override
protected IStatus run(IProgressMonitor monitor) {
try {
monitor.beginTask("Loading children of " + w + "...", 1);
w.getChildren();
monitor.done();
} finally {
loading.remove(w);
}