Bundle is not recognized in NetBeans 8.2

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Bundle is not recognized in NetBeans 8.2

Volodymyr Babin
Hi,

Moving my module to NetBeans 8.2 from NetBeans 8.0.2 and Bundle is not recognized:

public TestClassesTopComponent() {
        initComponents();
        setName(Bundle.CTL_TestClassesTopComponent());
        setToolTipText(Bundle.HINT_TestClassesTopComponent());
        OpenProjects.getDefault().addPropertyChangeListener(this);
        tree.setModel(createTreeModel(false));
    }

What should I do?

Thanks a lot.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Bundle is not recognized in NetBeans 8.2

Charles Bedon
Hello,

It seems that the support for localized resources changed from "Utilities API" to "Base Utilities API", try adding the latter as a dependency in your module. See these links for reference:

Latest version: http://bits.netbeans.org/dev/javadoc/org-openide-util/org/openide/util/NbBundle.html
8.0.2 version: http://bits.netbeans.org/8.0.2/javadoc/org-openide-util/org/openide/util/NbBundle.html

Kind regards,

Charles Edward Bedón Cortázar
http://www.neotropic.co | Network Management, Data Analysis and Free Software | twitter.com/neotropic_co
Open Source Network Inventory for the masses!  http://kuwaiba.sourceforge.net | Follow Kuwaiba on Twitter
Linux Registered User #386666

On Wed, Jun 28, 2017 at 5:13 AM, Volodymyr <[hidden email]> wrote:
Hi,

Moving my module to NetBeans 8.2 from NetBeans 8.0.2 and Bundle is not recognized:

public TestClassesTopComponent() {
        initComponents();
        setName(Bundle.CTL_TestClassesTopComponent());
        setToolTipText(Bundle.HINT_TestClassesTopComponent());
        OpenProjects.getDefault().addPropertyChangeListener(this);
        tree.setModel(createTreeModel(false));
    }

What should I do?

Thanks a lot.

Loading...