jEdit Community - Resources for users of the jEdit Text Editor
"Getting" a plug-in with no dockable window
Submitted by Anonymous on Monday, 19 January, 2004 - 22:28
Hi,

The plug-in tutorial presents an example of associating actions with a plug-in in which each action retrieves its plug-in like this:

view.getDockableWindowManager().getDockable(QuickNotepadPlugin.NAME).chooseFile();

That is, it assumes you want to create a plug-in with a dockable window. If I don't want to create a dockable window, how do I create an instance of my plug-in and what code would I put in my actions.xml file to retrieve it? Is there something like:

view.getPlugin(QuickNotepadPlugin.NAME).chooseFile()

??

Please send responses to this forum (which I'm monitoring) and/or Ken Anderson at "kena at cs.colorado.edu".

Thanks!

Ken Anderson
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
jEdit.getPlugin(String plugin
by fireparser on Tue, 13/04/2004 - 15:15
jEdit.getPlugin(String pluginName) should do the job. As it is a static Method it is also availble in the BeanShell environment.
I think this is what you need.

regards.
User login
Browse archives
« April 2015  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
13
14
15
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
33%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1092
Syndication
file   ver   dls
German Localization light   4.4.2.1   47824
Context Free Art (*.cfdg)   0.31   37774
JBuilder scheme   .001   12337
BBEdit scheme   1.0   11891
ColdFusion scheme   1.0   11890
R Edit Mode - extensive version   0.1   11841
Advanced HTML edit mode   1.0   11288
Matlab Edit Mode   1.0   11145
jEdit XP icons   1.0   10608
XP icons for jEdit   1.1   10360