com.metamatrix.common.tree.directory
Class PlatformAwareFilePermission

java.lang.Object
  extended by com.metamatrix.common.tree.directory.PlatformAwareFilePermission

public class PlatformAwareFilePermission
extends java.lang.Object

PlatformAwareFileSystemView


Constructor Summary
PlatformAwareFilePermission()
           
 
Method Summary
static boolean changeReadOnly(java.io.File dir, java.lang.String filespec, boolean makeRO)
           
static int getOperatingSystem()
          Get the operating system on which the IDE is running.
static boolean isUnix()
          Test whether the IDE is running on some variant of Unix.
static boolean isWindows()
          Test whether the IDE is running on some variant of Windows.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformAwareFilePermission

public PlatformAwareFilePermission()
Method Detail

getOperatingSystem

public static final int getOperatingSystem()
Get the operating system on which the IDE is running.

Returns:
one of the OS_* constants (such as #OS_WINNT)

isWindows

public static final boolean isWindows()
Test whether the IDE is running on some variant of Windows.

Returns:
true if Windows, false if some other manner of operating system

isUnix

public static final boolean isUnix()
Test whether the IDE is running on some variant of Unix. Linux is included as well as the commercial vendors.

Returns:
true some sort of Unix, false if some other manner of operating system

changeReadOnly

public static boolean changeReadOnly(java.io.File dir,
                                     java.lang.String filespec,
                                     boolean makeRO)

main

public static void main(java.lang.String[] args)


Copyright © 2009. All Rights Reserved.