/bundles/plugins-trunk/Console/console/bsh/currentSystemDirectory.bsh
Unknown | 27 lines | 20 code | 7 blank | 0 comment | 0 complexity | 653aa3c0278e224d2ec9cc8fd4561ad9 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
- /* Returns the current directory of the current
- System shell of the current Console.
- By Alan Ezust
-
- */
- currentSystemDirectory()
- {
- // To access non-public members
- setAccessibility(true);
-
-
- view.getDockableWindowManager().addDockableWindow("console");
- // Obtain the console instance
- c = view.getDockableWindowManager().getDockable("console");
- shell = console.Shell.getShell("System");
- if(shell.getConsoleState(c) == null)
- currentDirectory = java.lang.System.getProperty("user.dir");
- else
- currentDirectory = shell.getConsoleState(c)
- .currentDirectory;
- return currentDirectory;
- }
- currentSystemDirectory();