示例#1
0
 /**
  * Returns whether or not we're running in debug mode.
  *
  * @return <code>true</code> if debug mode is enabled, <code>false</code> otherwise.
  */
 public static boolean isDebugMode() {
   return Boolean.parseBoolean(System.getProperty("nl.lxtreme.ols.client.debug", "false"));
 }
示例#2
0
 /**
  * Shows a file selection dialog for the current working directory.
  *
  * @param aOwner the owning window to show the dialog in.
  * @return the selected file, or <code>null</code> if the user aborted the dialog.
  */
 public static final File showFileSelectionDialog(
     final Window aOwner, final javax.swing.filechooser.FileFilter... aFileFilters) {
   final String currentWorkingDir = System.getProperty("user.dir");
   return showFileSelectionDialog(aOwner, currentWorkingDir, aFileFilters);
 }