diff options
author | Yana Stamcheva <yana@jitsi.org> | 2010-07-05 15:47:13 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2010-07-05 15:47:13 +0000 |
commit | 68337df58b03cb701971fc9e784dc54bea34d6a3 (patch) | |
tree | 84557fe73cb18c10a462a3754c01527f38d9a63d /src/net/java/sip/communicator/impl/protocol/ssh | |
parent | b44c93dccb9fe2aa578240a0fd59335c51dd4de6 (diff) | |
download | jitsi-68337df58b03cb701971fc9e784dc54bea34d6a3.zip jitsi-68337df58b03cb701971fc9e784dc54bea34d6a3.tar.gz jitsi-68337df58b03cb701971fc9e784dc54bea34d6a3.tar.bz2 |
Configuration window improvements including reorganizing sections, user interface modifications, account loading/unloading functionality and more.
Diffstat (limited to 'src/net/java/sip/communicator/impl/protocol/ssh')
-rw-r--r-- | src/net/java/sip/communicator/impl/protocol/ssh/ProtocolIconSSHImpl.java | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/ssh/ProtocolIconSSHImpl.java b/src/net/java/sip/communicator/impl/protocol/ssh/ProtocolIconSSHImpl.java index e4d5712..645bdab 100644 --- a/src/net/java/sip/communicator/impl/protocol/ssh/ProtocolIconSSHImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/ssh/ProtocolIconSSHImpl.java @@ -29,7 +29,7 @@ public class ProtocolIconSSHImpl { private static Logger logger = Logger.getLogger(ProtocolIconSSHImpl.class); - + /** * A hash table containing the protocol icon in different sizes. */ @@ -48,7 +48,30 @@ public class ProtocolIconSSHImpl iconsTable.put(ProtocolIcon.ICON_SIZE_64x64, getImageInBytes("service.protocol.ssh.SSH_64x64")); } - + + /** + * A hash table containing the protocol icon in different sizes. + */ + private static Hashtable<String, String> iconPathsTable + = new Hashtable<String, String>(); + static { + iconPathsTable.put(ProtocolIcon.ICON_SIZE_16x16, + SSHActivator.getResources().getImagePath( + "service.protocol.ssh.SSH_16x16")); + + iconPathsTable.put(ProtocolIcon.ICON_SIZE_32x32, + SSHActivator.getResources().getImagePath( + "service.protocol.ssh.SSH_32x32")); + + iconPathsTable.put(ProtocolIcon.ICON_SIZE_48x48, + SSHActivator.getResources().getImagePath( + "service.protocol.ssh.SSH_48x48")); + + iconPathsTable.put(ProtocolIcon.ICON_SIZE_64x64, + SSHActivator.getResources().getImagePath( + "service.protocol.ssh.SSH_64x64")); + } + /** * Implements the <tt>ProtocolIcon.getSupportedSizes()</tt> method. Returns * an iterator to a set containing the supported icon sizes. @@ -78,7 +101,17 @@ public class ProtocolIconSSHImpl { return iconsTable.get(iconSize); } - + + /** + * Returns a path to the icon with the given size. + * @param iconSize the size of the icon we're looking for + * @return the path to the icon with the given size + */ + public String getIconPath(String iconSize) + { + return iconPathsTable.get(iconSize); + } + /** * Returns the icon image used to represent the protocol connecting state. * @return the icon image used to represent the protocol connecting state |