|
|
Loaders/folder/any/Actions
so if any module wishes
to extend, hide or reorder some of them it can just register its actions there.
As code like this does:
<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.
Question (arch-time):
What are the time estimates of the work?
WARNING: Question with id="arch-time" has not been answered!
Question (arch-quality):
How will the quality
of your code be tested and
how are future regressions going to be prevented?
WARNING: Question with id="arch-quality" has not been answered!
Question (arch-where):
Where one can find sources for your module?
WARNING: Question with id="arch-where" has not been answered!
Default answer to this question is:
These modules are required in project.xml file:
java.io.File
directly?
Answer:
No.
Question (resources-layer):
Does your module provide own layer? Does it create any files or
folders in it? What it is trying to communicate by that and with which
components?
Answer:
Yes, module creates the folders in layer org/netbeans/core/ui/resources/layer.xml
in core-ui.jar. The folders are instrumental to store information
about used templates.
Provided folderes:
org.openide.util.Lookup
or any similar technology to find any components to communicate with? Which ones?
Answer:
If there is no DataLoaderPool
available in default
lookup, the fallback is to use a simple loader pool that contains
just the fixed system
loaders, and any
DataLoader
s that can be found in default lookup.
System.getProperty
) property?
Answer:
org.xml.sax.driver
-
This is a standard way to find a class of a SAX2 driver. See
SAX2 documentation
netbeans.profile.memory
-
Boolean.TRUE means to dettach from shared impl of parser, it is static!?
org.openide.loaders.FolderList.refresh.interval
-
The value of type integer determines the number of milliseconds
between successive refreshes of contents of a folder. Can be used to tweak
performance of folder refresh. Defaults to 10.
netbeans.dataobject.insecure.operation
-
If set to true, the DataObject.copy, move, createFromTemplate
are executed in insecure way. That means that other threads can access the
products of such operation before it finishes. This is a friend contract
with projects, that need to do such strange things. Will be removed when they
fix it.
Question (exec-component):
Is execution of your code influenced by any (string) property
of any of your components?
Answer:
The data system stores some of its vital information in file attributes. Those
attributes are accessible via calls to
org.openide.filesystems.FileObject.getAttribute(name)
org.openide.filesystems.FileObject.setAttribute(name, value)
They can also be stored in the module layer. Please see filesystems
for more information about this.
NetBeansAttrAssignedLoader
-
Extended attribute for holding the class of the loader that should
be used to recognize a file object before the normal processing takes
place.
NetBeansAttrAssignedLoaderModule
-
Extended attribute which may be used in addition to EA_ASSIGNED_LOADER
which indicates the code name base of the module that installed that preferred
loader. If the indicated module is not installed, ignore the loader request.
See #13816.
template
-
If set to Boolean.TRUE the file is recognized as template and
its instantiation is allowed.
isRemoteAndSlow
-
NewObjectWizardPanel: The Attribute "isRemoteAndSlow" will be checked for on the targetFolder, and if it is found and true, then targetFolder.getPrimaryFile().getFileObject will NOT be called.
templateWizardURL - Attribute that defines a template wizard description page (typeURL
to HTML).
templateWizardIterator
-
Attribute that defines a custom template wizard iterator (type TemplateWizard.Iterator
).
originalFile
-
Path to the target file in its filesystem (type String
).
originalFileSystem
-
System name of filesystem of target file (type String
; default is same as that of shadow).
UseOwnName
-
if true, the DataShadow name is used instead of original's name,
affects DataShadows of filesystem roots only
PartialOrders
-
Read the list of intended partial orders from disk.
Each element is a string of the form a/b for a, b filenames
with extension, where a should come before b.
The value of the attribute must be of type Boolean
; ignored unless true
.
OpenIDE-Folder-SortMode
-
Extended attribute for order of children. The values
are "F", "N", "C", "0" (type String
).
OpenIDE-Folder-Order
-
Extended attribute for order of children - stores list
of file names separated by '/' (type String
).
EA-OpenIDE-Connection
-
Extended attribute to store (ArrayList of Type and Node.Handle).
Used by Java synchronization feature at least; generally, ConnectionCookie
.
DataFolder.Index.reorderable
-
If set to Boolean.TRUE
on a folder not in the system filesystem, make its node reorderable.
Question (exec-ant-tasks):
Do you define or register any ant tasks that other can use?
WARNING: Question with id="exec-ant-tasks" has not been answered!
Question (exec-classloader):
Does your code create its own class loader(s)?
Answer:
No.
Question (exec-reflection):
Does your code use Java Reflection to execute other code?
WARNING: Question with id="exec-reflection" has not been answered!
Question (exec-privateaccess):
Are you aware of any other parts of the system calling some of
your methods by reflection?
WARNING: Question with id="exec-privateaccess" has not been answered!
Question (exec-process):
Do you execute an external process from your module? How do you ensure
that the result is the same on different platforms? Do you parse output?
Do you depend on result code?
WARNING: Question with id="exec-process" has not been answered!
Question (exec-introspection):
Does your module use any kind of runtime type information (instanceof
,
work with java.lang.Class
, etc.)?
WARNING: Question with id="exec-introspection" has not been answered!
Question (exec-threading):
What threading models, if any, does your module adhere to?
WARNING: Question with id="exec-threading" has not been answered!
Question (security-policy):
Does your functionality require modifications to the standard policy file?
WARNING: Question with id="security-policy" has not been answered!
Question (security-grant):
Does your code grant additional rights to some other code?
WARNING: Question with id="security-grant" has not been answered!java.awt.datatransfer.Transferable
?
Answer:
We use following MIME type:
application/x-java-openide-dataobjectdnd;class=org.openide.loaders.DataObject;mask={0}
Built on May 3 2007. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.