01: /*
02: * DynamicMenuChanged.java - Message that causes dynamic menus to be
03: * reconstructed
04: * :tabSize=8:indentSize=8:noTabs=false:
05: * :folding=explicit:collapseFolds=1:
06: *
07: * Copyright (C) 2003 Slava Pestov
08: *
09: * This program is free software; you can redistribute it and/or
10: * modify it under the terms of the GNU General Public License
11: * as published by the Free Software Foundation; either version 2
12: * of the License, or any later version.
13: *
14: * This program is distributed in the hope that it will be useful,
15: * but WITHOUT ANY WARRANTY; without even the implied warranty of
16: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17: * GNU General Public License for more details.
18: *
19: * You should have received a copy of the GNU General Public License
20: * along with this program; if not, write to the Free Software
21: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22: */
23:
24: package org.gjt.sp.jedit.msg;
25:
26: import org.gjt.sp.jedit.*;
27:
28: /**
29: * Sending this message will cause the specified dynamic menu to be recreated.
30: *
31: * @author Slava Pestov
32: * @version $Id: DynamicMenuChanged.java 5004 2004-03-28 00:07:27Z spestov $
33: *
34: * @since jEdit 4.2pre2
35: */
36: public class DynamicMenuChanged extends EBMessage {
37: //{{{ DynamicMenuChanged constructor
38: /**
39: * Creates a new dynamic menu changed message.
40: * @param name The menu name. All dynamic menus with this name will be
41: * recreated next time they are displayed.
42: */
43: public DynamicMenuChanged(String name) {
44: super (null);
45:
46: this .name = name;
47: } //}}}
48:
49: //{{{ getMenuName() method
50: /**
51: * Returns the name of the menu in question.
52: */
53: public String getMenuName() {
54: return name;
55: } //}}}
56:
57: //{{{ paramString() method
58: public String paramString() {
59: return "menu=" + name + "," + super .paramString();
60: } //}}}
61:
62: //{{{ Private members
63: private String name;
64: //}}}
65: }
|