Hello Jason,
> Sounds like a neat idea, kudos to getting the Hello World to work! I'm
> curious how it's set up--I assume the Eclipse view showing the GWT app a
> browser-backed view?
Yes, that was actually fairly easy. Here is the central code from the
ViewPart:
public void createPartControl(Composite parent) {
browser = new Browser(parent, SWT.FLAT);
int port = JettyRunner.getServerPort();
String url = "
http://localhost:" + port + "/document";
browser.setUrl(url);
}
JettyRunner resides in another plugin for launching Jetty. The call
to getServerPort() triggers the loading of that plugin. So if the
view isn't shown, Jetty isn't started. JettyRunner then looks for a
free port, that's why I have to query for it.
> Are the plugins you depend on separate projects in your workspace? If so,
> you can add them as linked source folders to your main GWT+Plugin project.
> If not, it'll be a bit more tricky. You'll need the source of those
> plugins, and then you may be able to add that as source directories.
I don't think it is that easy, unfortunately. I wrote some plugins
that reside in the workspace, but these in turn rely on others that do
not. For instance, I am using EMF to create and manage the value-
objects. These in turn rely on EMF-classes (e.g. EList, etc.) that
reside in the EMF-plugins.
I could do what you suggested - but that would be messy. Ideally, I
would like to take advantage of Eclipse to resolve all dependencies,
but I fear that this will be quite difficult. In fact, I did some
work with PDE-building, and it was not pretty. But I am afraid that
this is exactly what's required: A PDE environment for compiling
GWT. :-( And even if I manage that, I would loose the ability to
debug - unless I build a PDE environment for running in hosted mode in
addition to that!
Anyway, thank you for your response. Any other ideas...?
Best,
- Michael