Bug 208972 - Decorate x-friend relationships in manifest editor (imported packages)
Summary: Decorate x-friend relationships in manifest editor (imported packages)
Status: CLOSED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: bugday
Depends on:
Blocks:
 
Reported: 2007-11-06 22:11 EST by Simon Archer CLA
Modified: 2019-09-09 02:42 EDT (History)
5 users (show)

See Also:


Attachments
Work in progress (4.62 KB, patch)
2008-02-12 16:56 EST, Benjamin Cabé CLA
no flags Details | Diff
mylyn/context/zip (819 bytes, application/octet-stream)
2008-02-12 16:56 EST, Benjamin Cabé CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Archer CLA 2007-11-06 22:11:38 EST
It would be valueable if imported and exported packages that participate in x-friend relationship were decorated in the manifest editor.

Today you can only see the packages that are exported to x-friendly bundles, but even so you cannot tell at a glance, but rather you have to select each package and see if it is visible to any x-friends.

It is not currently possible to tell that an imported package was made available as a result of being an x-friend of another bundle.

Since the "unit of x-friendship" is the package, it is important for a developer to keep track of which packages are exported to an x-friend since all the types in the package are visible to the x-friend.  Likewise, it is important for a developer to keep track of which packages are imported via an x-friend relationship, since types obtained in this way are not strictly API and are likely to change.
Comment 1 Jeff McAffer CLA 2007-11-06 22:14:03 EST
+1
Comment 2 Chris Aniszczyk CLA 2007-11-06 22:43:43 EST
happy faces for decorations, since friends are happy... however I think Simon would argue for sad faces for people who use x-friends
Comment 3 Brett Hackleman CLA 2007-11-07 00:15:09 EST
Happy or sad, just make sure the preference is sticky <g>
Comment 4 Chris Aniszczyk CLA 2007-11-19 16:47:17 EST
Decorating exported packages was done with bug 210183

leaving this open to deal with imported packages
Comment 5 Benjamin Cabé CLA 2008-02-12 12:44:55 EST
I'll have a look at this bug :)
Comment 6 Benjamin Cabé CLA 2008-02-12 16:56:42 EST
Created attachment 89562 [details]
Work in progress
Comment 7 Benjamin Cabé CLA 2008-02-12 16:56:46 EST
Created attachment 89563 [details]
mylyn/context/zip
Comment 8 Benjamin Cabé CLA 2008-02-12 17:01:26 EST
Although it's quite straightforward to compute the decorator status "just-in-time" when a package is imported , I don't know what to do when reopening the Manifest : no info is stored in the text file so computing the "friend" status is quite heavy (call to the PluginRegistry to get active models and find if somewhere we are registered as friend...).

ATM, I didn't add the "internal" decorator. Should I?
Comment 9 Benjamin Cabé CLA 2008-02-12 17:10:35 EST
And what decorator must be set when the package is exported by different bundles in the target platform, maybe once as "friend", once as "internal", once as API etc .... ?
Comment 10 Benjamin Cabé CLA 2008-02-13 03:47:18 EST
Well I think I had a bad idea when I decided to cache the "isImportedAsFriend" flag into the ImportPackageObject. I think it would only be the role of the labelprovider to compute this flag, on the fly, requesting the PluginRegistry.
But caching mechanisms and background computations will be necessary because computing this flag is -very- expensive
Any suggestions? Ideas?
Comment 11 Chris Aniszczyk CLA 2008-02-14 10:14:18 EST
I think for now, we should hold off on this one as it is making us think about doing expensive calculations within label providers (something we didn't really need to do before). For these types of things, it seems we would have to kick off a job to do the calculation and just refresh the view apprioriately when it's done. There are other approaches, but as I say before, noone has died (maybe Simon) without this functionality yet ;)

There's bigger fish to fry at the moment :)
Comment 12 Eclipse Webmaster CLA 2019-09-06 16:15:07 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 13 Julian Honnen CLA 2019-09-09 02:42:46 EDT
Please remove the stalebug flag, if this issue is still relevant and can be reproduced on the latest release.