예제 #1
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);
    }
  }
예제 #2
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);
    }
  }