/jEdit/tags/jedit-4-5-pre1/org/gjt/sp/jedit/options/ContextOptionPane.java

# · Java · 58 lines · 20 code · 5 blank · 33 comment · 0 complexity · a8630d2484414047795ec6a95cae4970 MD5 · raw file

  1. /*
  2. * ContextOptionPane.java - Context menu options panel
  3. * Copyright (C) 2000, 2001 Slava Pestov
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License
  7. * as published by the Free Software Foundation; either version 2
  8. * of the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. */
  19. package org.gjt.sp.jedit.options;
  20. import org.gjt.sp.jedit.gui.*;
  21. import org.gjt.sp.jedit.*;
  22. /**
  23. * Right-click context menu editor.
  24. * @author Slava Pestov
  25. * @version $Id: ContextOptionPane.java 19655 2011-07-07 10:02:06Z kpouer $
  26. */
  27. public class ContextOptionPane extends AbstractContextOptionPane
  28. {
  29. public ContextOptionPane()
  30. {
  31. super("context", jEdit.getProperty("options.context.caption"));
  32. }
  33. /**
  34. * Returns jEdit's context menu configuration.
  35. *
  36. * @since jEdit 4.3pre13
  37. */
  38. @Override
  39. protected String getContextMenu()
  40. {
  41. return jEdit.getProperty("view.context");
  42. }
  43. /**
  44. * Saves jEdit's context menu configuration.
  45. *
  46. * @since jEdit 4.3pre13
  47. */
  48. @Override
  49. protected void saveContextMenu(String menu)
  50. {
  51. jEdit.setProperty("view.context", menu);
  52. }
  53. }