jEdit Community - Resources for users of the jEdit Text Editor
Menu Editor with Separators
Submitted by patchworker on Thursday, 18 November, 2010 - 22:45
Hello,

I really like the Menu Editor plugin and added some new menus, e.g. XML

I put some actions into the new XML menu and now I would like to put in some separators. I didn't find something about separators in the help-menu and now I don't see why the "Separator" Button doesn't work for me (jEdit 4.3.1 on Ubuntu 8.04)

(in the SourceForge/ bugs & patches list I also didn't find anything about this problem)

Can somebody give me hint how I can add separators using the plugin or manually in a props file?

Greets!
Daniel Brüßler
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
This site has lots of advanta
by martinm on Wed, 24/11/2010 - 09:59
This site has lots of advantage. I found many interesting things from this site. It helps me many ways.

ZamiescDarmowe ogloszenia, darmowa reklama, katalog reklam, bezplatne ogloszenia
Minus
by Robert Schwenn on Fri, 19/11/2010 - 20:07
In a properties file, the entry for a separator is a "-".

Robert
 
Found the error in the Source, bugfix
by patchworker on Tue, 23/11/2010 - 12:47
Hello Robert,

I found the error, why the Separator-button didn't work:

In the method private JPanel createMenuPanel()
these two lines does not make sense for the JButton and can be removed:

separator.setTransferHandler(new SeparatorTransferHandler());
separator.addMouseListener(new SeparatorMouseListener());

The button has already the event public void actionPerformed(ActionEvent e) and this calls the insertSeparator() method.

I now add this as patch to the bugtracker and try if I can commit it in the sourceforge-plugins-project.

Greets!
Daniel
 
user home directory / properties
by patchworker on Mon, 22/11/2010 - 23:23
Hello Robert,

thank you, I found the location, it's in the main properties file. It's really simple, here is the example for the edit menu:
edit=undo redo - cut copy paste %clipboard ...

My question is now, how do I clear the cache for this properties file?

The file is in use by jEdit because this is the header:
#jEdit properties
#Tue Nov 23 00:16:59 CET 2010

I edited the file like this and see no change in the menu:
- close jEdit
- open the file ~/.jedit/properties
- change the line for edit
edit=undo - redo - cut copy paste %clipboard ...
- close the editor
- restart jEdit

Greets!
Daniel
User login
Browse archives
« November 2024  
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
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300