You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Patrik Karlström <pa...@trixon.se> on 2020/09/04 05:23:03 UTC

Quick Search Provider wizard bug?

Being totally new to creating QuickSearchProviders I might be off here.

I noticed that my translation didn't kick in when using this generated
layer.xml file.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "
http://www.netbeans.org/dtds/filesystem-1_2.dtd">
<filesystem>
    <folder name="QuickSearch">
        <folder name="Bookmarks">
            <attr name="command" stringvalue="b"/>
            <attr name="position" intvalue="0"/>
            <file
name="org-mapton-bookmarks-BookmarkQuickSearchProvider.instance">
                <attr name="displayName"
bundlevalue="org.mapton.bookmarks.Bundle#QuickSearch/Bookmarks/org-mapton-bookmarks-BookmarkQuickSearchProvider.instance"/>
            </file>
        </folder>
    </folder>
</filesystem>

So I changed it to the following and got it working.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "
http://www.netbeans.org/dtds/filesystem-1_2.dtd">
<filesystem>
    <folder name="QuickSearch">
        <folder name="Bookmarks">
            <attr name="command" stringvalue="b"/>
            <attr name="position" intvalue="0"/>
            <attr name="displayName"
bundlevalue="org.mapton.bookmarks.Bundle#QuickSearch/Bookmarks/org-mapton-bookmarks-BookmarkQuickSearchProvider.instance"/>
            <file
name="org-mapton-bookmarks-BookmarkQuickSearchProvider.instance"/>
        </folder>
    </folder>
</filesystem>

Will simplify it to
              <attr name="displayName"
bundlevalue="org.mapton.bookmarks.Bundle#QuickSearch/Bookmarks"/>

Is this a bug that I should file in jira?

/Patrik

Re: Quick Search Provider wizard bug?

Posted by Patrik Karlström <pa...@trixon.se>.
Filed @ https://issues.apache.org/jira/browse/NETBEANS-4782


Den fre 4 sep. 2020 kl 07:23 skrev Patrik Karlström <pa...@trixon.se>:

> Being totally new to creating QuickSearchProviders I might be off here.
>
> I noticed that my translation didn't kick in when using this generated
> layer.xml file.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "
> http://www.netbeans.org/dtds/filesystem-1_2.dtd">
> <filesystem>
>     <folder name="QuickSearch">
>         <folder name="Bookmarks">
>             <attr name="command" stringvalue="b"/>
>             <attr name="position" intvalue="0"/>
>             <file
> name="org-mapton-bookmarks-BookmarkQuickSearchProvider.instance">
>                 <attr name="displayName"
> bundlevalue="org.mapton.bookmarks.Bundle#QuickSearch/Bookmarks/org-mapton-bookmarks-BookmarkQuickSearchProvider.instance"/>
>             </file>
>         </folder>
>     </folder>
> </filesystem>
>
> So I changed it to the following and got it working.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "
> http://www.netbeans.org/dtds/filesystem-1_2.dtd">
> <filesystem>
>     <folder name="QuickSearch">
>         <folder name="Bookmarks">
>             <attr name="command" stringvalue="b"/>
>             <attr name="position" intvalue="0"/>
>             <attr name="displayName"
> bundlevalue="org.mapton.bookmarks.Bundle#QuickSearch/Bookmarks/org-mapton-bookmarks-BookmarkQuickSearchProvider.instance"/>
>             <file
> name="org-mapton-bookmarks-BookmarkQuickSearchProvider.instance"/>
>         </folder>
>     </folder>
> </filesystem>
>
> Will simplify it to
>               <attr name="displayName"
> bundlevalue="org.mapton.bookmarks.Bundle#QuickSearch/Bookmarks"/>
>
> Is this a bug that I should file in jira?
>
> /Patrik
>