return ((TreeObject) parent).hasChildren();
return false;
}
private void initialize() {
ModelController modelController = ModelController.getInstance();
invisibleRoot = new TreeObject(""); //$NON-NLS-1$
if (!checkModelPath(invisibleRoot))
return;
// TODO externalize
TreeObject root = new TreeObject("Ecore Models"); //$NON-NLS-1$
invisibleRoot.getChildren().add(root);
for (String modelID : modelController.getModelMap().keySet()) {
TreeObject modelTreeObject = new ModelTreeObject(modelID, modelID);
root.getChildren().add(modelTreeObject);
}
}