Writing Java Plugins for Total Commander

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

kenchis
Junior Member
Junior Member
Posts: 53
Joined: 2006-02-04, 11:44 UTC
Location: Berlin
Contact:

Writing Java Plugins for Total Commander

Post by *kenchis »

Hi Folks,

Evereyone, who ever wanted to write TC plugins in Java is now able to do this.
Because i can write better Java code than C i created a plugin to call Java Plugins from a TC plugin (using Java Native Interface).

I wrote a little Demo WLX plugin to disassemble C-64 machine code instructions (extension: .prg). :wink: I am a Fan of this Home Computer.

Source Code is also available!
www.haendel-junior.de
see at Hobbies/Total Commander

Please can youe test it and give me some hints to further developement?
Thanks a lot.
Please eMail me if you have some suggestions or criticism.
kschwiersch AT yahoo.de

Have a lot of fun,

Greetigs from Kenchis

P.S. Sorry for my broken english
Gruß,
Kenchi
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

[mod]Email address obfuscated to fight spam

Greetings
Lefteous (moderator)[/mod]
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2kenchis
I have had something like that in mind but haven't had enough time. It's at least a very impressive technical demonstration.
kenchis
Junior Member
Junior Member
Posts: 53
Joined: 2006-02-04, 11:44 UTC
Location: Berlin
Contact:

I wantedt to make TC more powerful

Post by *kenchis »

...to make it even better.
There exist many Libraries written in Java to be used in plugins.
I hope it is a long awaited possibility, because writing Java code is less complicated IMHO than coding in C.

Besides the TC is my most favorite tool.
Gruß,
Kenchi
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

Very interesting....

Please translate your page to english if you want others to try it or post on german forum . Thank you.

PS: Sorry for my broken German.
Habemus majkam!
kenchis
Junior Member
Junior Member
Posts: 53
Joined: 2006-02-04, 11:44 UTC
Location: Berlin
Contact:

Further Developement

Post by *kenchis »

On the weekend i will translate the plugin description page to english.
In the moment i try to make an example file system plugin (WFX).

And for my WLX plugin i wanted to show a Java GUI (Swing or SWT) in the lister window.

Perhaps i have to create a java.awt.Component implementation for the window handle in the plugin, or anything like that?

Does anyone know how to display java GUI in the native window?
Gruß,
Kenchi
User avatar
frenky
Senior Member
Senior Member
Posts: 250
Joined: 2005-07-30, 19:36 UTC

Post by *frenky »

2kenchis
http://java.sun.com/j2se/1.4.2/docs/guide/awt/1.3/AWT_Native_Interface.html

Edit
And I forgot this link also. Thoug not usefull for this task it is nice reading for Java programmer.
http://www-128.ibm.com/developerworks/library/j-nativegui/
IBM has many nice articles about Java.
Ambiguity succeeds where honesty dares not venture.
User avatar
frenky
Senior Member
Senior Member
Posts: 250
Joined: 2005-07-30, 19:36 UTC

Post by *frenky »

2kenchis
Source Code is also available!
www.haendel-junior.de
see at Hobbies/Total Commander
I can't find dl link.
Ambiguity succeeds where honesty dares not venture.
kenchis
Junior Member
Junior Member
Posts: 53
Joined: 2006-02-04, 11:44 UTC
Location: Berlin
Contact:

Here comes the link

Post by *kenchis »

Hi Frenky,
thank you for the infos.
Tomorrow I will hopefully make some progress in my project.
I am verrrry excited :D
Greeting
Kenchi
P.S.
Here is the direct link to the page

http://www.haendel-junior.de/41378/41441.html
and here comes the download link
http://mitglied.lycos.de/kenchis/tc_java.rar
The sources are included in the src.zip
User avatar
frenky
Senior Member
Senior Member
Posts: 250
Joined: 2005-07-30, 19:36 UTC

Post by *frenky »

2kenchis
Thanks!
Btw, I'm clueless how I missed that link :oops:
Ambiguity succeeds where honesty dares not venture.
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

Sounds like a good job for you frenky... AFAIK you deal with Java right ?
Habemus majkam!
kenchis
Junior Member
Junior Member
Posts: 53
Joined: 2006-02-04, 11:44 UTC
Location: Berlin
Contact:

I meant the other way around

Post by *kenchis »

2Frenky
The link that you posted describes how to display native GUI inside an AWT window.
The example worked ok for me and displayed a smilee :D
but my problem is the other way around.
I try to display a Java GUI in a native window.
This is something like that: setting the parent of a Java JFrame.
If Total Commander is resized, the Java GUI must resize too.

Nevertheless your article was very interesting, hopefully my problem is not too complicated to realize.

Greetings Kenchis

P.S. has anyone else an idea?
Gruß,
Kenchi
kenchis
Junior Member
Junior Member
Posts: 53
Joined: 2006-02-04, 11:44 UTC
Location: Berlin
Contact:

Translation is complete

Post by *kenchis »

For now i made no progress to display a Java GUI :cry:

But now I translated the page to english.

Here is the direct link to the page
http://www.haendel-junior.de/41378/41441.html

and here comes the download link
http://mitglied.lycos.de/kenchis/tc_java.rar

The sources are included in the src.zip

Greetings Kenchi
Gruß,
Kenchi
kenchis
Junior Member
Junior Member
Posts: 53
Joined: 2006-02-04, 11:44 UTC
Location: Berlin
Contact:

Head Version

Post by *kenchis »

Dear almighty forum users and possible Beta testers,

Please try out and test this plugin

i worked hard for the next release to
make WLX and WFX plugins in java.
Now i have a HEAD version you can test on my download page.

New Features of WFX:
- FSFindFirst and FSFindNext is full included in the interface
- Win32FindData (from C struct) is partially implemented in Java
(some file attributes and the filename fields)
- DLL build includes debugging support
- Java can debugged with Log4J (chainsaw tool).
- The example implementation shows the local hard disk drives (implemented for java.io.File), but the API is capable for any Object.

New Features for WLX:
- JFrame is opened in the lister window (a little bit buggy for now,
because the frame is not in sync with the parent window).
- Sometimes the lister plugin crashes :-(


The DLL is a WFX and WLX plugin at the same time.
The plugin installation ini installs a filesystem plugin at default.

@Frenky
I hope you have some time to test.
Perhaps you waited for a WFX plugin ;-)

Kind Regards,
Ken
Gruß,
Kenchi
CoolWater
Power Member
Power Member
Posts: 744
Joined: 2003-03-27, 16:33 UTC

Post by *CoolWater »

Why don't you use SWT!? SWT is a direct wrapper (JNI) of the windows api... at least under windows ;) So a buggy layout belongs to the past... ;) If you have questions about SWT (I don't how familiar you are with it) you can ask me ;) I've done lots of SWT...

Regards,
CoolWater
Post Reply