/jEdit/branches/4.3.x-merge-request-2980833/org/gjt/sp/jedit/ActionContext.java
# · Java · 71 lines · 15 code · 6 blank · 50 comment · 0 complexity · 97fac368d6b36818d87c8022d43e9919 MD5 · raw file
- /*
- * ActionContext.java - For code sharing between jEdit and VFSBrowser
- * :tabSize=8:indentSize=8:noTabs=false:
- * :folding=explicit:collapseFolds=1:
- *
- * Copyright (C) 1998, 2003 Slava Pestov
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
- package org.gjt.sp.jedit;
- import java.util.*;
- /**
- * Manages a collection of action sets. There are two instances of this class
- * in jEdit:
- * <ul>
- * <li>{@link org.gjt.sp.jedit.jEdit#getActionContext()} - editor actions
- * <li>{@link org.gjt.sp.jedit.browser.VFSBrowser#getActionContext()} - browser
- * actions
- * </ul>
- *
- * @since jEdit 4.2pre1
- * @author Slava Pestov
- * @version $Id: ActionContext.java 13436 2008-08-27 02:32:08Z ezust $
- */
- public abstract class ActionContext extends JEditActionContext<EditAction, ActionSet>
- {
- //{{{ getActionSetForAction() method
- /**
- * Returns the action set that contains the specified action.
- * This method is still here for binary compatility
- *
- * @param action The action
- * @return the actionSet that contains the given action
- * @since jEdit 4.2pre1
- */
- @Override
- public ActionSet getActionSetForAction(String action)
- {
- return super.getActionSetForAction(action);
- } //}}}
- //{{{ getAction() method
- /**
- * Returns the specified action.
- * @param name The action name
- * @return a EditAction or null if it doesn't exist
- * @since jEdit 4.2pre1
- */
- @Override
- public EditAction getAction(String name)
- {
- return super.getAction(name);
- } //}}}
-
-
- }