PageRenderTime 90ms CodeModel.GetById 86ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
20package org.gjt.sp.jedit.options;
21
22import org.gjt.sp.jedit.gui.*;
23import org.gjt.sp.jedit.*;
24
25/**
26 * Right-click context menu editor.
27 * @author Slava Pestov
28 * @version $Id: ContextOptionPane.java 19655 2011-07-07 10:02:06Z kpouer $
29 */
30public class ContextOptionPane extends AbstractContextOptionPane
31{
32	public ContextOptionPane()
33	{
34		super("context", jEdit.getProperty("options.context.caption"));
35	}
36
37	/**
38	 * Returns jEdit's context menu configuration.
39	 *
40	 * @since jEdit 4.3pre13
41	 */
42	@Override
43	protected String getContextMenu()
44	{
45		return jEdit.getProperty("view.context");
46	}
47
48	/**
49	 * Saves jEdit's context menu configuration.
50	 *
51	 * @since jEdit 4.3pre13
52	 */
53	@Override
54	protected void saveContextMenu(String menu)
55	{
56		jEdit.setProperty("view.context", menu);
57	}
58}