Bug 1877

Summary: [View Mgmt] Eclipse should merge plugin view categories with same id (1GDXJK9)
Product: [Eclipse Project] Platform Reporter: Kevin Haaland <Kevin_Haaland>
Component: UIAssignee: Karen Williamson <Karen_Williamson>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: 2.0   
Target Milestone: 2.1   
Hardware: All   
OS: Windows 2000   
Whiteboard:

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)