PageRenderTime 52ms CodeModel.GetById 19ms RepoModel.GetById 0ms 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
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  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. package org.gjt.sp.jedit;
  23. /**
  24. * Manages a collection of action sets. There are two instances of this class
  25. * in jEdit:
  26. * <ul>
  27. * <li>{@link org.gjt.sp.jedit.jEdit#getActionContext()} - editor actions
  28. * <li>{@link org.gjt.sp.jedit.browser.VFSBrowser#getActionContext()} - browser
  29. * actions
  30. * </ul>
  31. *
  32. * @since jEdit 4.2pre1
  33. * @author Slava Pestov
  34. * @version $Id: ActionContext.java 19264 2011-01-25 11:37:31Z kpouer $
  35. */
  36. public abstract class ActionContext extends JEditActionContext<EditAction, ActionSet>
  37. {
  38. //{{{ getActionSetForAction() method
  39. /**
  40. * Returns the action set that contains the specified action.
  41. * This method is still here for binary compatility
  42. *
  43. * @param action The action
  44. * @return the actionSet that contains the given action
  45. * @since jEdit 4.2pre1
  46. */
  47. @Override
  48. public ActionSet getActionSetForAction(String action)
  49. {
  50. return super.getActionSetForAction(action);
  51. } //}}}
  52. //{{{ getAction() method
  53. /**
  54. * Returns the specified action.
  55. * @param name The action name
  56. * @return a EditAction or null if it doesn't exist
  57. * @since jEdit 4.2pre1
  58. */
  59. @Override
  60. public EditAction getAction(String name)
  61. {
  62. return super.getAction(name);
  63. } //}}}
  64. }