|
org.openide.loaders 5.9.31 | |||||||||
PREV NEXT | FRAMES NO FRAMES |
See:
Description
Loaders API | |
---|---|
org.openide.actions | |
org.openide.awt | |
org.openide.loaders | Datasystems are the logical layer between a filesystem and the regular functions of the IDE. |
org.openide.text |
Default loaders, default XML loader and instances loader read their
actions from Loaders/content/unknown/Actions
,
Loaders/text/xml/Actions
and Loaders/application/x-nbsettings/Actions
.
It was not possible to use DataNode with own Lookup as the constructor that takes it was available only on Node and there was no way to pass it thru DataNode.
DataFolder.FolderNode.setName()
Refactoring needs to handle rename of DataFolder's Node. It is allowed through FolderRenameHandler. Any client can put it's FolderRenameHandler into Lookup (only one instance is allowed). Implementation of FolderNode.setName() will use this instance to handle rename request.
DataEditorSupport
Many people subclass DataEditorSupport
to provide editing ability for data
objects. The great majority of them wish to provide an editor cookie
and with standard semantics for open, modify, save, undo,
close, reload, etc. By using the
DataEditorSupport.create
factory
method this task is simplified to two lines of code.
DataLoaderPool.getDefault()
DataLoaderPool
now has a new method getDefault()
to allow simple access to the default system loader pool.
Loaders/folder/any/Actions
so if any module wishes
to extend, hide or reorder some of them it can just register its actions there.<folder name="Loaders" > <folder name="folder" > <folder name="any" > <folder name="Actions" > <file name="org-mymodule-MyAction.instance" > <attr name="instanceCreate" stringvalue="org.mymodule.MyAction" /> </file> </folder> </folder> </folder> </folder>As described in general actions registration tutorial. This functionality is available since version 5.0 of the loaders module. Please use
OpenIDE-Module-Module-Dependencies: org.openide.loaders > 5.0
in your
module dependencies.
In version 5.8 all the standard loaders were changed to read actions from layer:
Loaders/text/xml/Actions
Loaders/content/unknown/Actions
Loaders/application/x-nbsettings/Actions
DataObject
s produced by your DataLoader
and you
are either using DataNode
or its subclass, you can just override
protected String actionsContext()
method to return non-null
location of context in layers from where to read the actions.
The usual value should match Loaders/mime/type/Actions
scheme,
for example java is using Loaders/text/x-java/Actions
, but
the name can be arbitrary.
This functionality is available since version 5.0 of the loaders module. Please use
OpenIDE-Module-Module-Dependencies: org.openide.loaders > 5.0
in your
module dependencies.
|
|
Read more about the implementation in the answers to architecture questions.
|
org.openide.loaders 5.9.31 | |||||||||
PREV NEXT | FRAMES NO FRAMES |