git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-1544 corrected 'adjunst' to 'adjust'
[jalview.git]
/
src
/
jalview
/
util
/
Platform.java
diff --git
a/src/jalview/util/Platform.java
b/src/jalview/util/Platform.java
index
2c74609
..
6a5f133
100644
(file)
--- a/
src/jalview/util/Platform.java
+++ b/
src/jalview/util/Platform.java
@@
-30,6
+30,7
@@
import java.awt.event.MouseEvent;
*/
public class Platform
{
*/
public class Platform
{
+
private static Boolean isAMac = null, isWindows = null;
private static Boolean isHeadless = null;
private static Boolean isAMac = null, isWindows = null;
private static Boolean isHeadless = null;
@@
-37,13
+38,16
@@
public class Platform
/**
* sorry folks - Macs really are different
*
/**
* sorry folks - Macs really are different
*
+ * BH: disabled for SwingJS -- will need to check key-press issues
+ *
* @return true if we do things in a special way.
*/
public static boolean isAMac()
{
if (isAMac == null)
{
* @return true if we do things in a special way.
*/
public static boolean isAMac()
{
if (isAMac == null)
{
- isAMac = System.getProperty("os.name").indexOf("Mac") > -1;
+ isAMac = /** @j2sNative false && */
+ System.getProperty("os.name").indexOf("Mac") > -1;
}
return isAMac.booleanValue();
}
return isAMac.booleanValue();
@@
-59,7
+63,8
@@
public class Platform
{
if (isWindows == null)
{
{
if (isWindows == null)
{
- isWindows = System.getProperty("os.name").indexOf("Win") > -1;
+ isWindows = /** @j2sNative false && */
+ System.getProperty("os.name").indexOf("Win") > -1;
}
return isWindows.booleanValue();
}
}
return isWindows.booleanValue();
}