diff options
| author | Keith Packard <keithp@keithp.com> | 2010-07-28 11:20:22 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2010-07-28 11:20:22 -0700 |
| commit | 172a2817dde6718724f2b5fad5a7761801446fa0 (patch) | |
| tree | 880efde60fc468f1046307470141c773856399bd /ao-tools/altosui/AltosDeviceDialog.java | |
| parent | f2a006fd98045066bdf429cc142d033e9feb0a8f (diff) | |
| parent | 81bf2042ca39eb106b789e5a08647c3114669358 (diff) | |
Merge branch 'macos'
Diffstat (limited to 'ao-tools/altosui/AltosDeviceDialog.java')
| -rw-r--r-- | ao-tools/altosui/AltosDeviceDialog.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ao-tools/altosui/AltosDeviceDialog.java b/ao-tools/altosui/AltosDeviceDialog.java index cb1eef8b..eb70877c 100644 --- a/ao-tools/altosui/AltosDeviceDialog.java +++ b/ao-tools/altosui/AltosDeviceDialog.java @@ -20,15 +20,17 @@ package altosui; import java.lang.*; import java.util.*; import javax.swing.*; +import libaltosJNI.libaltos; +import libaltosJNI.altos_device; +import libaltosJNI.SWIGTYPE_p_altos_file; +import libaltosJNI.SWIGTYPE_p_altos_list; import altosui.AltosDevice; -import altosui.AltosDeviceLinux; public class AltosDeviceDialog { - static AltosDevice show (JFrame frame, String product) { - AltosDevice[] devices = null; - if (System.getProperty("os.name").startsWith("Linux")) - devices = AltosDeviceLinux.list(product); + static altos_device show (JFrame frame, String product) { + AltosDevice[] devices; + devices = AltosDevice.list(product); if (devices != null & devices.length > 0) { Object o = JOptionPane.showInputDialog(frame, "Select a device", @@ -37,7 +39,7 @@ public class AltosDeviceDialog { null, devices, devices[0]); - return (AltosDevice) o; + return (altos_device) o; } else { return null; } |
