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
« September 2014  
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
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   46665
Context Free Art (*.cfdg)   0.31   36936
R Edit Mode - extensive version   0.1   11141
JBuilder scheme   .001   11067
BBEdit scheme   1.0   10632
ColdFusion scheme   1.0   10619
Advanced HTML edit mode   1.0   10595
Matlab Edit Mode   1.0   10462
jEdit XP icons   1.0   9918
XP icons for jEdit   1.1   9814