Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 371095 - "Create a new local server" checkbox should support runtimes with multiple server types
Summary: "Create a new local server" checkbox should support runtimes with multiple se...
Status: NEW
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: wst.server (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: wst.server CLA
QA Contact: Elson Yuen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-09 10:34 EST by Kaloyan Raev CLA
Modified: 2012-02-09 10:34 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?