Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347087 - [Tooling] Integrate RAP launch configuration support into feature wizard
Summary: [Tooling] Integrate RAP launch configuration support into feature wizard
Status: ASSIGNED
Alias: None
Product: RAP
Classification: RT
Component: Demo (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 351546
Blocks:
  Show dependency tree
 
Reported: 2011-05-24 16:44 EDT by Holger Staudacher CLA
Modified: 2011-07-08 07:28 EDT (History)
2 users (show)

See Also:


Attachments
Proposed PDE patch (5.11 KB, patch)
2011-05-24 17:44 EDT, Holger Staudacher CLA
no flags Details | Diff
An alternative to the proposed PDE patch (15.11 KB, patch)
2011-05-27 10:30 EDT, Beyhan Veliev CLA
no flags Details | Diff
updated alternative patch (23.87 KB, patch)
2011-07-05 04:15 EDT, Beyhan Veliev CLA
no flags Details | Diff
tests for updated alternative patch (6.79 KB, patch)
2011-07-05 04:16 EDT, Beyhan Veliev CLA
no flags Details | Diff
mylyn/context/zip (343.22 KB, application/octet-stream)
2011-07-05 04:16 EDT, Beyhan Veliev CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Staudacher CLA 2011-05-24 16:44:18 EDT
I can create features using existing OSGi launch configurations. I think we should integrate RAP Launch configurations as well. Maybe we need to extend PDE at this time ;)
Comment 1 Holger Staudacher CLA 2011-05-24 17:44:02 EDT
Created attachment 196492 [details]
Proposed PDE patch

This is a patch for pde.ui and pde.launching. It adds the RAP Launcher id to the launching bundle and adds support for creating features based on RAP launch configurations. I think we should discuss these changes before we contribute it back to PDE.
Comment 2 Beyhan Veliev CLA 2011-05-27 10:30:20 EDT
Created attachment 196765 [details]
An alternative to the proposed PDE patch

As we already discussed I like a configurable way to contribute launch configurations which can be used to create feature projects. Therefore, this patch defines an extension point which can be used to contribute launch configurations for feature project creation.
Comment 3 Holger Staudacher CLA 2011-07-01 05:07:15 EDT
Hi Beyhan, I reviewed your patch. There are some things to do before we can contribute it to PDE:

1) The extension point documentation contains some spelling errors and doe snot fit to the other pde ext points.
2) Your Extension point covers only the create feature wizard. There are a lot of other places where this extension is useful. Just open a call hierarchy of org.eclipse.pde.launching.IPDELauncherConstants.OSGI_CONFIGURATION_TYPE. E.g. this is also used when creating products.
3) The name of the schema file doesn't fit into the other pde schemas.
4) The launchers that can use this extension point are always OSGi based. So, why is there a flag for OSGi?
5) You should migrate the current OSGi launchers (Eclipse Application/OSGi Framework) to use this ext point.
6) As I mentioned above there are several places where it makes sense to hook a launcher. So, I suggest to name the ext point "launcherHook". What do you think? I mean such a hook is useful on all places where a launcher has bundles and the UI needs these. The launcherHook should only have one element "launchConfigurationType" which just needs an id. The id should be browseable.
7) There are no Tests!

When these changes are made I think we are good to contribute the patch to pde.

Cheers Holger
Comment 4 Beyhan Veliev CLA 2011-07-05 04:15:48 EDT
Created attachment 199093 [details]
updated alternative patch
Comment 5 Beyhan Veliev CLA 2011-07-05 04:16:36 EDT
Created attachment 199094 [details]
tests for updated alternative patch
Comment 6 Beyhan Veliev CLA 2011-07-05 04:16:52 EDT
Created attachment 199095 [details]
mylyn/context/zip
Comment 7 Beyhan Veliev CLA 2011-07-05 04:49:00 EDT
(In reply to comment #3)
See my comments below. I think the patch is ready to be contributed. There are tests and I tested it. Works fine for me.
@Holger can you take a look please and give a feedback.

> 1) The extension point documentation contains some spelling errors and doe snot
> fit to the other pde ext points.
I updated it. Took the name "launcherHook". Sounds reasonable for me.
> 2) Your Extension point covers only the create feature wizard. There are a lot
> of other places where this extension is useful. Just open a call hierarchy of
> org.eclipse.pde.launching.IPDELauncherConstants.OSGI_CONFIGURATION_TYPE. E.g.
> this is also used when creating products.
The extension point covers now feature creation and product creation. I didn't find other possibilities for this extension point. 
> 3) The name of the schema file doesn't fit into the other pde schemas.
I updated to "launcherHook.exsd"
> 4) The launchers that can use this extension point are always OSGi based. So,
> why is there a flag for OSGi?
Not only. Eclipse Application launchers can use it also. They aren't OSGi based 
> 5) You should migrate the current OSGi launchers (Eclipse Application/OSGi
> Framework) to use this ext point.
Done
> 6) As I mentioned above there are several places where it makes sense to hook a
> launcher. So, I suggest to name the ext point "launcherHook". What do you think?
> I mean such a hook is useful on all places where a launcher has bundles and the
> UI needs these. The launcherHook should only have one element
> "launchConfigurationType" which just needs an id. The id should be browseable.
> 7) There are no Tests!
I provided tets for the parts which I think should be tested.
Comment 8 Holger Staudacher CLA 2011-07-08 07:04:56 EDT
Hi Beyhan,
I reviewed your patch and I think we are good to go. I will open a bug against pde and sedn you the id. Can you please merge your two patches into one and submit it with a good explanation what it does to the pde bug?
Comment 9 Beyhan Veliev CLA 2011-07-08 07:20:12 EDT
(In reply to comment #8)
> Hi Beyhan,
> I reviewed your patch and I think we are good to go. I will open a bug against
> pde and sedn you the id. Can you please merge your two patches into one and
> submit it with a good explanation what it does to the pde bug?

Ok, give me the id when you have it.
Comment 10 Holger Staudacher CLA 2011-07-08 07:23:05 EDT
I opened a bug against PDE:

351546: Introduce launcher hooks for bundle based launch configurations

I will make this bug depend on the PDE bug because when PDE adopts the functionality we can create such an Extension.