ILaunchManager: plans to expose importConfigurations() ? [message #1783102] |
Wed, 07 March 2018 23:56  |
Eclipse User |
|
|
|
Hi,
asking because I wanted to implement an Oomph Setup Task which could import .launch Files. Then I realized that the Import Wizard casts the retrieved ILaunchManager instance to the concrete LaunchManager class and calls the public method (which is not exposed in the interface). I also got the warning in my code that this is discouraged.
- Are there any plans to add this method to the official API?
- In case not, is this method stable enough to use the same hack in the Oomph Task?
Thanks!
|
|
|
Re: ILaunchManager: plans to expose importConfigurations() ? [message #1783112 is a reply to message #1783102] |
Thu, 08 March 2018 04:31   |
Eclipse User |
|
|
|
This is the general problem we faced when developing Oomph. Many important utilities are not accessible via officially supported APIs but rather through internals that are subject to arbitrary change. In the best case, these utilities are available as public methods in the internals, as in this case, but even then, they are subject to arbitrary change. Certainly to develop Oomph itself we could not wait for each thing we needed "today" to be evolved into public API "eventually"I; we'd likely still be waiting today because this type of evolution (exposing more useful implementation details) is not the focus of the development teams involved. I would suggest opening a Bugzilla with the request to provide public API for importing launch configurations, and then, rather than waiting, use the internal class to implement what you want; you could of course use reflection as well, but then you won't find out something is broken until runtime.
|
|
|
|
Powered by
FUDForum. Page generated in 0.22998 seconds