Bug 1877 - [View Mgmt] Eclipse should merge plugin view categories with same id (1GDXJK9)
Summary: [View Mgmt] Eclipse should merge plugin view categories with same id (1GDXJK9)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P2 normal (vote)
Target Milestone: 2.1   Edit
Assignee: Karen Williamson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:21 EDT by Kevin Haaland CLA
Modified: 2002-10-08 11:29 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 Kevin Haaland CLA 2001-10-10 22:21:22 EDT
If 2 or more plugins define extensions for extension point org.eclipse.ui.views and specify
	categories with the same name and ID for their views, then:
		1) only one category heading should	be created in the UI
		2) all child views should be created under that category heading

	Right now, #1 is a problem, but #2 works as expected.

	e.g. If we have pluginA and pluginB with the following plugin.xml we will see
	two "SWT Example" headings in the Perspectives -> Show View -> Other dialog,
	though both views will appear under a single heading (the first in the list).

	pluginA \ plugin.xml
	<!-- snip... stuff here to define plugin -->
	<extension
	      point="org.eclipse.ui.views">
	   <category name="SWT Examples" id="org.eclipse.swt.examples.category"/>
	   <view name="Launcher Example" category="org.eclipse.swt.examples.category"
         class="org.eclipse.swt.examples.launcher.LauncherView" id="org.eclipse.swt.examples.launcher.view"/>
	</extension>
	<!-- snip... more stuff here --->

	pluginB \ plugin.xml
	<!-- snip... stuff here to define plugin -->
	<extension
	      point="org.eclipse.ui.views">
	   <category name="SWT Examples" id="org.eclipse.swt.examples.category"/>
	   <view name="Fizz Bazz Example" category="org.eclipse.swt.examples.category"
         class="org.eclipse.swt.examples.fizzbazz.FizzBazz" id="org.eclipse.swt.examples.fizzbazz.view"/>
	</extension>
	<!-- snip... more stuff here --->

NOTES:
JB (18/05/2001 12:42:36 PM)
Comment 1 DJ Houghton CLA 2001-10-24 06:48:52 EDT
PRODUCT VERSION:
	Build 107

Comment 2 Kevin Haaland CLA 2001-11-22 06:25:21 EST
Deferring until development resources become available to consider this 
enhancement. 
Comment 3 Randy Giffen CLA 2002-08-06 15:17:37 EDT
Reproducable in 2.0
Comment 4 Karen Williamson CLA 2002-10-08 11:29:41 EDT
Fix released to HEAD stream. (ViewRegistry)