Bug 181347 - "Commands should really have a category" warning on startup
Summary: "Commands should really have a category" warning on startup
Status: RESOLVED FIXED
Alias: None
Product: DLTK
Classification: Technology
Component: Common (show other bugs)
Version: 0.9   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: dltk.common-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-04-05 19:51 EDT by Shelby Sanders CLA
Modified: 2008-05-26 02:43 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 Shelby Sanders CLA 2007-04-05 19:51:40 EDT
Build ID: M20070212-1330

Steps To Reproduce:
1. Start Eclipse with "-debug -verbose -consoleLog" options.  Note, the following entries are output to the console/.log:
<pre>
!ENTRY org.eclipse.ui 2 0 2007-04-05 16:44:11.128
!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 2007-04-05 16:44:11.129
!MESSAGE Commands should really have a category: plug-in='org.eclipse.dltk.ui', id='org.eclipse.dltk.ui.edit.text.script.comment', categoryId='org.eclipse.dltk.ui.category.source'
!SUBENTRY 1 org.eclipse.ui 2 0 2007-04-05 16:44:11.129
!MESSAGE Commands should really have a category: plug-in='org.eclipse.dltk.ui', id='org.eclipse.dltk.ui.edit.text.script.uncomment', categoryId='org.eclipse.dltk.ui.category.source'
!SUBENTRY 1 org.eclipse.ui 2 0 2007-04-05 16:44:11.129
!MESSAGE Commands should really have a category: plug-in='org.eclipse.dltk.ui', id='org.eclipse.dltk.ui.edit.text.script.toggle.comment', categoryId='org.eclipse.dltk.ui.category.source'
!SUBENTRY 1 org.eclipse.ui 2 0 2007-04-05 16:44:11.129
!MESSAGE Commands should really have a category: plug-in='org.eclipse.dltk.ui', id='org.eclipse.dltk.ui.edit.text.script.open.type.hierarchy', categoryId='org.eclipse.dltk.ui.category.source'
</pre>

More information:
It looks like the specified commands reference a category, which is never declared.

I fixed this by adding the following at line org.eclipse.dltk.ui/plugin.xml:547:
<pre>
        <category
            id="org.eclipse.dltk.ui.category.source"
            name="DLTK Source"/>
</pre>

Note, the category name should be externalized to plugin.properties.
Comment 1 Mikhail Kalugin CLA 2007-04-06 02:55:37 EDT
Fixed, thanks.
Comment 2 Andrey Platov CLA 2008-05-26 02:43:55 EDT
bulk change: this bug was fixed in DLTK 0.9