jEdit Community - Resources for users of the jEdit Text Editor
Embedding Java app inside dockable window
Submitted by donTomaso on Tuesday, 20 May, 2008 - 19:28
Hi!

How about making a plugin that can embed any jar-based java application inside a dockable window?
Maybe even using jdic? Or just something very basic configurable to use any application set by the user.

Isn't this something that could easily be achieved?

Regards,

Tomas
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Not really.
by elberry on Wed, 21/05/2008 - 00:10
It'd be easier to just create a plugin for that application. You can programmatically add Jar files to jEdit's classpath, the SQL plugin does this. There are at least 2 issues though.

First, even if you get ALL the application jars into jEdit's runtime classpath (The plugin classpath) it's not the same as the System classpath, so the application may not be able to access them. This will lead to serious classpath issues, and there's no guarantee the application will even run this way.

Secondly, you would need some standard way of docking the applications window. For instance, if the application creates a new Window and opens it in the center of the screen, there is no way for jEdit to know about that window and then dock it. Which would mean you need a standard way of plugging the external application's window into jEdit. If you've come this far, you might as well just create a jEdit plugin for that application.

That being said. What application are you trying to dock within jEdit and why?

If you just want to be able to launch applications from within jEdit, this may be accomplished by using the Console plugin and Commando.

Learn from the past. Live in the present. Plan for the future.
11101000
 
Ok, what I was trying to achi
by donTomaso on Wed, 21/05/2008 - 20:21
Ok, what I was trying to achieve was to run a zcode-interpreter in a docked window (such as zmpp for instance). This would let one code in the inform 6 language in the left window, press a shortcut key and voilá, the game would be compiled and the run in a right window.

The interpreters should be very basic and shouldn't have windows trying to popup. It's not that this wuld be absolutely neccessary, but it would be neat if it could be done, and it seems possible.
I'm also thinking about a pdf-viewer besides the interpreter. That could be neat to.

But then, if it were a specific plugin for that purpose maybe there would be legal aspects to it, and that's why I thought that it maybe could be done more general.

I know about the console, and that's perhaps enough, this would be more of a neatness-category of plugin.
 
I knew this sounded familiar.
by elberry on Thu, 22/05/2008 - 06:51
I knew this sounded familiar. There is an inform side-kick plugin which helps you see game objects written in the inform language. Is it familiar to z-code?

I did some quick searching and I found that there's zplet?
http://sourceforge.net/projects/zplet/

It's a z-code interpreter for Java. It doesn't look very active, but depending on how ZPlet is implemented, and what it does, there really shouldn't be any reason why you couldn't create a ZPlet plugin.

Learn from the past. Live in the present. Plan for the future.
11101000
Blog
 
YES!
by donTomaso on Thu, 22/05/2008 - 19:47
Yes! Det inform side-kick plugin is related. An inform game can either be compiled to ZCode or Glulx (which is two different VM-machines).

The side-kick is a great plugin, but it's too bad that it seems like it isn't developed anymore. I've tried to mail the author, suggesting a feature to parse included files. As I myself wouldn't know how to do it.

It's more or less the same problem with the making of a Zplet plugin in this case. It sounds fairly easy, but I don't have a clue of how to start. I have almost no java skill at all. I've made som attempts but It's just giving me errors, errors and more errors Smiling

Could you please give me some guidance, or even better: examples of how to do it?
User login
Browse archives
« November 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300