summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Kriese2011-03-01 07:59:20 (EST)
committerSteffen Kriese2011-03-01 07:59:20 (EST)
commit720da278b0b5cb9ee8d819e8ef4404258f508261 (patch)
treeb729612fe1b94d58132338b0ea0d49f0131f7e6f
parent3ca956836c4ad60fa148da7b45aaf69b058d5dd1 (diff)
downloadorg.eclipse.riena-720da278b0b5cb9ee8d819e8ef4404258f508261.zip
org.eclipse.riena-720da278b0b5cb9ee8d819e8ef4404258f508261.tar.gz
org.eclipse.riena-720da278b0b5cb9ee8d819e8ef4404258f508261.tar.bz2
removed obsolete static GCFacade member in SWTUtilities to fix dependency-problems in the toolbox
-rw-r--r--org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/utils/SwtUtilities.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/utils/SwtUtilities.java b/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/utils/SwtUtilities.java
index c65d8b0..db628e2 100644
--- a/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/utils/SwtUtilities.java
+++ b/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/utils/SwtUtilities.java
@@ -32,7 +32,6 @@ import org.eclipse.riena.ui.swt.facades.GCFacade;
public final class SwtUtilities {
private static final String THREE_DOTS = "..."; //$NON-NLS-1$
- private static final GCFacade GC_FACADE = GCFacade.getDefault();
private static final Map<GCString, Integer> TEXT_WIDTH_CACHE = LRUHashMap.createLRUHashMap(512);
/**
@@ -112,7 +111,7 @@ public final class SwtUtilities {
final GCString lookupKey = new GCString(gc, Character.toString(ch));
Integer width = TEXT_WIDTH_CACHE.get(lookupKey);
if (width == null) {
- width = GC_FACADE.getAdvanceWidth(gc, ch);
+ width = GCFacade.getDefault().getAdvanceWidth(gc, ch);
TEXT_WIDTH_CACHE.put(lookupKey, width);
}
return width;