Bug 383795 - [p2] [category] Support inclusion of bundles directly in Category Editor
Summary: [p2] [category] Support inclusion of bundles directly in Category Editor
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 4.3 M5   Edit
Assignee: Curtis Windatt CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed, noteworthy
Depends on: 378338
Blocks: 381377
  Show dependency tree
 
Reported: 2012-06-28 09:21 EDT by Mickael Istria CLA
Modified: 2013-01-14 04:13 EST (History)
2 users (show)

See Also:


Attachments
Patch (50.56 KB, patch)
2012-08-27 12:15 EDT, Mickael Istria CLA
curtis.windatt.public: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.