diff options
Diffstat (limited to 'src/net/java/sip/communicator/plugin/autoaway/AutoAwayConfigForm.java')
-rw-r--r-- | src/net/java/sip/communicator/plugin/autoaway/AutoAwayConfigForm.java | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/net/java/sip/communicator/plugin/autoaway/AutoAwayConfigForm.java b/src/net/java/sip/communicator/plugin/autoaway/AutoAwayConfigForm.java index d671e80..994acfe 100644 --- a/src/net/java/sip/communicator/plugin/autoaway/AutoAwayConfigForm.java +++ b/src/net/java/sip/communicator/plugin/autoaway/AutoAwayConfigForm.java @@ -54,7 +54,8 @@ public class AutoAwayConfigForm // Title : automatic status JLabel autoStatusLabel - = new JLabel(Resources.getString("automaticStatus")); + = new JLabel(AutoAwayActivator.getResources() + .getI18NString("automaticStatus")); Font bold = autoStatusLabel.getFont().deriveFont(Font.BOLD); @@ -63,7 +64,8 @@ public class AutoAwayConfigForm JPanel fieldsPanel = new JPanel(new BorderLayout(5, 5)); fieldsPanel.setBorder(BorderFactory.createEmptyBorder(10, 30, 0, 0)); - enable = new JCheckBox(Resources.getString("enableChangeStatus")); + enable = new JCheckBox(AutoAwayActivator.getResources() + .getI18NString("enableChangeStatus")); fieldsPanel.add(enable, BorderLayout.NORTH); enable.addActionListener(new ActionListener() { @@ -78,7 +80,8 @@ public class AutoAwayConfigForm JPanel timerPanel = new JPanel(new FlowLayout(FlowLayout.LEFT)); // Texte - timerPanel.add(new JLabel(Resources.getString("awayMinutes"))); + timerPanel.add(new JLabel( + AutoAwayActivator.getResources().getI18NString("awayMinutes"))); // Spinner timer = new JSpinner(new SpinnerNumberModel(15, 1, 180, 1)); timerPanel.add(timer); @@ -165,7 +168,8 @@ public class AutoAwayConfigForm */ public byte[] getIcon() { - return Resources.getResources().getImageInBytes("autoAwayConfigIcon"); + return AutoAwayActivator.getResources() + .getImageInBytes("plugin.autoaway.PLUGIN_ICON"); } /** @@ -182,7 +186,8 @@ public class AutoAwayConfigForm */ public String getTitle() { - return Resources.getString("automaticStatus"); + return AutoAwayActivator.getResources() + .getI18NString("automaticStatus"); } } |