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
« October 2014  
MoTuWeThFrSaSu
 
1
2
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
24
25
26
27
28
29
30
31
 
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   47009
Context Free Art (*.cfdg)   0.31   37105
JBuilder scheme   .001   11380
R Edit Mode - extensive version   0.1   11300
BBEdit scheme   1.0   10945
ColdFusion scheme   1.0   10935
Advanced HTML edit mode   1.0   10752
Matlab Edit Mode   1.0   10618
jEdit XP icons   1.0   10076
XP icons for jEdit   1.1   9914