站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

Options Dialog and SPI - NetBeans Architecture Questions - NetBeans API Javadoc (Current Development Version)

NetBeans Architecture Answers for Options Dialog and SPI module

WARNING: answering questions version 1.26 rather than the current 1.29.

Interfaces table

Group of java interfaces
Interface NameIn/OutStabilitySpecified in What Document?
OptionsDialogSPIExportedUnder Development .../spi/options/OptionsCategory.html

ProgressImportedUnder Development .../overview-summary.html

The module is needed for compilation. The module is used during runtime.

org.netbeans.libs.formlayoutImportedPrivate

Additional library to simplify Hanz the work and create a nightmare for rest of us. It is needed for compilation and used during runtime.

FilesystemsAPIImportedOfficial .../overview-summary.html

The module is needed for compilation. The module is used during runtime. Specification version 6.2 is required.

UtilitiesAPIImportedOfficial .../org-openide-util/overview-summary.html

The module is needed for compilation. The module is used during runtime. Specification version 6.2 is required.

org.openide.awtImportedPrivate../org-openide-awt/overview-summary.html

The module is needed for compilation. The module is used during runtime. Specification version 6.2 is required.

DialogsAPIImportedOfficial .../overview-summary.html

The module is needed for compilation. The module is used during runtime. Specification version 6.2 is required.

WindowSystemAPIImportedOfficial .../overview-summary.html

The module is needed for compilation. The module is used during runtime. Specification version 6.2 is required.

ActionsAPIImportedOfficial .../overview-summary.html

The module is needed for compilation. The module is used during runtime. Specification version 6.2 is required.

ExplorerAPIImportedOfficial .../overview-summary.html

The module is needed for compilation. The module is used during runtime. Specification version 6.2 is required.

NodesAPIImportedOfficial .../org-openide-nodes/overview-summary.html

The module is needed for compilation. The module is used during runtime. Specification version 6.2 is required.

LoadersAPIImportedOfficial .../overview-summary.html

The module is needed for compilation. The module is used during runtime.

Group of property interfaces
Interface NameIn/OutStabilitySpecified in What Document?
org.netbeans.core.actions.OptionsAction.additionalActionNameImportedPrivate

Crates button with given string in bottom left corner of Advanced Options Dialog.

org.netbeans.core.actions.OptionsAction.additionalActionListenerImportedPrivate

Given ActionListener is notified when custom button is pressed.

Group of layer interfaces
Interface NameIn/OutStabilitySpecified in What Document?
OptionsDialogSPILayersExportedUnder Development .../spi/options/OptionsCategory.html

Use OptionsDialog folder for registration of custom top level options panels. Register your implementation of OptionsCategory there (*.instance file). Standard file systems sorting mechanism is used.

AdvancedPanelSPILayersExportedUnder Development .../netbeans/spi/options/AdvancedOption.html

Use OptionsDialog/Advanced folder for registration of custom panels to Miscellaneous Panel. Register your implementation of AdvancedCategory there (*.instance file). Standard file systems sorting mechanism is used.


General Information

    Question (arch-what): What is this project good for?

    Answer:

    This module contains implementation of Options Panel and simple SPI.

    Question (arch-overall): Describe the overall architecture.

    Answer:

    Options Dialog module contains implementation of Options Dialog and simple SPI. This SPI allows installation of custom options panels / categories to Options Dialog. This module contains implementation of Miscellaneous Panel ans Miscellaneous Panel SPI too. OptionsDialogSPI

    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?

    Answer:

    Register top level Options Panel

    Client can install new panel to Options Dialog - see JavaDoc for OptionsCategory class.

    Register panel to Advanced Options Panel

    Client can install new panel to Advanced Options Panel - see JavaDoc for AdvancedOption class.

    Question (arch-time): What are the time estimates of the work?

    Answer:

    Question (arch-quality): How will the quality of your code be tested and how are future regressions going to be prevented?

    Answer:

    This module follows NetBeans standard processes (QA, Unit Tests).

    Question (arch-where): Where one can find sources for your module?

    Answer:

    The sources for the module are in NetBeans CVS in core/options directory.


Project and platform dependencies

    Question (dep-nb): What other NetBeans projects and modules does this one depend on?

    Answer:
    • Progress - The module is needed for compilation. The module is used during runtime.
    • org.netbeans.libs.formlayout - Additional library to simplify Hanz the work and create a nightmare for rest of us. It is needed for compilation and used during runtime.
    • FilesystemsAPI - The module is needed for compilation. The module is used during runtime. Specification version 6.2 is required.
    • UtilitiesAPI - The module is needed for compilation. The module is used during runtime. Specification version 6.2 is required.
    • org.openide.awt - The module is needed for compilation. The module is used during runtime. Specification version 6.2 is required.
    • DialogsAPI - The module is needed for compilation. The module is used during runtime. Specification version 6.2 is required.
    • WindowSystemAPI - The module is needed for compilation. The module is used during runtime. Specification version 6.2 is required.
    • ActionsAPI - The module is needed for compilation. The module is used during runtime. Specification version 6.2 is required.
    • ExplorerAPI - The module is needed for compilation. The module is used during runtime. Specification version 6.2 is required.
    • NodesAPI - The module is needed for compilation. The module is used during runtime. Specification version 6.2 is required.
    • LoadersAPI - The module is needed for compilation. The module is used during runtime.

    Question (dep-non-nb): What other projects outside NetBeans does this one depend on?

    Answer:

    None.

    Question (dep-platform): On which platforms does your module run? Does it run in the same way on each?

    Answer:

    Runs on all platforms.

    Question (dep-jre): Which version of JRE do you need (1.2, 1.3, 1.4, etc.)?

    Answer:

    JRE 1.4.

    Question (dep-jrejdk): Do you require the JDK or is the JRE enough?

    Answer:

    JRE is enough.


