Search in sources :

Example 1 with ITomcatServerWorkingCopy

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();
}
Also used : ITomcatServerWorkingCopy(org.eclipse.jst.server.tomcat.core.internal.ITomcatServerWorkingCopy) TomcatServer(org.eclipse.jst.server.tomcat.core.internal.TomcatServer)

Aggregations

ITomcatServerWorkingCopy (org.eclipse.jst.server.tomcat.core.internal.ITomcatServerWorkingCopy)1 TomcatServer (org.eclipse.jst.server.tomcat.core.internal.TomcatServer)1