Based on and continuing Ken Händel's tc_java on totalcmd.net.
tc_java enables plugins for Total Commander (TC) written in Java. All four types are supported: Lister (WLX), File System (WFX), Content plugins (WDX) and Packer (WCX) plugins.
- First time only:
- Install the latest Java runtime ("JRE", standard edition)
- Download javalib.tgz and extract into TC's installation directory (eg
C:\Progam Files\totalcmd\
) s.t. you have a sub-directoryjavalib\
next toplugins\
andLANGUAGE\
.
- Now install the plugins of your choice, like so:
- Download and open in TC, by double-clicking on it. This will auto-install it or auto-update an older version of it.
- Close and restart TC (TODO: really necessary?)
- Those contained in here (plz click on the links there for downloading, otherwise you might not get what you're expecting)
- Ken Händel's Java Plugin Examples Page on totalcmd.net
- http://crc83.blogspot.de/2013/10/gitdetails-plugin-for-total-commander.html
- ...
Currently (v1.7), the full TC v7 SDK API is supported, including GUI creation using Swing or SWT. The interface, however, doesn't really "feel" much like Java. It's more like C, which is due to the fact that TC's API is exposed as is to the Java programmer, more or less.
The next version will build on top of this basic layer and take full advantage of Java's features, such as: the type system (including generics, but made easy for the developer), java.nio
, threading (again: made easy), and more.
- Install the latest JDK (SE is enough)
- Git-clone this repo locally (recommended), or download as .zip and unpack; eg to
C:\tc_java\
- Open a DOS-window there, from within TC (active panel/tab shows
C:\tc_java\
, then "Commands" | "Open command prompt window"). This makes sure that the env varCOMMANDER_PATH
is properly set for this DOS-window; you may verify this viaECHO %COMMANDER_PATH%
. - [???] Run
run-me-once.bat
, which will try to determine the JDK's and TC's installation directories and ask you in case. For example, you might have to tell it%PROGRAMFILES%\Java\jdk1.7.0_51
, or, respectively,%PROGRAMFILES%\totalcmd8.5b13
. It then putsjavalib
into TC's installation directory if necessary and prepares the env for development (TODO: what exactly it's doing) - You have now a working dev-env. Create a new plugin with
newWDX.bat MyPlugin
, and editexample-plugins\MyPlugin\src\MyPlugin.java
- API documentation (javadoc)
- Java Plugin Writer's Guide
- In the TC forum: "Let's make writing Java plugins fun!" (users are heartily invited, too)
- Apache's chainsaw (for debugging)
- Java 7 API docs