Java Source File Palette Sample - plugin detail

Illustration of MIME-based registration of palettes, which is possible from NetBeans IDE 6.0 onwards.

NetBeans Plugin - Java Source File Palette Sample
Plugin owner: geertjan
Website: https://blogs.oracle.com/geertjan/entry/sample_for_registering_palettes_in
Added: 2007-06-04
License: CDDL
Category: Code Generation
Downloaded: 4,331 times
Rating:
 4.03, by 3 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.02 MB   Last Update: 2008-05-16

What's new in this version

Rewrote the indentation code so that BaseDocument is avoided. Incremented the version from 1.0 to 1.5.

Verifications for NetBeans versions

Plugin is not subject to any verification



Introduction

NetBeans module sample. When you install the module, what you will have is a new sample in the New Project wizard.

When you step through the above, you will have a new module. The module shows how to create a palette via MIME-type registration.

palette-registered-in-layer.png

This is a new feature from NetBeans IDE 6.0 onwards, allowing you to create a palette in one module for an editor defined in another module. Here, the module provides a palette for Java source files.

Also see this blog entry, which shows an interesting extension to this sample, for allowing your users to create their own code snippets in your palette from code in the editor.

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

User Comments

  

Nice

That's exactly what I was looking for to learn how to create an palette.
Posted by silveiraneto on Feb 23, 2008
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