Revision as of 16:47, 9 November 2011 by Jglick (Talk | contribs)

Background: DeclarativeRegistrationUsingAnnotations#Potential_Layer_Annotations

In addition to new annotations, we need more editor hints to replace old layer.xml registrations - only a few cases (actions, templates) are currently covered, and even then not fully.


MIME resolvers

Easy: link to an XML file in the current DTD, similar to @HelpSetRegistration.

Trickier: provide similar functionality entirely in annotations.

Should be possible to register also on a nondeclarative resolver.

Data loaders

For traditional DataLoader-extending modules:

@DataObject.Factory.Registration(mimeTypes="text/html", label="#PROP_HtmlLoader_Name",
public class HtmlLoader extends UniFileLoader {...}

For those skipping the loader and using DataLoaderPool.factory:

@DataObject.Factory.Registration(mimeTypes="text/html", label="#PROP_HtmlLoader_Name",
public class HtmlDataObject extends MultiDataObject {...}

Loader actions

TBD how to handle context menu actions. See DeclarativeRegistrationUsingAnnotations#Problems_with_actions for discussion.

Startup tasks

Most simply: an annotation to register ModuleInstall implementations.

More ambitiously, an annotation to cover parallelizable startup tasks, perhaps replacing ModuleInstall as well as other hooks: #200636.

Either would supersede #163937 (refactoring hook).

Navigator panels

Registered per MIME type. Should be simple.

Task list providers

Two kinds of provider, both should be simple to register.

Quick search providers

Should be simple.

Palette items

Probably straightforward as package annotations.

XML catalogs, schemas, DTDs

May be tricky. See #192595 for discussion.

Project type registration

See #193549.

Not logged in. Log in, Register

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