if (object instanceof ZNode) {
ZNode zkn = (ZNode) object;
if (logger.isDebugEnabled())
logger.debug("Opening: " + zkn);
try {
ZooKeeperClient client = ZooKeeperManager.INSTANCE.getClient(zkn.getServer());
byte[] open = client.open(zkn);
IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IEditorDescriptor defaultEditor = PlatformUI.getWorkbench().getEditorRegistry().getDefaultEditor(zkn.getNodeName());
activePage.openEditor(new ZooKeeperNodeEditorInput(zkn, open), defaultEditor == null ? "org.eclipse.ui.DefaultTextEditor"
: defaultEditor.getId(), true);
} catch (CoreException e) {