projects
/
jSite2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add other projects’ licenses
[jSite2.git]
/
src
/
net
/
pterodactylus
/
jsite
/
gui
/
NodeLabel.java
diff --git
a/src/net/pterodactylus/jsite/gui/NodeLabel.java
b/src/net/pterodactylus/jsite/gui/NodeLabel.java
index
ca3bbfd
..
46e8be1
100644
(file)
--- a/
src/net/pterodactylus/jsite/gui/NodeLabel.java
+++ b/
src/net/pterodactylus/jsite/gui/NodeLabel.java
@@
-34,6
+34,7
@@
import javax.swing.SwingConstants;
import javax.swing.border.EtchedBorder;
import net.pterodactylus.jsite.core.Node;
import javax.swing.border.EtchedBorder;
import net.pterodactylus.jsite.core.Node;
+import net.pterodactylus.jsite.i18n.I18n;
import net.pterodactylus.jsite.i18n.I18nable;
import net.pterodactylus.jsite.i18n.gui.I18nLabel;
import net.pterodactylus.jsite.i18n.I18nable;
import net.pterodactylus.jsite.i18n.gui.I18nLabel;
@@
-89,6
+90,7
@@
public class NodeLabel extends JLabel implements PropertyChangeListener, MouseLi
this.offlineIcon = offlineIcon;
this.errorIcon = errorIcon;
initComponents();
this.offlineIcon = offlineIcon;
this.errorIcon = errorIcon;
initComponents();
+ node.addPropertyChangeListener(this);
}
//
}
//
@@
-161,9
+163,10
@@
public class NodeLabel extends JLabel implements PropertyChangeListener, MouseLi
if (propertyChangeEvent.getSource() != node) {
return;
}
if (propertyChangeEvent.getSource() != node) {
return;
}
- if (propertyChangeEvent.getProp
agationId
().equals(Node.PROPERTY_NAME)) {
+ if (propertyChangeEvent.getProp
ertyName
().equals(Node.PROPERTY_NAME)) {
setText(node.getName());
setText(node.getName());
- menuLabel.updateI18n();
+ /* TODO - find way to get around this hack */
+ menuLabel.setText(I18n.get("mainWindow.statusBar.nodeLabel.name", node.getName()));
}
}
}
}