This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 268185 - @EditorActionRegistration's toolBarPosition generates wrong layer.xml-entries
Summary: @EditorActionRegistration's toolBarPosition generates wrong layer.xml-entries
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jan Peska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-24 09:52 UTC by markiewb
Modified: 2016-09-24 09:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows layer.xml (26.01 KB, image/png)
2016-09-24 09:52 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2016-09-24 09:52:58 UTC
Created attachment 162196 [details]
Shows layer.xml

This registration
@EditorActionRegistration(
        name = "bookmark-toggle", noIconInMenu = true, noKeyBinding = false,
        iconResource = "org/netbeans/modules/editor/bookmarks/resources/toggle_bookmark.png", 
        menuPath = "GoTo", menuPosition = 1900, menuText = "#CTL_ToggleBookmarkAction" ,toolBarPosition = 13000)

generates a layer.xml-entry to Editors|Toolbar, but it has to be Editors|Toolbars|Default


ACTUAL
    <folder name="Editors">
        <folder name="Toolbar">
            <file name="bookmark-toggle.shadow">
                <!--org.netbeans.lib.editor.bookmarks.actions.ToggleBookmarkAction-->
                <attr name="originalFile" stringvalue="Editors/Actions/bookmark-toggle.instance"/>
                <attr intvalue="13000" name="position"/>
            </file>
        </folder>

EXPECTED
    <folder name="Editors">
        <folder name="Toolbars">
            <folder name="Default">
		<file name="bookmark-toggle.shadow">
        	        <!--org.netbeans.lib.editor.bookmarks.actions.ToggleBookmarkAction-->
                	<attr name="originalFile" stringvalue="Editors/Actions/bookmark-toggle.instance"/>
                	<attr intvalue="13000" name="position"/>
            	</file>
        	</folder>