designtools
Class FileOperations

java.lang.Object
  extended bydesigntools.FileOperations

public class FileOperations
extends java.lang.Object

Class which includes static file functions for the designtools


Constructor Summary
FileOperations()
          Constructor.
 
Method Summary
static java.io.File getChipFileSelection()
          Displays a Save File Chooser so that the user can select a filename
static boolean hasClipboardAccess()
          Copied from jbreadboard.FileDialogs.java by Nicholas Glass (it is a private method and cannot be accessed outside FileDialogs)
static boolean hasFileAccess()
          Copied from jbreadboard.FileDialogs.java by Nicholas Glass (it is a private method and cannot be accessed outside FileDialogs)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileOperations

public FileOperations()
Constructor. No need to instantiate class as all methods are static

Method Detail

hasFileAccess

public static boolean hasFileAccess()
Copied from jbreadboard.FileDialogs.java by Nicholas Glass (it is a private method and cannot be accessed outside FileDialogs)

Returns:
true if we have access to the hosts file system.

hasClipboardAccess

public static boolean hasClipboardAccess()
Copied from jbreadboard.FileDialogs.java by Nicholas Glass (it is a private method and cannot be accessed outside FileDialogs)

Returns:
true if we have access to the hosts clipboard.

getChipFileSelection

public static java.io.File getChipFileSelection()
Displays a Save File Chooser so that the user can select a filename

Returns:
The selected file with ".chp" appended or null if the user clicked cancel or there are unsufficient priviliges to save