nu.zoom.swing.desktop.Workbench.setStatusbarMessage()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(93)

本文整理了Java中nu.zoom.swing.desktop.Workbench.setStatusbarMessage()方法的一些代码示例,展示了Workbench.setStatusbarMessage()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Workbench.setStatusbarMessage()方法的具体详情如下:
包路径:nu.zoom.swing.desktop.Workbench
类名称:Workbench
方法名:setStatusbarMessage

Workbench.setStatusbarMessage介绍

暂无

代码示例

代码示例来源:origin: nu.zoom/eon2

@Override
  public void run() {
    lookupProgressBar.setIndeterminate(false);
    workbench.stopWorkIndicator();
    workbench.setStatusbarMessage(canonicalHostName);
    if ((domainNameField.getText() != null) && (domainNameField.getText().length() < 1)) {
      domainNameField.setText(canonicalHostName);
    }
  }
});

代码示例来源:origin: nu.zoom/eon2

public void actionPerformed(ActionEvent e) {
    workbench
        .setStatusbarMessage(messages
            .getMessage("attributes.stringeditor.action.cancelled"));
    dlg.dispose();
  }
});

代码示例来源:origin: nu.zoom/eon2

@Override
  public void run() {
    lookupProgressBar.setIndeterminate(true);
    workbench.startWorkIndicator();
    workbench.setStatusbarMessage(messages.getMessage("connection.dns.canonicalhostname"));
  }
});

代码示例来源:origin: nu.zoom/eon2

private void lookupButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_lookupButtonActionPerformed
  lookupProgressBar.setIndeterminate(true);
  workbench.startWorkIndicator();
  String lookup = "_ldap._tcp." + domainNameField.getText();
  String message = messages.format("connection.dns.lookup", lookup);
  workbench.setStatusbarMessage(message);
  lookupButton.setEnabled(false);
  resultTableModel.clear();
  operationManager.runOperation(new FindADServersOperation(lookup));
}//GEN-LAST:event_lookupButtonActionPerformed
// Variables declaration - do not modify//GEN-BEGIN:variables

代码示例来源:origin: nu.zoom/eon2

@Override
  public void run() {
    lookupProgressBar.setIndeterminate(false);
    workbench.stopWorkIndicator();
    if (result.size() < 1) {
      workbench.setStatusbarMessage(messages.format("connection.dns.noresults", lookupName));
    } else {
      Set<Entry<SRVRecord, List<InetAddress>>> resultSet =
          result.entrySet();
      for (Entry<SRVRecord, List<InetAddress>> entry : resultSet) {
        SRVRecord srv = entry.getKey();
        resultTableModel.addEntry(srv.getHostname());
        List<InetAddress> addresses = entry.getValue();
        String addressesString = "";
        for (InetAddress address : addresses) {
          addressesString += " " + address.getHostAddress();
        }
        resultTableModel.addEntry(addressesString);
        resultTableModel.addEntry("" + srv.getPort());
        resultTableModel.addEntry("" + srv.getPriority());
        resultTableModel.addEntry("" + srv.getWeight());
      }
    }
    lookupButton.setEnabled(true);
  }
});

代码示例来源:origin: nu.zoom/eon2

@Override
protected WorkbenchFrame createFrame() {
  workbench.setStatusbarMessage(messages.getMessage("about.copyright"));
  VerticalPanel copyPanel = new VerticalPanel();
  copyPanel.addRow(new JLabel(messages.getMessage("about.copyright")));

代码示例来源:origin: nu.zoom/eon2

public void actionPerformed(ActionEvent e) {
  try {
    connectionFactory.removeConnection(connection);
    workbench.setStatusbarMessage(messages.format("connection.deleted",
        connection.getDescription()));
  } catch (BackendException exc) {
    workbench.getErrorReporter().reportError(
        messages.format("connection.error.backend", exc
            .getLocalizedMessage()));
  }
}

代码示例来源:origin: nu.zoom/svansprogram

pane.setPreferredConfiguration(configurationUUID);
  workbench.setStatusbarMessage(localizedResources.format(
      "nu.zoom.catonine.opened", file.getAbsolutePath()));
} catch (Exception e1) {

代码示例来源:origin: nu.zoom/eon2

/**
   * Do not call this method directly. This method is called by the operation
   * manager.
   *
   * @see nu.zoom.ldap.eon.operation.OperationManager#runOperation(Operation)
   *
   */
  public void execute() {
    try {
      workbench.startWorkIndicator();
      workbench.setStatusbarMessage(messages.format(
          "connection.connecting", connection.getDescription()));
      final InitialLdapContext iCtx = connection.getConnection();
      if (iCtx != null) {
        EventQueue.invokeLater(new Runnable() {

          public void run() {
            workbench.stopWorkIndicator();
            componentFactory.showNewConnection(iCtx, connection);

          }
        });
      }
    } catch (BackendException e) {
      workbench.stopWorkIndicator();
      workbench.getErrorReporter().reportError(
          messages.format("connection.connect.error", connection.getDescription()), e);
    }
  }
}

代码示例来源:origin: nu.zoom/svansprogram

menuItem.getValue());
    workbench.getErrorReporter().reportError(message);
    workbench.setStatusbarMessage(message);
  } catch (ResourceNotFoundException resourceNotFoundException) {
      menuItem.getValue());
  workbench.getErrorReporter().reportError(message);
  workbench.setStatusbarMessage(message);
} catch (ResourceNotFoundException resourceNotFoundException) {

代码示例来源:origin: nu.zoom/eon2

public void activate(DirectoryTree tree) {
  DirectoryTreeObject[] selectedNodes = null;
  try {
    selectedNodes = tree.getSelectedNodes();
  } catch (NamingException e) {
    selectedNodes = null;
  }
  if (selectedNodes != null) {
    for (int i = 0; i < selectedNodes.length; i++) {
      InitialLdapContext iCtx = tree.getConnection();
      Name nodeToDelete = selectedNodes[i].getDistinguishedName();
      Name parent = nodeToDelete.getPrefix(nodeToDelete.size() - 1);
      try {
        workbench.setStatusbarMessage(messages.format(
            "tree.popup.delete.node",
            nodeToDelete.toString()));
        iCtx.destroySubcontext(nodeToDelete);
        eventRegistry.fireStructureChanged(tree.getConnectionInformation().getGUID(), parent) ;
      } catch (NamingException e1) {
        workbench.getErrorReporter().reportError(
            messages.getMessage("error.tree.delete"),
            e1);
      }
    }
  }
}

代码示例来源:origin: nu.zoom/eon2

public void execute(DirectoryTreeObject target) throws BackendException {
    try {
      workbench.startWorkIndicator();
      Attributes attributes = sourceObject.getConnection().getAttributes(
          sourceObject.getDistinguishedName());
      Name sourceName = sourceObject.getDistinguishedName();
      Name sourceRDN = sourceName.getSuffix(sourceName.size() - 1);
      Name newName = ((Name) target.getDistinguishedName().clone())
          .addAll(sourceRDN);
      workbench.setStatusbarMessage(messages.format(
          "clipboard.object.cut",
          sourceObject.getDistinguishedName(),
          newName.toString()));
      target.getConnection().createSubcontext(newName, attributes);
      eventRegistry.fireStructureChanged(target.getTree()
          .getConnectionInformation().getGUID(), newName);
      workbench.stopWorkIndicator();
    } catch (NamingException e) {
      workbench.stopWorkIndicator();
      workbench.getErrorReporter().reportError(
          messages.getMessage("error.tree.copy"),
          e);
    }
  }
}

相关文章