PageRenderTime 77ms CodeModel.GetById 73ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Java | 69 lines | 14 code | 5 blank | 50 comment | 0 complexity | d4d87bbcf7d46c31d2c9b2cf98a35627 MD5 | raw file
 1/*
 2 * ActionContext.java - For code sharing between jEdit and VFSBrowser
 3 * :tabSize=8:indentSize=8:noTabs=false:
 4 * :folding=explicit:collapseFolds=1:
 5 *
 6 * Copyright (C) 1998, 2003 Slava Pestov
 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 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21 */
22
23package org.gjt.sp.jedit;
24
25/**
26 * Manages a collection of action sets. There are two instances of this class
27 * in jEdit:
28 * <ul>
29 * <li>{@link org.gjt.sp.jedit.jEdit#getActionContext()} - editor actions
30 * <li>{@link org.gjt.sp.jedit.browser.VFSBrowser#getActionContext()} - browser
31 * actions
32 * </ul>
33 *
34 * @since jEdit 4.2pre1
35 * @author Slava Pestov
36 * @version $Id: ActionContext.java 19264 2011-01-25 11:37:31Z kpouer $
37 */
38public abstract class ActionContext extends JEditActionContext<EditAction, ActionSet>
39{
40	//{{{ getActionSetForAction() method
41	/**
42	 * Returns the action set that contains the specified action.
43	 * This method is still here for binary compatility
44	 *
45	 * @param action The action
46	 * @return the actionSet that contains the given action
47	 * @since jEdit 4.2pre1
48	 */
49	@Override
50	public ActionSet getActionSetForAction(String action)
51	{
52		return super.getActionSetForAction(action);
53	} //}}}
54
55	//{{{ getAction() method
56	/**
57	 * Returns the specified action.
58	 * @param name The action name
59	 * @return a EditAction or null if it doesn't exist
60	 * @since jEdit 4.2pre1
61	 */
62	@Override
63	public EditAction getAction(String name)
64	{
65		return super.getAction(name);
66	} //}}}
67	
68	
69}