Deployment

    Question (deploy-jar): Do you deploy just module JAR file(s) or other files as well?

    Answer:

    No.

    Question (deploy-nbm): Can you deploy an NBM via the Update Center?

    Answer:

    Question (deploy-shared): Do you need to be installed in the shared location only, or in the user directory only, or can your module be installed anywhere?

    Answer:

    Question (deploy-packages): Are packages of your module made inaccessible by not declaring them public?

    Answer:

    Yes.

    Question (deploy-dependencies): What do other modules need to do to declare a dependency on this one, in addition to or instead of the normal module dependency declaration (e.g. tokens to require)?

    Answer:

    Nothing.


Compatibility with environment

    Question (compat-i18n): Is your module correctly internationalized?

    Answer:

    Yes.

    Question (compat-standards): Does the module implement or define any standards? Is the implementation exact or does it deviate somehow?

    Answer:

    No.

    Question (compat-version): Can your module coexist with earlier and future versions of itself? Can you correctly read all old settings? Will future versions be able to read your current settings? Can you read or politely ignore settings stored by a future version?

    Answer:

    There are no earlier versions of this module, and this module has no settings.

    Question (compat-deprecation): How the introduction of your project influences functionality provided by previous version of the product?

    WARNING: Question with id="compat-deprecation" has not been answered!

Access to resources

    Question (resources-file): Does your module use 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, it installs OptionsWindowAction to menu, and AdvancedPanel implementation to Options Dialog.

    Question (resources-read): Does your module read any resources from layers? For what purpose?

    Answer:

    OptionsDialogSPILayers - Use OptionsDialog folder for registration of custom top level options panels. Register your implementation of OptionsCategory there (*.instance file). Standard file systems sorting mechanism is used. AdvancedPanelSPILayers - Use OptionsDialog/Advanced folder for registration of custom panels to Miscellaneous Panel. Register your implementation of AdvancedCategory there (*.instance file). Standard file systems sorting mechanism is used.

    Question (resources-mask): Does your module mask/hide/override any resources provided by other modules in their layers?

    Answer:

    No.

    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!

Lookup of components

    Question (lookup-lookup): Does your module use org.openide.util.Lookup or any similar technology to find any components to communicate with? Which ones?

    Answer:

    Lookups and layers. See JavaDoc.

    Question (lookup-register): Do you register anything into lookup for other code to find?

    Answer:

    No.

    Question (lookup-remove): Do you remove entries of other modules from lookup?

    Answer:

    No.


Execution Environment


Format of files and protocols

    Question (format-types): Which protocols and file formats (if any) does your module read or write on disk, or transmit or receive over the network? Do you generate an ant build script? Can it be edited and modified?

    Answer:

    No.

    Question (format-dnd): Which protocols (if any) does your code understand during Drag & Drop?

    Answer:

    None.

    Question (format-clipboard): Which data flavors (if any) does your code read from or insert to the clipboard (by access to clipboard on means calling methods on java.awt.datatransfer.Transferable?

    Answer:

    None.


Performance and Scalability

    Question (perf-startup): Does your module run any code on startup?

    Answer:

    No.

    Question (perf-exit): Does your module run any code on exit?

    Answer:

    No.

    Question (perf-scale): Which external criteria influence the performance of your program (size of file in editor, number of files in menu, in source directory, etc.) and how well your code scales?

    Answer:

    Question (perf-limit): Are there any hard-coded or practical limits in the number or size of elements your code can handle?

    Answer:

    Question (perf-mem): How much memory does your component consume? Estimate with a relation to the number of windows, etc.

    Answer:

    Question (perf-wakeup): Does any piece of your code wake up periodically and do something even when the system is otherwise idle (no user interaction)?

    Answer:

    No.

    Question (perf-progress): Does your module execute any long-running tasks?

    Answer:

    No.

    Question (perf-huge_dialogs): Does your module contain any dialogs or wizards with a large number of GUI controls such as combo boxes, lists, trees, or text areas?

    Answer:

    Yes.

    Question (perf-menus): Does your module use dynamically updated context menus, or context-sensitive actions with complicated and slow enablement logic?

    Answer:

    No.

    Question (perf-spi): How the performance of the plugged in code will be enforced?

    Answer:


Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.