Community
Participate
Working Groups
For Run on Server scenarios, adopters that use HTTPLaunchable are required to calculate the URL much earlier than what is needed. In other words, LaunchableAdapterDelegateonly contains one method that requires to return the launchable Object for the moduleArtifact. If adopters decide to use the HTTPLaunchable as the object being returned, they are forced to have to calculate the complete URL to be launched by the browser during the LaunchableAdapterDelegate.getLaunchable, which is called very early during the Run On Server path. A better way of doing things, is to allow to calculate the URL at the precise moment is required during the browser.openURL. The new support needs to be backward compatible so that adopters are not forced to move to the delay URL calculation.
Created attachment 186299 [details] v1.0
With the new code adopters do not need to change their current code, but it would be preferable that they do. To delay the calculation of the URL to be launched in the browser, adopters would need to create a class that implements IURLProvider2, create a constructor that accept the required objects (e.g. Server and IModuleArtifact) and then provide an implementation to getLaunchableURL() so that it can correctly open a browser in the correct URL. We didn't want to make IURLProvider2 context specific to the Run On Server scenario in case we can use the interface in a different place.
Changes committed to 32M
changes released to 32M
changes committed to HEAD
changes released to HEAD
New Gerrit change created: https://git.eclipse.org/r/109011
New Gerrit change created: https://git.eclipse.org/r/109012
New Gerrit change created: https://git.eclipse.org/r/109837
Gerrit change https://git.eclipse.org/r/109837 was merged to [master]. Commit: http://git.eclipse.org/c/servertools/webtools.servertools.git/commit/?id=935e0f1f64042a72a4a45e014c3130fe9da383a5