|
From: Benoit X. (JIRA) <no...@at...> - 2006-03-16 16:54:51
|
[ http://opensource.atlassian.com/projects/spring/browse/RCP-270?page=comments#action_16842 ] Benoit Xhenseval commented on RCP-270: -------------------------------------- hi Jan Sorry for the delay in replying. Is there an example of this new method? I'll investigate it. Thanks Benoit > make CommandGroup.getMembers() public > ------------------------------------- > > Key: RCP-270 > URL: http://opensource.atlassian.com/projects/spring/browse/RCP-270 > Project: Spring Framework Rich Client Project > Type: Improvement > Components: Command System > Reporter: Ryan Sonnek > Assignee: Oliver Hutchison > > I'm using a JTaskPane in my view which accepts javax.swing.Action objects. I would like to register my spring commands and then loop through the command group when the view is created to populate my JTaskPane. > ex: > Iterator commands = getWindowCommandManager().getCommandGroup("contextTasks).getMembers().iterator(); > while (commands.hasNext()) { > ActionCommand command = (ActionCommand) commands.next(); > SwingActionAdapter adapter = new SwingActionAdapter(command); > commonTasks.add(adapter); > } > If there is a better way to accomplish this, i'm open to suggestions! -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/spring/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |