From: Nick C. <nic...@gm...> - 2009-12-23 13:56:34
|
Mark, Just a note that menu items in the GUI are configurable using the plugin_jpf.xml in the repast.simphony.gui project. You can actually create your own project and use your own plugin_jpf.xml to add items to the gui but it sounds like you want to go deeper than that. The important parts of the plugin_jpf.xml are the menus and the actions. For example, <extension plugin-id="saf.core.ui" point-id="ui.Menus" id="ui.menus"> .. <parameter id="menuSpec"> <parameter id="menuID" value="repast.simphony.ui.run_menu"/> <parameter id="label" value="&Run"/> </parameter> .. </extension> defines the run menu. Items are added to the menu by associating actions with that menuID. <extension plugin-id="saf.core.ui" point-id="ui.Actions" id="rs.ctions"> ... <parameter id="actionSpec"> <parameter id="actionID" value="repast.simphony.ui.action.start"/> <parameter id="label" value="&Start"/> <parameter id="class" value="repast.simphony.ui.action.StartRun"/> <parameter id="icon" value="player_play.png"/> <parameter id="menuID" value="repast.simphony.ui.run_menu"/> <parameter id="groupID" value="run"/> <parameter id="tooltip" value="Start Run"/> </parameter> ... </extension> The class in the above is the name of a class that extends AbstractSAFAction and whose actionPerformed method is called whenever that action is executed. The menuID is the id of the menu where an entry is created for this action. The grouID is the group for this action in a toolbar. There's lots more to say here but if you poke around the source and look at some of the comments in the plugin_xml.jpf file that should get you part of the way there. Feel free to ask more questions as well, although the list is slower over the holiday break. Nick On Dec 22, 2009, at 6:55 PM, Mark Grebler wrote: > Hi, > > I was just wondering what sort of steps that I need to take in order > to get the Repast “Development Environment Components” working in > Eclipse. > > For a bit of background, I downloaded the Windows Installer and have > created some models using it, and now I want to start playing around > with the Repast source to customise the menu items that are > available in the Repast runtime system. > > I followed the instructions for Configuration B at http://repast.sourceforge.net/docs/development.html > , and after a bit of fiddling with dependencies on other Repast > projects and other build rules I succeeded in getting it all to > build, but I’m concerned that this may not have been necessary, and > that I have broken things by adding the dependencies. Firstly, are > there any instructions for building the source and getting things up > and running (I couldn’t find any)? > > Secondly, if the first is not the case, I was wondering: > - What do I need to do to get existing projects up-and- > running? Currently, I cannot run the demos because they cannot find > model.xml and I get the following error: > repast.simphony.scenario.ScenarioLoadException: .. > \repast.simphony.demos\simplephysics.rs\model.xml (The system cannot > find the file specified). > - What do I need to do to create new Repast projects (e.g. > using the agent editor) given that I have the plugins as projects in > Eclipse, and not installed in the plugins directory? > > Thanks for your help, > > Mark > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast > and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Repast-interest mailing list > Rep...@li... > https://lists.sourceforge.net/lists/listinfo/repast-interest |