From 495d6429820f2bcf4131f190b4d48fe26a73a4f7 Mon Sep 17 00:00:00 2001 From: Christophe Cornu Date: Tue, 9 Oct 2001 15:37:49 +0000 Subject: More CLDC changes --- .../motif/org/eclipse/swt/program/Program.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bundles/org.eclipse.swt/Eclipse SWT Program') diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/motif/org/eclipse/swt/program/Program.java b/bundles/org.eclipse.swt/Eclipse SWT Program/motif/org/eclipse/swt/program/Program.java index 5f58b97556..d83c5f663b 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Program/motif/org/eclipse/swt/program/Program.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Program/motif/org/eclipse/swt/program/Program.java @@ -431,7 +431,7 @@ private static String[] parseCommand( String cmd ) { int eIndex; while (sIndex < cmd.length()) { // Trim initial white space of argument. - while (sIndex < cmd.length() && Character.isWhitespace( cmd.charAt(sIndex) )) { + while (sIndex < cmd.length() && Compatibility.isWhitespace( cmd.charAt(sIndex) )) { sIndex++; } if (sIndex < cmd.length()) { @@ -457,7 +457,7 @@ private static String[] parseCommand( String cmd ) { // else use white space for the delimiters. else { eIndex = sIndex; - while (eIndex < cmd.length() && !Character.isWhitespace( cmd.charAt(eIndex) )) { + while (eIndex < cmd.length() && !Compatibility.isWhitespace( cmd.charAt(eIndex) )) { eIndex++; } args.add( cmd.substring( sIndex, eIndex ) ); @@ -526,7 +526,7 @@ static String gnome_getMimeValue(String mimeType, String key) { static boolean kde_init () { try { Callback.loadLibrary("swt-kde"); - } catch (UnsatisfiedLinkError e) { + } catch (SWTError e) { return false; } @@ -863,7 +863,7 @@ public String toString () { static boolean gnome_init () { try { Callback.loadLibrary("swt-gnome"); - } catch (UnsatisfiedLinkError e) { + } catch (SWTError e) { return false; } return true; @@ -1033,7 +1033,7 @@ ImageData cde_getImageData() { static boolean cde_init( Display display ) { try { Callback.loadLibrary("swt-cde"); - } catch (UnsatisfiedLinkError e) { + } catch (SWTError e) { return false; } -- cgit