示例#1
0
  /**
   * Send an event to the listeners instructing that the largescale structure of nodes has changed.
   *
   * @param evt The event to be sent
   */
  private void fireTreeStructureChanged(TreeModelEvent evt) {
    Iterator itr = listeners.iterator();
    TreeModelListener l;

    while (itr.hasNext()) {
      l = (TreeModelListener) itr.next();
      try {
        l.treeStructureChanged(evt);
      } catch (Exception e) {
        I18nManager intl_mgr = I18nManager.getManager();
        String msg = intl_mgr.getString(STRUCTURE_CHANGE_ERR_PROP) + l;

        errorReporter.errorReport(msg, e);
      }
    }
  }
示例#2
0
  /**
   * Send an event to the listeners instructing that some nodes have been removed.
   *
   * @param evt The event to be sent
   */
  private void fireTreeNodesRemoved(TreeModelEvent evt) {
    Iterator itr = listeners.iterator();
    TreeModelListener l;

    while (itr.hasNext()) {
      l = (TreeModelListener) itr.next();
      try {
        l.treeNodesRemoved(evt);
      } catch (Exception e) {
        I18nManager intl_mgr = I18nManager.getManager();
        String msg = intl_mgr.getString(NODE_REMOVE_ERR_PROP) + l;

        errorReporter.errorReport(msg, e);
      }
    }
  }
 /**
  * Deserialize a stream
  *
  * @param st The xml string to deserialize
  */
 public void deserialize(String st) {
   errorReporter.messageReport("Networking Unsupported");
 }
 /**
  * Serialize this command.
  *
  * @param method What method should we use
  * @param os The stream to output to
  */
 public void serialize(int method, OutputStream os) {
   errorReporter.messageReport("Networking Unsupported");
 }