[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
] [
Newsgroup Home
]
[news.eclipse.webtools] Re: Getting Server Runtime ClasspathEntry
From
:
philippe.sabourin@xxxxxxx
(Philippe Sabourin)
Date
: Thu, 2 Oct 2008 18:20:21 +0000 (UTC)
Newsgroups
:
eclipse.webtools
Organization
: Eclipse
User-agent
: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Found the solution in ServerClasspathContainerPage (org.eclipse.jst.server.ui.internal).
IRuntime[] runtimes = ServerCore.getRuntimes();
for (IRuntime runtime : runtimes) {
if (runtime.getRuntimeType() != null) {
RuntimeClasspathProviderWrapper rcpw = JavaServerPlugin.findRuntimeClasspathProvider(runtime.getRuntimeType());
if (rcpw != null) {
IPath serverContainerPath = new Path(RuntimeClasspathContainer.SERVER_CONTAINER)
.append(rcpw.getId()).append(runtime.getId());
runtimeMap.put(runtime, JavaCore.newContainerEntry(serverContainerPath));
}
}
}
This seems to work.
References
:
[news.eclipse.webtools] Getting Server Runtime ClasspathEntry
From:
Philippe Sabourin
Prev by Date:
[news.eclipse.webtools] Re: [ANN] WTP 3.0.2 is available!
Next by Date:
[news.eclipse.webtools] Re: JSP Validator Hates Spring's form:errors Tag
Previous by thread:
[news.eclipse.webtools] Getting Server Runtime ClasspathEntry
Next by thread:
[news.eclipse.webtools] Customize drag'n'drop in SSE
Index(es):
Date
Thread