NetBeans Architecture Answers for Datasystems API module


Interfaces table

Group of java interfaces
Interface Name In/Out Stability Specified in What Document?
LoadersAPI Exported Official .../openide/loaders/doc-files/api.html

FilesystemsAPI Imported Official .../openide/filesystems/doc-files/api.html

LookupAPI Imported Official .../org/openide/util/doc-files/api.html

UtilitiesAPI Imported Official .../org/openide/util/doc-files/api.html

sun.swing.plaf.synth.SynthIcon Imported Private

We use class sun.swing.plaf.synth.SynthIcon from Sun proprietary API to paint native toolbar D&D handle for GTK L&F. If this class is not found there is fallback code to paint handle.

Group of lookup interfaces
Interface Name In/Out Stability Specified in What Document?
org.openide.loaders.CreateFromTemplateHandler Exported Official .../loaders/CreateFromTemplateHandler.html

can be registered as a services in a lookup and it is reponsible for handling the whole copy of the template file(s) to the destination folder.

org.openide.loaders.CreateFromTemplateAttributesProvider Exported Official .../

can be registered as a services in a lookup and it is reponsible for providing "hints" - e.g. map mapping strings to various objects.

Group of property interfaces
Interface Name In/Out Stability Specified in What Document?
javax.script.ScriptEngine Exported Official

a property that can be associated to templates that either should return real instance of ScriptEngine interface or a String name of the engine that is then used to search for it in the javax.script.ScriptEngineManager. Usually the
freemarker engine is the one that is supported by the NetBeans IDE - if your module wants to use it then include a token dependency OpenIDE-Module-Needs: javax.script.ScriptEngine.freemarker in your manifest file (also accessible through project customizer GUI) to indicate to the system that you need it.

name Exported Stable

contains the name of the
DataObject that is being created

user Exported Stable

contains the name the user

nameAndExt Exported Stable

contains the name and extension of the file that is being created

date Exported Stable

contains String representing the current day like 23. 3. 2007

time Exported Stable

contains String the current time like 17:18:30

encoding Exported Stable

contains String the file encoding of the template instance

NetBeansAttrAssignedLoader Exported Stable

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 Exported Private

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 Exported Stable

If set to Boolean.TRUE the file is recognized as template and its instantiation is allowed.

isRemoteAndSlow Exported Friend

If the file attribute isRemoteAndSlow is true on a folder, the New File wizard and folder children will avoid asking for its children.

templateWizardURL Exported Stable

Attribute that defines a template wizard description page (type URL to HTML).

templateWizardIterator Exported Stable

Attribute that defines a custom template wizard iterator (type TemplateWizard.Iterator).

originalFile Exported Stable

Path to the target file in its filesystem (type String).

originalFileSystem Exported Stable

System name of filesystem of target file (type String; default is same as that of shadow).

UseOwnName Exported Private

if true, the DataShadow name is used instead of original's name, affects DataShadows of filesystem roots only

simple Exported Stable

templates and folders under Templates/ folder can be annotated with <attr name="simple" boolvalue="false"< if they are supposed to be hidden in Template Manager. If a folder is annotated with this attribute, it is also hidden in standard New File wizard.

PartialOrders Exported Stable

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 Exported Private

Extended attribute for order of children. The values are "F", "N", "C", "0" (type String).

OpenIDE-Folder-Order Exported Private

Extended attribute for order of children - stores list of file names separated by '/' (type String).

EA-OpenIDE-Connection Exported Private

Extended attribute to store (ArrayList of Type and Node.Handle). Used by Java synchronization feature at least; generally, ConnectionCookie.

DataFolder.Index.reorderable Exported Friend

If set to Boolean.TRUE on a folder not in the system filesystem, make its node reorderable.

org.openide.loaders.DataFolder.lazy Exported Private

Setting this property to true or false true or false influences the kind of children used by all the folders. Either they are "lazy", which is currently a bit experimental, but in long term shall be the default. Or they are "eager", which means that shall be as reliable (and slow) as they used to be in previous releases. This is highly temporary property which will be removed as soon as we stabilize the lazy implementation.

expectedTime Imported Friend

When the DataObject is moved to new location, we we need to adjust the time to the new file object.
CloneableEditorSupport exports special "expectedTime" property for this purpose. Tested in DataEditorSupportTest.testChangeFileWhileOpen.

org.xml.sax.driver Imported Private

This is a standard way to find a class of a SAX2 driver. See
SAX2 documentation

netbeans.profile.memory Imported Private

Boolean.TRUE means to dettach from shared impl of parser, it is static!?

org.openide.loaders.FolderList.refresh.interval Exported Private

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 Exported Friend

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.

wizard.anything Exported Stable

When
TemplateWizard invokes DataObject.createFromTemplate, it passes as argument all its properties to it with prefix wizard.. That way they are available to underlaying scripting and templating engines.

Group of layer interfaces
Interface Name In/Out Stability Specified in What Document?
Loaders-folder-any-Actions Exported Stable

The actions that the default folder loader shows in its popup menu are read from a layer folder Loaders/folder/any/Actions so if any module wishes to extend, hide or reorder some of them it can just register its actions there.

Loaders-text-xml-Actions Exported Stable

The actions that the standard XML loader shows in its popup menu are read from a layer folder Loaders/text/xml/Actions

Loaders-content-unknown-Actions Exported Stable

The actions that the loader for unrecognized files shows in its popup menu are read from a layer folder Loaders/content/unknown/Actions

Loaders-application-x-nbsettings-Actions Exported Stable

The actions that the loader for instance and settings files shows in its popup menu are read from a layer folder Loaders/application/x-nbsettings/Actions

Loaders-mime-type-Factories Exported Stable .../org/openide/loaders/doc-files/api.html

Loaders are registered in the layer in folder Loaders/mime/type/Factories.

PrivilegedTemplates Exported Under Development

A folder Privileged offers to other module possibility add own templates.

RecentTemplates Exported Private

A folder Recent stores a set of recently used templates, it's not open to other module.

Group of javax.swing.UIManager interfaces
Interface Name In/Out Stability Specified in What Document?
Nb.Explorer.Folder.icon Exported Under Development

Icon or Image for closed folder.

Nb.Explorer.Folder.openedIcon Exported Under Development

Icon or Image for opened folder.

Tree.openedIcon Exported Under Development

Fallback Icon or Image for opened folder.

Tree.closedIcon Exported Under Development

Fallback Icon or Image for folder.


General Information


Project and platform dependencies


Deployment


Compatibility with environment


Access to resources


Lookup of components


Execution Environment


Format of files and protocols


Performance and Scalability


Built on July 6 2010.  |  Portions Copyright 1997-2010 Sun Microsystems, Inc. All rights reserved.