Support for specifying working directory on command line. Use "konsole --workdir %d" as the terminal command to make this module work well on KDE.
1.1 --- a/accelerators.terminal/manifest.mf Tue Feb 28 12:18:40 2012 -0500
1.2 +++ b/accelerators.terminal/manifest.mf Mon Mar 05 08:56:11 2012 +0100
1.3 @@ -2,7 +2,7 @@
1.4 OpenIDE-Module: org.netbeans.modules.accelerators.terminal
1.5 OpenIDE-Module-Layer: org/netbeans/modules/accelerators/terminal/resources/layer.xml
1.6 OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/accelerators/terminal/resources/Bundle.properties
1.7 -OpenIDE-Module-Specification-Version: 1.3
1.8 +OpenIDE-Module-Specification-Version: 1.4
1.9
1.10 Name: org/netbeans/modules/accelerators/terminal/RunTerminalAction.class
1.11 OpenIDE-Module-Class: Action
2.1 --- a/accelerators.terminal/src/org/netbeans/modules/accelerators/terminal/Bundle.properties Tue Feb 28 12:18:40 2012 -0500
2.2 +++ b/accelerators.terminal/src/org/netbeans/modules/accelerators/terminal/Bundle.properties Mon Mar 05 08:56:11 2012 +0100
2.3 @@ -45,7 +45,9 @@
2.4
2.5 # TerminalOptionsBeanInfo
2.6 LBL_TerminalCommand=Terminal Command
2.7 -HINT_TerminalCommand=What command to run to open a new terminal emulator (shell, command prompt). Use a simple executable name or a full path.
2.8 +HINT_TerminalCommand=What command to run to open a new terminal emulator (shell, command prompt).\
2.9 +Use a simple executable name or a full path. You can specify additional parameters.\
2.10 +Use %d as a placeholder that will be replaced by the proper working directory.
2.11
2.12 # RunTerminalAction
2.13 LBL_RunTerminal=&Run Terminal
3.1 --- a/accelerators.terminal/src/org/netbeans/modules/accelerators/terminal/RunTerminalAction.java Tue Feb 28 12:18:40 2012 -0500
3.2 +++ b/accelerators.terminal/src/org/netbeans/modules/accelerators/terminal/RunTerminalAction.java Mon Mar 05 08:56:11 2012 +0100
3.3 @@ -105,6 +105,8 @@
3.4 wd = FileUtil.toFile(folder);
3.5 }
3.6
3.7 + command = command.replace("%d", wd.getPath());
3.8 +
3.9 LOGGER.log(Level.FINE, "Running {0}", command); // NOI18N
3.10 LOGGER.log(Level.FINE, "Working dir is {0}", wd); // NOI18N
3.11