return instance;
}
private void init()
{
SuperTreeItem root = new SuperTreeItem(HTMLHelper.imageWithText(GWT
.getModuleBaseURL()
+ "gwtcomp-icons/gohome.png", "Home"), 1);
root.setUserObject(new RootOperationListener());
tree.addItem(root);
connectors = new SuperTreeItem(HTMLHelper.imageWithText(GWT
.getModuleBaseURL()
+ "gwtcomp-icons/folder.png", "Connectors"), 1);
connectors.setUserObject(new ConnectorOperationListener(
ConnectorOperationListener.CONNECTORS_REFRESH));
connectors.setContextMenu(createConnectorsContextMenu());
root.addItem(connectors);
connectors.addItem("");
contexts = new SuperTreeItem(HTMLHelper.imageWithText(GWT
.getModuleBaseURL()
+ "gwtcomp-icons/folder_html.png", "Contexts"), 1);
contexts.setUserObject(new ContextOperationListener(
ContextOperationListener.CONTEXTS_REFRESH));
contexts.setContextMenu(createContextsContextMenu());
root.addItem(contexts);
contexts.addItem("");
realms = new SuperTreeItem(HTMLHelper.imageWithText(GWT
.getModuleBaseURL()
+ "gwtcomp-icons/folder_locked.png", "Realms"), 1);
realms.setUserObject(new RealmOperationListener(
RealmOperationListener.REALMS_REFRESH));
realms.setContextMenu(createRealmsContextMenu());
root.addItem(realms);
realms.addItem("");
initTreeListeners();
root.setState(true);
}