From: SourceForge.net <no...@so...> - 2006-08-29 03:37:09
|
Feature Requests item #1548301, was opened at 2006-08-28 20:37 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=350588&aid=1548301&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: core Group: None Status: Open Resolution: None Priority: 5 Submitted By: Marcelo Vanzin (vanza) Assigned to: Nobody/Anonymous (nobody) Summary: Actions: support actions that can receive parameters Initial Comment: It would be nice if actions could receive arbitrary parameters. This way a single action could be used in different ways, depending on parameters that are passed to it. My idea: EditAction's "invoke()" method should also receive a second argument, an Object[] with the arguments passed to the action. To maintain backwards compatibility, we maintain the current "invoke(View)" method, and actions will have to explicitly declare that they expect parameters (a new attribute in the "actions.xml" entry?). The default implementation for invoke(View) would just call invoke(View,Object[]) with an empty argument array. The shortcut dialog would have to be modified when adding a shortcut to an action that expect parameters, so the user can set the parameters that would be used for that shortcut. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=350588&aid=1548301&group_id=588 |