Example #1
0
 @Executor()
 public void selected(HTMLExplorerEvent event) {
   String[] items = event.getPath();
   if (items == null) return;
   for (String ele : items) {
     System.out.println(ele);
   }
   System.out.println(event.getCharset());
 }
Example #2
0
  public void clickCancel() {
    Iterator<NodeInfoViewer> iterator = nodeViewers.iterator();
    while (iterator.hasNext()) {
      NodeInfoViewer viewer = iterator.next();
      if (viewer != null) viewer.close();
      viewer.close();
    }

    HTMLExplorerEvent event = new HTMLExplorerEvent();
    try {
      event.fire(this);
    } catch (Exception exp) {
      ClientLog.getInstance().setException(getShell(), exp);
    }
  }
Example #3
0
  public void clickOk() {
    Iterator<NodeInfoViewer> iterator = nodeViewers.iterator();
    while (iterator.hasNext()) {
      NodeInfoViewer viewer = iterator.next();
      if (viewer != null) viewer.close();
      viewer.close();
    }

    if (box.getItemCount() < 1) {
      box.addItem();
    }

    HTMLExplorerEvent event = null;
    event = new HTMLExplorerEvent(box.getItems(), currentURL, document, charset);
    try {
      event.fire(this);
    } catch (Exception exp) {
      ClientLog.getInstance().setException(getShell(), exp);
    }
  }