PageRenderTime 47ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre4/org/gjt/sp/jedit/msg/DynamicMenuChanged.java

#
Java | 69 lines | 19 code | 7 blank | 43 comment | 0 complexity | 19af28cb43756b4d72638f63b4bafa7c MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. /*
  2. * DynamicMenuChanged.java - Message that causes dynamic menus to be
  3. * reconstructed
  4. * :tabSize=8:indentSize=8:noTabs=false:
  5. * :folding=explicit:collapseFolds=1:
  6. *
  7. * Copyright (C) 2003 Slava Pestov
  8. *
  9. * 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. package org.gjt.sp.jedit.msg;
  24. import org.gjt.sp.jedit.*;
  25. /**
  26. * Sending this message will cause the specified dynamic menu to be recreated.
  27. *
  28. * @author Slava Pestov
  29. * @version $Id: DynamicMenuChanged.java 4680 2003-05-02 23:36:00Z spestov $
  30. *
  31. * @since jEdit 4.2pre2
  32. */
  33. public class DynamicMenuChanged extends EBMessage
  34. {
  35. //{{{ DynamicMenuChanged constructor
  36. /**
  37. * Creates a new dynamic menu changed message.
  38. * @param menu The menu name. All dynamic menus with this name will be
  39. * recreated next time they are displayed.
  40. */
  41. public DynamicMenuChanged(String name)
  42. {
  43. super(null);
  44. this.name = name;
  45. } //}}}
  46. //{{{ getMenuName() method
  47. /**
  48. * Returns the name of the menu in question.
  49. */
  50. public String getMenuName()
  51. {
  52. return name;
  53. } //}}}
  54. //{{{ paramString() method
  55. public String paramString()
  56. {
  57. return "menu=" + name + "," + super.paramString();
  58. } //}}}
  59. //{{{ Private members
  60. private String name;
  61. //}}}
  62. }