Issue #2164 - fix Windows build of CAVE

Former-commit-id: 73907524e6 [formerly d65b50b416] [formerly d573869ffb] [formerly 73907524e6 [formerly d65b50b416] [formerly d573869ffb] [formerly 40e8ca6886 [formerly d573869ffb [formerly 2947f7d48845927b809bba76f05c5feaea0a9104]]]]
Former-commit-id: 40e8ca6886
Former-commit-id: 8b754c6142 [formerly def237bc42] [formerly 02541b07e7535c9bb392c75887192ba3c9a1eca3 [formerly cb82993602]]
Former-commit-id: 499a755d616fc48ac1ddbed1b854356bfa6d642e [formerly 48235ce65c]
Former-commit-id: dcd0076c95
This commit is contained in:
Bryan Kowal 2013-08-30 11:42:48 -05:00
parent 50dc8bbb13
commit e04d275b37

View file

@ -56,6 +56,9 @@ import com.raytheon.viz.aviation.resource.ResourceConfigMgr.ResourceTag;
* foreground color
* 16 Aug 2013 #2256 lvenable Fixed font array out of bounds issue that may
* occasionally occur.
* 30 Aug 2013 #2164 bkowal Add default case statement for MSFT Windows
* Java. Replaced platform-dependent code with
* code that is not platform-dependent.
*
* </pre>
*
@ -324,8 +327,8 @@ public class ResourceDataManager {
*/
if (stringArray == null || stringArray.length < 3) {
FontData fd = display.getSystemFont().getFontData()[0];
defaultFont = new Font(display, new FontData(fd.name,
(int) fd.height, fd.style));
defaultFont = new Font(display, new FontData(fd.getName(),
fd.getHeight(), fd.getStyle()));
} else {
defaultFont = new Font(display, new FontData(stringArray[0],
Integer.valueOf(stringArray[1]),
@ -838,9 +841,10 @@ public class ResourceDataManager {
case EntryFont:
return entryFont;
}
return null;
default:
return null;
}
}
public Color getAlertLevel0Color() {