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
« February 2016  
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
 
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   48736
Context Free Art (*.cfdg)   0.31   38770
JBuilder scheme   .001   14246
ColdFusion scheme   1.0   13798
BBEdit scheme   1.0   13795
R Edit Mode - extensive version   0.1   12857
Advanced HTML edit mode   1.0   12290
Matlab Edit Mode   1.0   12151
jEdit XP icons   1.0   11619
XP icons for jEdit   1.1   11028