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 2017  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
14
15
16
17
18
19
20
22
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   50147
Context Free Art (*.cfdg)   0.31   40293
JBuilder scheme   .001   16523
BBEdit scheme   1.0   16083
ColdFusion scheme   1.0   16082
R Edit Mode - extensive version   0.1   14250
Advanced HTML edit mode   1.0   13592
Matlab Edit Mode   1.0   13475
jEdit XP icons   1.0   12958
XP icons for jEdit   1.1   11982