Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 311963

Summary: [Mac] [Commands] Command from 'org.eclipse.ui.cocoa' fragment references category defined in 'org.eclipse.ui.cheatsheets'
Product: [Eclipse Project] Platform Reporter: Christian Kesselheim <christian.kesselheim>
Component: UIAssignee: Prakash Rangaraj <prakash>
Status: RESOLVED FIXED QA Contact: Prakash Rangaraj <prakash>
Severity: normal    
Priority: P3 CC: apeeters, pwebster, remy.suen
Version: 3.6   
Target Milestone: 3.7 M1   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Bug Depends on:    
Bug Blocks: 322887    
Attachments:
Description Flags
Patch v01 none

Description Christian Kesselheim CLA 2010-05-06 15:37:29 EDT
Build Identifier: I20100429-1549

It seems that there's a category reference coming from the cocoa fragment for org.eclipse.ui which pointing to a category defined in org.eclipse.ui.cheatsheets:

http://dev.eclipse.org/viewsvn/index.cgi/org.eclipse.ui.cocoa/fragment.xml?view=markup

As a result, simply creating a new RCP application by means of e.g. the "Hello RCP" template and then hitting start without further ado results in a unnecessary warning message being dumped to the user's console:

!ENTRY org.eclipse.ui 2 0 2010-05-06 21:23:30.561
!MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands' and 'org.eclipse.ui.actionDefinitions' extension points.
!SUBENTRY 1 org.eclipse.ui 2 0 2010-05-06 21:23:30.562
!MESSAGE Commands should really have a category: plug-in='org.eclipse.ui', id='org.eclipse.ui.cocoa.closeDialog', categoryId='org.eclipse.ui.category.dialogs'

One would think that the org.eclipse.ui.category.dialogs category should either belong to org.eclipse.ui instead of org.eclipse.ui.cheatsheets or the cocoa shouldn't reference this category after all.

Reproducible: Always

Steps to Reproduce:
1. Create an empty RCP application on MacOSX Cocoa
2. Start with minimal plug-ins (that is, no org.eclipse.ui.cheatsheets)
Comment 1 Prakash Rangaraj CLA 2010-05-10 02:27:26 EDT
Created attachment 167660 [details]
Patch v01
Comment 2 Adriaan Peeters CLA 2010-05-25 04:22:17 EDT
Can this fix be considered for 3.6 or 3.6.1?
Comment 3 Prakash Rangaraj CLA 2010-05-25 04:26:11 EDT
(In reply to comment #2)
> Can this fix be considered for 3.6 or 3.6.1?

Yes, when we fix it for 3.7, we will backport to 3.6.1
Comment 4 Adriaan Peeters CLA 2010-05-27 10:46:14 EDT
The org.eclipse.ui.carbon fragment looks identical, so it is also affected.
Comment 5 Prakash Rangaraj CLA 2010-05-27 12:57:32 EDT
(In reply to comment #4)
> The org.eclipse.ui.carbon fragment looks identical, so it is also affected.

Right the patch in comment #1 addresses carbon as well
Comment 6 Prakash Rangaraj CLA 2010-07-30 00:27:37 EDT
Patch v01 released to HEAD
Comment 7 Remy Suen CLA 2010-08-16 17:21:49 EDT
(In reply to comment #3)
> (In reply to comment #2)
> > Can this fix be considered for 3.6 or 3.6.1?
> 
> Yes, when we fix it for 3.7, we will backport to 3.6.1

Prakash, are you still considering this bug for the 3.6.x maintenance stream or will you not be backporting the fix?
Comment 8 Adriaan Peeters CLA 2010-09-27 03:54:58 EDT
I can confirm it is fixed in 3.6.1.
Comment 9 Prakash Rangaraj CLA 2010-09-27 04:17:44 EDT
(In reply to comment #8)
> I can confirm it is fixed in 3.6.1.

    Thanks Adriaan. 3.6 maintenance stream is tracked in Bug# 322887