/bundles/plugins-trunk/Console/console/bsh/currentSystemDirectory.bsh
# · Unknown · 27 lines · 20 code · 7 blank · 0 comment · 0 complexity · 653aa3c0278e224d2ec9cc8fd4561ad9 MD5 · raw file
- /* 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();