Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 371095

Summary: "Create a new local server" checkbox should support runtimes with multiple server types
Product: [WebTools] WTP ServerTools Reporter: Kaloyan Raev <kaloyan>
Component: wst.serverAssignee: wst.server <wst.server-inbox>
Status: NEW --- QA Contact: Elson Yuen <eyuen7>
Severity: enhancement    
Priority: P3    
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Kaloyan Raev CLA 2012-02-09 10:34:06 EST
We are developing a server adapter for a platform that is always running on a remote host. The platform also provides a lightweight runtime for testing that can be run on localhost. 

We modeled this in the WTP Server Framework as one runtime with two server types: one for the local runtime (supportsRemoteHosts=false) and one for the remote runtime (supportsRemoteHosts=true).

When creating a new WTP runtime (through Windows > Preferences > Runtime Environments > Add), there is the option to display the "Create a new local server" checkbox. In our use case I would expect that selecting this checkbox will chain the wizard fragment for creating a new local server. However, this does not happen, because the current logic of the WTP Server Framework is to show this checkbox only if there is one server type defined for the selected runtime. In our case we have two server types: one local and one remote. 

We are willing to contribute a patch for Juno that changes the current behavior so it matches our use case. We are wondering what would be the best yet simple enough approach. Perhaps we could check that if there are more than one server types, the checkbox can appear and chain the wizard fragment of the first server type that explicitly states "supportsRemoteHosts=false". 

Thoughts?