Skip to content

faq 109412256

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

How we can actually run the extension after we add the extension under dependency?

by Xuebo Lai on 2017-05-15 20:58:44


After I added the extension to the dependency pom.xml, I ran the GUI again but nothing significant seemed to change. I did not see the new window popped out as expected. By the way, I am trying to use the networkEditor. I am not sure whether we need to do more other than putting the extension under dependency.

Thanks


Comments: 1


Re: How we can actually run the extension after we add the extension under dependency?

by Kai Nagel on 2017-05-18 16:19:45

There is not yet an easy way to make this work.  The 0.9.0-SNAPSHOT branch of the matsim-example-project has a MATSimGui class (see https://github.com/matsim-org/matsim-example-project/blob/0.9.0-SNAPSHOT/src/main/java/org/matsim/gui/MATSimGUI.java ), which points to the HelloWorld class.  You would now have to modify the HelloWorld class so that your extension is called; the way to do this can be figured out by looking at the Run...Example class that you are interested in.  I can see the following options:

  1. If you know how to program in Java, this will probably be easier if you forget about the Gui at this stage and start from the Run...Example script directly.
  2. If you don't know how to program in Java, you will need to find someone who can help you.

I really hope that you find a way.

Clone this wiki locally