Hint Template - plugin detail

Template for Creating Java Hints

NetBeans Plugin - Hint Template
Plugin owner: geertjan
Website: http://blogs.sun.com/geertjan/entry/java_hint_generator_for_netbeans
Added: 2008-03-27
License: CDDL
Category: NetBeans Rich Client Platform
Downloaded: 1,983 times
Rating:
 0, by 0 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.01 MB   Last Update: 2008-03-31

What's new in this version



Verifications for NetBeans versions

Plugin is not subject to any verification



Introduction

Creates a new template in the New File wizard's "Module Development" category, for getting you started with creating new hints in the Java editor!

Create a module project. Use the new Java Hint template: Inspect the generated Java class and tweak as needed. Look at the layer.xml file and see what's going on there. Expand the layer.xml file and see how the hint is registered within the existing hints. Right-click the project, choose Properties, go to the Libraries panel, and edit "Editor Hints (Experimental)", "Java Editor", and "Java Hints", such that you end up using their Implementation Versions. Close the Properties dialog. Install the plugin, making sure to do a restart. Have a look at Tools > Options > Java Code > Hints and make sure that your hint is registered. Read the description and see if you like it. If not, go back and change it in the plugin. Do whatever you need to do to cause the hint to appear. By default, it will appear if a method name is "showMessageDialog", as in "JOptionPane.showMessageDialog": By default, the label equals the class prefix you filled in in the 2nd step of the Java Hint wizard. Simply change it in the generated Java class as needed. The generated hint is not a fixable hint. That's possible to create too: Fixable Hint. Upload your plugin in the Plugin Portal so others can use it.

[ You have to be logged in to be able to comment. ]

User Comments

There are no comments yet.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo