Community
Participate
Working Groups
OSGi console prints info about all plug-ins and their fragments like this: 169 <<LAZY>> org.eclipse.ecf.provider.filetransfer_2.0.1.v20080908-0800 Fragments=72 ... 172 RESOLVED org.eclipse.ui.workbench.compatibility_3.2.0.I20080509-2000 Master=27 so for every plug-in we get an idea it has fragments and we can recognize fragments from regular bundles. OSGi API (e.g. BundleContext.getBundles()) by default returns all bundles AND fragments. Plug-in registry view doesn't show fragments now. It could show something like this: -+ org.eclipse.some.bundle +- Fragments |+- org.eclipse.some.bundle.fragment1 |+- org.eclipse.some.bundle.fragment2 +- Extensions +- Extension Points +- Prerequisites (bug found when testing patch for bug 243441)
+1
Want to look at this one Jacek?
Created attachment 127958 [details] show fragments in plug-in registry Almost finished. Need to add host bundle version checking. Now host bundle is matched only by name.
Awesome! The tests patch doesn't apply well, can you fix that? I'd love to see this in for M6 :)
Created attachment 128036 [details] org.eclipse.pde.patch An updated patch that removes some of the remote stuff in there.
Hey Jacek, I think you left the remoting stuff in by accident. I tried to remove the stuff in the reworked patch above. However, displaying fragments doesn't work as expected for me. I would expect them to appear in the full list of plug-ins and also as described in the original bug.
yap, I attached wrong patch and left all work at home. this one is for some other bug. what a shame :-PP no worry, patch for fragments is short and strightforward = maybe even works :-)
Created attachment 128183 [details] patch this time right patch with fragments version range checks and unit tests update. zx please review.
done. > 20090309 Thanks Jacek! I updated the label provider to use a special icon for fragments. I'm going to open another bug about using styled cell label provider for the registry view to make it sexier. Thanks for your contribution!
(In reply to comment #9) > Thanks Jacek! I updated the label provider to use a special icon for fragments. > > I'm going to open another bug about using styled cell label provider for the > registry view to make it sexier. To colorize "x.y.z fragment" in bundle label? I was considering adding an attribute node telling the fragment host bundle name, like it's done with bundle location anyway, CC me plz :-)
(In reply to comment #10) > > I'm going to open another bug about using styled cell label provider for the > > registry view to make it sexier. ah another use would be to bold/colorize last changed elements.