Bug 383795

Summary: [p2] [category] Support inclusion of bundles directly in Category Editor
Product: [Eclipse Project] PDE Reporter: Mickael Istria <mistria>
Component: UIAssignee: Curtis Windatt <curtis.windatt.public>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: curtis.windatt.public, daniel_megert
Version: 4.2Keywords: contributed, noteworthy
Target Milestone: 4.3 M5   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 378338    
Bug Blocks: 381377    
Attachments:
Description Flags
Patch curtis.windatt.public: iplog+

Description Mickael Istria CLA 2012-06-28 09:21:31 EDT
p2 should support soon a <bundle...> tag in category.xml. The Category Editor should support this new concept.
Comment 1 Mickael Istria CLA 2012-08-27 12:15:55 EDT
Created attachment 220346 [details]
Patch

Patch providing support for ISiteBundle and SiteBundleAdapter in Site model, and consuming them in Category editor.
Comment 2 Curtis Windatt CLA 2012-08-31 12:57:12 EDT
Thanks for the patch, I will find some time to review it for 4.3.
Comment 3 Curtis Windatt CLA 2013-01-10 14:42:19 EST
Fixed in master
http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=d757ac6bdd72a30d71ad4b82372c084c33757860

The provided patch was incomplete.  It added the bare bones structure for adding bundles but didn't support any of the editor's features.  I added/fixed the following:

Rename bundle to plug-in in the UI
Support copy/cut/paste (there are still problems with paste but no regressions)
Support delete key and remove menu item
Drag and Drop support
Support plug-ins without a category
Open editors on double click
Editing categories needed to update plug-ins
Undo/Redo support
Outline view support
New plug-ins should have category initialized from selection
Comment 5 Mickael Istria CLA 2013-01-11 05:04:49 EST
Thanks Curtis, sorry for the patch being incomplete, I've just made it working minimally did not think about all the features and corner-case of the editor.
Comment 6 Dani Megert CLA 2013-01-11 05:07:41 EST
(In reply to comment #5)
> Thanks Curtis, sorry for the patch being incomplete, I've just made it
> working minimally did not think about all the features and corner-case of
> the editor.

Mickael, could you take a look at the warnings and provide a patch for those?
Comment 8 Dani Megert CLA 2013-01-14 04:13:20 EST
(In reply to comment #7)
> Warnings fixed with:
> http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/
> ?id=84fd361c6133c98504578f5ff609f8ff4a85b745

Verified in N20130113-2000 that the warnings are gone. Thx.