I have a problem at the modularisation of the stf project.
So far I moved all parts of the framework and all stf-tests in an own project. It should be possible to build the Eclipse, UI, Core Project without the STF. But the STF is initialized via an STFController how does all the RMI Stuff.
At SarosStartup.java I found the line "STFController.start(port, context);" [1] but this happens from the eclipse project. So the eclipse-project still depends on the stf-project.
My thought was to start the STF separated from the plugin but than the context is missing. Is there a way to get the context (IContainerContext) from the running plugin.
Or does anyone have another idea? Also I had that idea to start the complete plugin from the stf-project with an option to start the STFController, but no concrete idea how to do this. I mean there is no simple "public static void main" to run in the eclipse-project.
Thank you
Jannis
Hi Stefan,
yes the stf-project depends on the eclipse-project (and core). At the Moment the STF is started from the IStartup interface (StartupSaros) and there is only one line which needs access to the STFController in the stf-project. That means that the eclipse-project also depends on the stf-project which is not possible because we than have a cyclic project dependency.
I tryed to build a second "StartupSarosSTF implements IStartup" in the stf-project, but the only reference to this class is in the plugin.xml. When I try to reference my StartupSarosSTF class like this:
<extension
id="de.fu_berlin.inf.dpp.startup"
point="org.eclipse.ui.startup">
<startup
class="de.fu_berlin.inf.dpp.stf.StartupSarosSTF">
</startup>
</extension>
We also have the cyclic dependence that the plugin.xml in the eclipse-project needs a class from the stf-project.
I still don't know how to solve this.