Bug 175288 - Changing a plugin to a fragment back to a plugin makes it disappear
Summary: Changing a plugin to a fragment back to a plugin makes it disappear
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: 3.3 M7   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: polish
Depends on:
Blocks:
 
Reported: 2007-02-23 10:43 EST by Olivier Thomann CLA
Modified: 2007-04-11 00:54 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2007-02-23 10:43:37 EST
Using I20070220-1330,

1) create a plugin
2) convert it to a fragment of another plugin
3) put it back as a plugin
4) Create another plugin and try to add the first plugin in the dependencies list.
The first plugin is not available.

This is pretty bad. Also it would be nice to get an easy way (easier than editing manually the manifest file) to convert a plugin to a fragment.
Comment 1 Wassim Melhem CLA 2007-02-23 12:26:20 EST
we will take a look at the bug portion.

As for adding UI support in the editor to convert a fragment to a plug-in or vice versa, this would be a pretty low priority enhancemnt as it gives very little bang for the buck.  

Fragments are rare in general and converting back and forth is even more rare, and it would not make sense for us to invest in time/editor real estate to support it.  After all, it can be done on the source page by removing one line.
Comment 2 Olivier Thomann CLA 2007-04-04 12:18:18 EDT
Set as critical since once broken it is a nightmare to get back to a workable state.
Comment 3 Wassim Melhem CLA 2007-04-05 18:19:01 EDT
This scenario works fine for me.

Olivier, are there any missing steps?
Comment 4 Olivier Thomann CLA 2007-04-09 20:42:06 EDT
Ok, I reproduced it again:
1) Create three plugins test_plugin, test_plugin2 and test_plugin3.
2) No dependencies between them.
3) Convert test_plugin2 as a fragment of test_plugin by adding:
Fragment-Host: test_plugin
in the MANIFEST.MF file.
4) Restart
5) Remove the line that defines the fragment
6) Try to add test_plugin2 in the dependencies list of test_plugin3. It is not available.
Comment 5 Wassim Melhem CLA 2007-04-10 00:27:46 EDT
Scenario in comment 4 is reproducible.  Thanks.
Comment 6 Wassim Melhem CLA 2007-04-11 00:54:25 EDT
Fixed.