|
XML APIs provide support for editing XML files and leveraging XML in developed application. XMLAPIs
Question (arch-usecases): Describe the main use cases of the new API. Who will use it under what circumstances? What kind of code would typically need to be written to use the module? WARNING: Question with id="arch-usecases" has not been answered! 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!NodeAction.
NodeAction uses TopComponent.Registry.
PasteAction uses ExplorerManager.
E.g. FileSystemAction uses FileSystem.
E.g. FileSystemAction uses DataObject.
The default answer to this question is:
These modules are required in project.xml:
java.io.File directly?
Answer:
Yes to access files that are referenced by file: protocol.
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. Almost all registrations are placed on it.
Question (resources-read):
Does your module read any resources from layers? For what purpose?
Answer:
Grammar and scenario providers registrations. Probably more to come and start to use
layer as a naming service.
Can also register global XML catalogs as instances of CatalogReader in
Plugins/XML/UserCatalogs.
Question (resources-mask):
Does your module mask/hide/override any resources provided by other modules in
their layers?
Answer:
Branded version of module masks its own parts.
Question (resources-preferences):
Does your module uses preferences via Preferences API? Does your module use NbPreferences or
or regular JDK Preferences ? Does it read, write or both ?
Does it share preferences with other modules ? If so, then why ?
WARNING: Question with id="resources-preferences" has not been answered!org.openide.util.Lookup
or any similar technology to find any components to communicate with? Which ones?
Answer:
Almost all XMLDataObject properties all in turn searched in default Lookup.
Question (lookup-register):
Do you register anything into lookup for other code to find?
Answer:
XML submodules registers in lookup their action and cookies.
Also text grammars and user's catalogs are registered in lookup.
Question (lookup-remove):
Do you remove entries of other modules from lookup?
Answer:
No.
System.getProperty) property?
On a similar note, is there something interesting that you
pass to java.util.logging.Logger? Or do you observe
what others log?
Answer:
XML modules uses following system properties:
netbeans.xml.completion={fast|default|accurate}
netbeans.experimental.xml.nodeselectors={true|false}
netbeans.debug.exceptions={true|false}
netbeans.debug.editor.draw={true|false}
netbeans.debug.xml={true|false}
netbeans.xml.reportBogusSchemaLocation={true|false}
org.netbeans.tax{packages}={true|false}
Question (exec-component):
Is execution of your code influenced by any (string) property
of any of your components?
Answer:
A lot of defined by Open APIs.
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:
Yes, xerces2.jar is loaded by an isolatings classloader. There is strong
implementation dependency and the module can use two Xerces versions.
Question (exec-reflection):
Does your code use Java Reflection to execute other code?
Answer:
Yes to access EntityCatalog's map that is filled by deprecated registration methods.
In TAX to construct instance of isolated Xerces parser.
In TokenContext for fill a map from instance fields.
In BeanUtil to introspect beans.
In AbstractObjectNode to introspect listeners using a debug action.
In ElementInfo and WriteCache to apply declaratively defined
property values.
In org.netbeans.modules.xml.tree.nodes.propertysheet which is tuned copy of
OpenAPI's propertysheet API.
In TreeEventChangeSupport to get access to listeners list.
In TreeStreamResult and XNIBuilder to access/set internal DTD
as plain string. It could be replaced by a map.
Question (exec-privateaccess):
Are you aware of any other parts of the system calling some of
your methods by reflection?
Answer:
No.
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? How the
project behaves with respect to threading?
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:
Implementations of cut, copy and paste (CutAction, CopyAction
and PasteAction) reads/writes from/into clipboard. It uses standard
java datatransfer mechanism
and Netbeans extension to the mechanism.
Built on May 28 2007. | Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.