[Jsxe-cvs] SF.net SVN: jsxe: [1109] trunk/jsxe/src/net/sourceforge/jsxe/ActionManager.java
Status: Inactive
Brought to you by:
ian_lewis
From: <ian...@us...> - 2006-08-07 22:38:25
|
Revision: 1109 Author: ian_lewis Date: 2006-08-07 15:38:19 -0700 (Mon, 07 Aug 2006) ViewCVS: http://svn.sourceforge.net/jsxe/?rev=1109&view=rev Log Message: ----------- Removed debug Modified Paths: -------------- trunk/jsxe/src/net/sourceforge/jsxe/ActionManager.java Modified: trunk/jsxe/src/net/sourceforge/jsxe/ActionManager.java =================================================================== --- trunk/jsxe/src/net/sourceforge/jsxe/ActionManager.java 2006-08-07 21:53:57 UTC (rev 1108) +++ trunk/jsxe/src/net/sourceforge/jsxe/ActionManager.java 2006-08-07 22:38:19 UTC (rev 1109) @@ -79,8 +79,6 @@ public static final String PASTE_SUFFIX = ".paste"; public static final String FIND_SUFFIX = ".find"; public static final String FIND_NEXT_SUFFIX = ".findnext"; - public static final String UNDO_SUFFIX = ".undo"; - public static final String REDO_SUFFIX = ".redo"; //}}} @@ -216,9 +214,9 @@ KeyEventTranslator.Key key = KeyEventTranslator.parseKey(keyBinding); m_keyBindingMap.put(key, wrapper); - Log.log(Log.DEBUG, ActionManager.class, "Adding binding: "+key.toString()); - Log.log(Log.DEBUG, ActionManager.class, "key.key: "+key.key); - Log.log(Log.DEBUG, ActionManager.class, "key.input: "+key.input); + // Log.log(Log.DEBUG, ActionManager.class, "Adding binding: "+key.toString()); + // Log.log(Log.DEBUG, ActionManager.class, "key.key: "+key.key); + // Log.log(Log.DEBUG, ActionManager.class, "key.input: "+key.input); //need to do this so that the accelerator key is rendered on menu items wrapper.putValue(Action.ACCELERATOR_KEY, KeyEventTranslator.getKeyStroke(keyBinding)); @@ -252,14 +250,14 @@ */ public static void handleKey(KeyEvent event) { KeyEventTranslator.Key key = KeyEventTranslator.translateKeyEvent(event); - Log.log(Log.DEBUG, ActionManager.class, "Key: "+key.toString()); - Log.log(Log.DEBUG, ActionManager.class, "key.key: "+key.key); - Log.log(Log.DEBUG, ActionManager.class, "key.input: "+key.input); + // Log.log(Log.DEBUG, ActionManager.class, "Key: "+key.toString()); + // Log.log(Log.DEBUG, ActionManager.class, "key.key: "+key.key); + // Log.log(Log.DEBUG, ActionManager.class, "key.input: "+key.input); //Gets the action for the Key. Action action = (Action)m_keyBindingMap.get(key); if (action != null) { - Log.log(Log.DEBUG, ActionManager.class, "Key mapping match for "+((Wrapper)action).getName()); + // Log.log(Log.DEBUG, ActionManager.class, "Key mapping match for "+((Wrapper)action).getName()); action.actionPerformed(translateKeyEvent(event)); event.consume(); } @@ -274,9 +272,7 @@ actionName.endsWith(COPY_SUFFIX) || actionName.endsWith(PASTE_SUFFIX) || actionName.endsWith(FIND_SUFFIX) || - actionName.endsWith(FIND_NEXT_SUFFIX) || - actionName.endsWith(UNDO_SUFFIX) || - actionName.endsWith(REDO_SUFFIX)); + actionName.endsWith(FIND_NEXT_SUFFIX)); }//}}} //{{{ Wrapper class @@ -353,7 +349,7 @@ private static void removeKeyBinding(KeyEventTranslator.Key key) { Action action = (Action)m_keyBindingMap.get(key); if (action != null) { - Log.log(Log.DEBUG, ActionManager.class, "removing key binding: "+key.toString()); + // Log.log(Log.DEBUG, ActionManager.class, "removing key binding: "+key.toString()); action.putValue(Action.ACCELERATOR_KEY, null); m_keyBindingMap.remove(key); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |