Bug 67107 - [ViewMgmt] Workbench allows two views with the same ID
Summary: [ViewMgmt] Workbench allows two views with the same ID
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2004-06-14 15:53 EDT by Kim Horne CLA
Modified: 2019-09-06 15:35 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kim Horne CLA 2004-06-14 15:53:54 EDT
RC2

Create a plugin that contains two views, each with the same ID.  Launch a
runtime workspace and look in the view menu.  Both are there, but only one can
ever be activated (the one that was added to the registry first, I'd wager.

This may also apply to editors.
Comment 1 Nick Edgar CLA 2004-06-29 10:24:37 EDT
What do you think would be a useful conflict resolution policy here?
Comment 2 Kim Horne CLA 2004-06-30 09:57:56 EDT
First view gets registered, any other view gets punted with a message in the log
explaining why.
Comment 3 Nick Edgar CLA 2004-06-30 11:58:24 EDT
What should constitute "first"?  The one with the lowest plugin id, or view id?
 What about when a new view is installed dynamically?

I could imagine an algorithm like:
- get all view configuration elements
- sort by view id then by plugin id
- process them in order
- if there's a dup, take the first one only

And:
- if new views come along dynamically, ignore any dups
  - it would be better to just redo the above algorithm, but that would require
handling removals due to dups



Comment 4 Kim Horne CLA 2004-06-30 12:00:54 EDT
I'd say we should either do whatever we do for other plugins (likely keeping
whatever one is given to us first when trolling the registry).  If we decide to
do something like you suggest then we should ensure that all other registries
follow the same rules...
Comment 5 Nick Edgar CLA 2006-03-15 13:28:00 EST
Reassigning bugs in component areas that are changing ownership.
Comment 6 Boris Bokowski CLA 2009-11-11 17:32:50 EST
Remy is now responsible for watching the [ViewMgmt] category.
Comment 7 Eclipse Webmaster CLA 2019-09-06 15:35:38 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.