summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Kriese2011-03-18 08:57:27 (EDT)
committerSteffen Kriese2011-03-18 08:57:27 (EDT)
commit5fc1a2703c3194c2c4440201865a73029eaa5d13 (patch)
tree6eb3c42fbd6983a300a5bdd5ca0fba98fbcde376
parentb07ecaa682fb19c1cca44f1abf1c0a7dd909a3c0 (diff)
downloadorg.eclipse.riena-5fc1a2703c3194c2c4440201865a73029eaa5d13.zip
org.eclipse.riena-5fc1a2703c3194c2c4440201865a73029eaa5d13.tar.gz
org.eclipse.riena-5fc1a2703c3194c2c4440201865a73029eaa5d13.tar.bz2
implemented LnfUpdater.clearCache() that is used by the toolbox
-rw-r--r--org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/lnf/LnFUpdater.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/lnf/LnFUpdater.java b/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/lnf/LnFUpdater.java
index e9965c0..b8a1c5e 100644
--- a/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/lnf/LnFUpdater.java
+++ b/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/lnf/LnFUpdater.java
@@ -79,6 +79,21 @@ public class LnFUpdater {
}
/**
+ * Clears all cached data like the default property names and control
+ * properties. This method is not supposed to be called from Riena at all.
+ * It is only needed for the Riena-Toolbox to refresh the LnF.
+ *
+ * @since 3.0
+ */
+ public void clearCache() {
+ RESOURCE_CACHE.clear();
+ defaultPropertyValues.clear();
+ controlProperties.clear();
+ simpleNames.clear();
+ emptyDescriptors.clear();
+ }
+
+ /**
* use {@link LnfUpdater#getInstance()} instead.
*/
@Deprecated