summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Kriese2010-10-06 03:42:02 (EDT)
committerSteffen Kriese2010-10-06 03:42:02 (EDT)
commit14c0421a66c524c7887c0fcab97a14625bfe00ed (patch)
tree8a89e9fd8ba6d4e635acf9a5acd58378f4a186b2
parent730a5a35a97b1040cf82973b3a7a427a936d3008 (diff)
downloadorg.eclipse.riena-14c0421a66c524c7887c0fcab97a14625bfe00ed.zip
org.eclipse.riena-14c0421a66c524c7887c0fcab97a14625bfe00ed.tar.gz
org.eclipse.riena-14c0421a66c524c7887c0fcab97a14625bfe00ed.tar.bz2
added a comment to LnfManager
-rw-r--r--org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/lnf/LnfManager.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/lnf/LnfManager.java b/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/lnf/LnfManager.java
index 578ffcf..928b04c 100644
--- a/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/lnf/LnfManager.java
+++ b/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/lnf/LnfManager.java
@@ -10,8 +10,13 @@
*******************************************************************************/
package org.eclipse.riena.ui.swt.lnf;
+import javax.swing.Renderer;
+
+import org.eclipse.swt.widgets.Display;
+
import org.eclipse.riena.core.singleton.SessionSingletonProvider;
import org.eclipse.riena.core.singleton.SingletonProvider;
+import org.eclipse.riena.ui.swt.lnf.renderer.EmbeddedTitlebarRenderer;
import org.eclipse.riena.ui.swt.lnf.rienadefault.RienaDefaultLnf;
/**
@@ -51,6 +56,14 @@ public final class LnfManager {
*/
public static final String RIENA_LNF_SYSTEM_PROPERTY = "riena.lnf"; //$NON-NLS-1$
+
+
+ /**
+ * The LnFManager has to be an SessionSingleton, because it he LnF that
+ * holds a Map of {@link Renderer}. The Renderer get passed a UIControl that
+ * was created with a {@link Display} from a specific user. Some Renderer
+ * like {@link EmbeddedTitlebarRenderer} keep the UIControl to redraw later.
+ */
private final static SingletonProvider<LnfManagerInternal> LMI = new SessionSingletonProvider<LnfManagerInternal>(
LnfManagerInternal.class);