PageRenderTime 92ms CodeModel.GetById 89ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Java | 63 lines | 20 code | 7 blank | 36 comment | 0 complexity | f10bc7e279b23110192c6214762b4236 MD5 | raw file
 1/*
 2 * jEdit - Programmer's Text Editor
 3 * :tabSize=8:indentSize=8:noTabs=false:
 4 * :folding=explicit:collapseFolds=1:
 5 *
 6 * Copyright Š 2011 Matthieu Casanova
 7 *
 8 * This program is free software; you can redistribute it and/or
 9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20 */
21
22package org.gjt.sp.jedit.options;
23
24import org.gjt.sp.jedit.gui.AbstractContextOptionPane;
25import org.gjt.sp.jedit.jEdit;
26
27/**
28 * Right-click context menu editor.
29 *
30 * @author Matthieu Casanova
31 * @version $Id: ContextOptionPane.java 12504 2008-04-22 23:12:43Z ezust $
32 */
33public class BrowserContextOptionPane extends AbstractContextOptionPane
34{
35
36	public BrowserContextOptionPane()
37	{
38		super("browser.custom.context", jEdit.getProperty("options.browser.context.caption"));
39	}
40
41	/**
42	 * Returns jEdit's context menu configuration.
43	 *
44	 * @since jEdit 4.3pre13
45	 */
46	@Override
47	protected String getContextMenu()
48	{
49		return jEdit.getProperty("browser.custom.context");
50	}
51
52	/**
53	 * Saves jEdit's context menu configuration.
54	 *
55	 * @since jEdit 4.3pre13
56	 */
57	@Override
58	protected void saveContextMenu(String menu)
59	{
60		jEdit.setProperty("browser.custom.context", menu);
61	}
62
63}