summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Drossel2009-03-17 08:20:39 (EDT)
committerCarsten Drossel2009-03-17 08:20:39 (EDT)
commitfd1eab58e0787546b80acfc5cda44e600699433b (patch)
treeae87bd7009d4977b8cb73f7aacfd655bb0a711b8
parent6fee986d2a1da1a9ec78ba553340e4648f939da0 (diff)
downloadorg.eclipse.riena-fd1eab58e0787546b80acfc5cda44e600699433b.zip
org.eclipse.riena-fd1eab58e0787546b80acfc5cda44e600699433b.tar.gz
org.eclipse.riena-fd1eab58e0787546b80acfc5cda44e600699433b.tar.bz2
added convenience method to get settings of type String
-rw-r--r--org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/lnf/rienadefault/RienaDefaultLnf.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/lnf/rienadefault/RienaDefaultLnf.java b/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/lnf/rienadefault/RienaDefaultLnf.java
index 267357f..c75278a 100644
--- a/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/lnf/rienadefault/RienaDefaultLnf.java
+++ b/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/lnf/rienadefault/RienaDefaultLnf.java
@@ -304,6 +304,23 @@ public class RienaDefaultLnf {
}
/**
+ * Returns the String value of the setting for the given key
+ *
+ * @param key
+ * - key whose associated setting is to be returned.
+ * @return the setting to which this setting maps the specified key, or
+ * <code>null</code> if the map contains no mapping for this key.
+ */
+ public String getStringSetting(String key) {
+ Object value = getSetting(key);
+ if (value instanceof String) {
+ return (String) value;
+ } else {
+ return null;
+ }
+ }
+
+ /**
* Loads the theme specified by the given class name.
*
* @param themeClassName