use of org.eclipse.jst.server.tomcat.core.internal.ITomcatServerWorkingCopy in project webtools.servertools by eclipse.
the class ConfigurationWebModuleEditorPart method init.
/* (non-Javadoc)
* Initializes the editor part with a site and input.
*/
public void init(IEditorSite site, IEditorInput input) {
super.init(site, input);
TomcatServer ts = (TomcatServer) server.loadAdapter(TomcatServer.class, null);
try {
configuration = ts.getTomcatConfiguration();
} catch (Exception e) {
// ignore
}
if (configuration != null)
addChangeListener();
if (server != null)
server2 = (ITomcatServerWorkingCopy) server.loadAdapter(ITomcatServerWorkingCopy.class, null);
initialize();
}
Aggregations