コード例 #1
0
ファイル: Activator.java プロジェクト: swegener/ols
 /**
  * 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
ファイル: SwingComponentUtils.java プロジェクト: piopawlu/ols
 /**
  * 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);
 }