src/share/classes/sun/tools/jconsole/inspector/XMBeanNotifications.java

Print this page
rev 5340 : 7017818: NLS: JConsoleResources.java cannot be handled by translation team
Reviewed-by: duke

*** 24,34 **** */ package sun.tools.jconsole.inspector; import javax.swing.*; - import javax.swing.event.*; import javax.swing.table.*; import javax.swing.tree.*; import java.awt.Font; import java.text.SimpleDateFormat; --- 24,33 ----
*** 44,66 **** import javax.management.*; import javax.management.openmbean.CompositeData; import javax.management.openmbean.TabularData; import sun.tools.jconsole.JConsole; ! import sun.tools.jconsole.Resources; @SuppressWarnings("serial") public class XMBeanNotifications extends JTable implements NotificationListener { private final static String[] columnNames = { ! Resources.getText("TimeStamp"), ! Resources.getText("Type"), ! Resources.getText("UserData"), ! Resources.getText("SeqNum"), ! Resources.getText("Message"), ! Resources.getText("Event"), ! Resources.getText("Source") }; private HashMap<ObjectName, XMBeanNotificationsListener> listeners = new HashMap<ObjectName, XMBeanNotificationsListener>(); private volatile boolean subscribed; private XMBeanNotificationsListener currentListener; --- 43,65 ---- import javax.management.*; import javax.management.openmbean.CompositeData; import javax.management.openmbean.TabularData; import sun.tools.jconsole.JConsole; ! import sun.tools.jconsole.resources.Messages; @SuppressWarnings("serial") public class XMBeanNotifications extends JTable implements NotificationListener { private final static String[] columnNames = { ! Messages.TIME_STAMP, ! Messages.TYPE, ! Messages.USER_DATA, ! Messages.SEQ_NUM, ! Messages.MESSAGE, ! Messages.EVENT, ! Messages.SOURCE }; private HashMap<ObjectName, XMBeanNotificationsListener> listeners = new HashMap<ObjectName, XMBeanNotificationsListener>(); private volatile boolean subscribed; private XMBeanNotificationsListener currentListener;
*** 181,191 **** renderer = (DefaultTableCellRenderer) super.getCellRenderer(row, column); } if (cell != null) { ! toolTip = Resources.getText("Double click to expand/collapse") + ". " + cell.toString(); } else { Object val = ((DefaultTableModel) getModel()).getValueAt(row, column); if (val != null) { --- 180,190 ---- renderer = (DefaultTableCellRenderer) super.getCellRenderer(row, column); } if (cell != null) { ! toolTip = Messages.DOUBLE_CLICK_TO_EXPAND_FORWARD_SLASH_COLLAPSE+ ". " + cell.toString(); } else { Object val = ((DefaultTableModel) getModel()).getValueAt(row, column); if (val != null) {
*** 597,607 **** } } class XMBeanNotificationsListener implements NotificationListener { - private String[] columnNames; private XMBean xmbean; private DefaultMutableTreeNode node; private volatile long received; private XMBeanNotifications notifications; private volatile boolean unregistered; --- 596,605 ----
*** 613,623 **** DefaultMutableTreeNode node, String[] columnNames) { this.notifications = notifications; this.xmbean = xmbean; this.node = node; - this.columnNames = columnNames; register(node); } public synchronized List<Object[]> getData() { return data; --- 611,620 ----