- protected void onEventInUiThread(EventIterator events) {
-// List<Node> baseNodes = ((SimpleNodeContentProvider) viewer
-// .getContentProvider()).getBaseNodes();
-// Node baseNode = baseNodes.get(0);
-//
-// while (events.hasNext()) {
-// Event event = events.nextEvent();
-// try {
-// String path = event.getPath();
-// String baseNodePath = baseNode.getPath();
-// if (path.startsWith(baseNodePath)) {
-// String relPath = path
-// .substring(baseNodePath.length() + 1);
-// log.debug("relPath: " + relPath);
-// if (baseNode.hasNode(relPath)) {
-// Node refreshNode = baseNode.getNode(relPath);
-// log.debug("refreshNode: " + refreshNode);
-// viewer.refresh(refreshNode);
-// }
-//
-// }
-// // if (log.isDebugEnabled())
-// // log.debug("Process " + path + ": " + event);
-//
-// // if (session.itemExists(path)) {
-// // Node parentNode = session.getNode(path).getParent();
-// // log.debug("Parent: " + parentNode);
-// // viewer.refresh(parentNode);
-// // }
-// } catch (RepositoryException e) {
-// log.warn("Cannot process event " + event + ": " + e);
-// }
-// }
+
+ public VmAgentObserver(Display display) {
+ super(display);
+ }
+
+ protected void onEventInUiThread(List<Event> events) {
+ // List<Node> baseNodes = ((SimpleNodeContentProvider) viewer
+ // .getContentProvider()).getBaseNodes();
+ // Node baseNode = baseNodes.get(0);
+ //
+ // while (events.hasNext()) {
+ // Event event = events.nextEvent();
+ // try {
+ // String path = event.getPath();
+ // String baseNodePath = baseNode.getPath();
+ // if (path.startsWith(baseNodePath)) {
+ // String relPath = path
+ // .substring(baseNodePath.length() + 1);
+ // log.debug("relPath: " + relPath);
+ // if (baseNode.hasNode(relPath)) {
+ // Node refreshNode = baseNode.getNode(relPath);
+ // log.debug("refreshNode: " + refreshNode);
+ // viewer.refresh(refreshNode);
+ // }
+ //
+ // }
+ // // if (log.isDebugEnabled())
+ // // log.debug("Process " + path + ": " + event);
+ //
+ // // if (session.itemExists(path)) {
+ // // Node parentNode = session.getNode(path).getParent();
+ // // log.debug("Parent: " + parentNode);
+ // // viewer.refresh(parentNode);
+ // // }
+ // } catch (RepositoryException e) {
+ // log.warn("Cannot process event " + event + ": " + e);
+ // }
+ // }