public static interface ProjectCustomizer.CompositeCategoryProvider
ProjectCustomizer.createCustomizerDialog(String,Lookup,String,ActionListener,HelpCtx)
.
The panel/category created by the provider can get notified that the customizer got
closed by setting an ActionListener
to
ProjectCustomizer.Category.setOkButtonListener(java.awt.event.ActionListener)
.
Implementations can be registered using ProjectCustomizer.CompositeCategoryProvider.Registration
.
Otherwise they can be manually registered in a tree structure in the system filesystem.
UI Component can be defined for category folder that is represented as node with subnodes in the category
tree of project customizer. The file that defines the instance class in layer for such category
must be named Self
. Such a provider will not have the ProjectCustomizer.CompositeCategoryProvider.createCategory(org.openide.util.Lookup)
method called
(display name will be taken from the folder), but will have the children created by
the infrastructure based on the folder content.
For details and usage see issue #91276.
Modifier and Type | Interface and Description |
---|---|
static interface |
ProjectCustomizer.CompositeCategoryProvider.Registration
Used to register customizer panels.
|
static interface |
ProjectCustomizer.CompositeCategoryProvider.Registrations
Used in case multiple registrations are needed in one place.
|
Modifier and Type | Method and Description |
---|---|
ProjectCustomizer.Category |
createCategory(Lookup context)
create the Category instance for the given project customizer context.
|
JComponent |
createComponent(ProjectCustomizer.Category category,
Lookup context)
create the UI component for given category and context.
|
ProjectCustomizer.Category createCategory(Lookup context)
context
- Lookup instance passed from project The content is up to the project type, please consult documentation
for the project type you want to integrate your panel into.JComponent createComponent(ProjectCustomizer.Category category, Lookup context)
ActionListener
to
ProjectCustomizer.Category.setOkButtonListener(java.awt.event.ActionListener)
.category
- Category instance that was created in the createCategory method.context
- Lookup instance passed from project The content is up to the project type, please consult documentation
for the project type you want to integrate your panel into.