EnhancedConfigurationOfNBRCPProjectsUISpec

See Enhanced Configuration Of NB RCP Projects page for overview and discussion.

Use Cases

See EnhancedConfigurationOfNBRCPProjects#UseCases.

Suite Projects

Nodes with external clusters (suites, modules and external binary clusters) are added to existing view of platform clusters and modules in "Libraries" panel in suite project customizer. The content of the list of modules is saved to cluster.path property as described above, paths to platform clusters are saved using
${nbplatform.active} 
property as path prefix. Couple of buttons get added to panel to allow adding and editing of external cluster nodes:
+-------------------------------------------------------------------------+
|                    +-------------------+-+ +--------------------------+ |
| Java Platform:     | JDK 1.6 (Default) |V| | Manage Java Platforms... | |
|                    +-------------------+-+ +--------------------------+ |
|                    +-------------------+-+ +--------------------------+ |
| NetBeans Platform: |NetBeans IDE Dev   |V| |    Manage Platforms...   | |
|                    +-------------------+-+ +--------------------------+ |
| Platform Modules:                                                       |
| +-----------------------------------+----------+----------------------+ |
| | Clusters/modules tree             | Included | Origin               | |
| +-----------------------------------+----------+----------------------+ |
| |                                   |          |                      | |
| |                                   |          |                      | |
| |                                   |          |                      | |
| |                                   |          |                      | |
| +-----------------------------------+----------+----------------------+ |
| +---------------+ +---------------+ +---------------+ +---------------+ |
| | Add Project...| | Add Cluster...| |    Remove     | |   Edit...     | |
| +---------------+ +---------------+ +---------------+ +---------------+ |
+-------------------------------------------------------------------------+
  • Add Project... button allows to add suite or standalone module project to the list.
  • Add Cluster... button allows to add additional binary cluster to the list. See #AddClusterDialog below.
  • Remove button removes entry from the list.
  • Edit... button is enabled only when cluster is selected in
    Projects and Clusters
    and brings up {Add Cluster Dialog} where source and javadoc ZIP/folders can be edited.

if possible, paths are saved relative to current project.

  • TreeTable shows a list of added suites, standalone modules and binary clusters (with different icons) in the same manner as current platform clusters are shown. Checkboxes allow disabling of inidividual modules and even whole suites/clusters (which are then omitted from cluster.path, but stay in UI for further enablement). New column "Origin" is added which shows type of cluster or module (one of "Platform", "Suite Component", "Suite", "Standalone" or "External Cluster"). Platform clusters are always at the top of the table, sorted alphabetically, external clusters follow, sorted in order in which were addded.

"Categories" tree on the stays the same.

When platform with harness that does not support external clusters is chosen, dialog displays info message instead of Add Project ... Edit buttons. Message reads "Selected platform is too old to support external cluster" or the like. When user tries to choose platform with old harness and already has external clusters attached to project, info message box with the same message pops up and selected platform stays unchanged.

Standalone Module Projects

Not implemented for standalone module projects (at least not in 6.7).

For standalone modules, view with extra clusters is added just below NetBeans Platform combo. Editing buttons are aligned vertically on the right:

+-------------------------------------------------------------------------+
|                    +-------------------+-+ +--------------------------+ |
| Java Platform:     | JDK 1.6 (Default) |V| | Manage Java Platforms... | |
|                    +-------------------+-+ +--------------------------+ |
|                    +-------------------+-+ +--------------------------+ |
| NetBeans Platform: |NetBeans IDE Dev   |V| |    Manage Platforms...   | |
|                    +-------------------+-+ +--------------------------+ |
| Extra Clusters and Modules:                                             |
| +-------------------------------+----------+--------+ +---------------+ |
| | Clusters/modules tree         | Included | Origin | | Add Project...| |
| +-------------------------------+----------+--------+ +---------------+ |
| |                               |          |        | | Add Cluster...| |
| |                               |          |        | +---------------+ |
| |                               |          |        | |    Remove     | |
| |                               |          |        | +---------------+ |
| |                               |          |        | |   Edit...     | |
| +-------------------------------+----------+--------+ +---------------+ |
| Module Dependencies:                                                    |
| +---------------------------------------------------+ +---------------+ |
| |                                                   | |      Add      | |
| |                                                   | +---------------+ |
| |                                                   | |     Remove    | |
| |                                                   | +---------------+ |
| |                                                   | |     Edit...   | |
| +---------------------------------------------------+ +---------------+ |
| Required Tokens:                                                        |
| +---------------------------------------------------+ +---------------+ |
| |                                                   | |      Add      | |
| |                                                   | +---------------+ |
| |                                                   | |     Remove    | |
| |                                                   | +---------------+ |
| |                                                   |                   |
| +---------------------------------------------------+                   |
+-------------------------------------------------------------------------+

NB.org Projects

Nothing changes (NB.org modules don't use this feature).

Add Cluster Dialog

Shown on
Add Cluster...
and {Edit...} buttons, allows to select cluster dir in filesystem and bind source and javadoc to the cluster.
+------------------------------------------------+
| Cluster directory:                             | 
| +------------------------+ +-----------------+ |
| | <path to cluster>      | |    Browse...    | |
| +------------------------+ +-----------------+ |
|                                                |
| Sources:                                       |
| +------------------------+ +-----------------+ |
| |                        | |Add ZIP/folder...| |
| |                        | +-----------------+ |
| |                        | +-----------------+ |
| |                        | |     Remove      | |
| |                        | +-----------------+ |
| |                        |                     |
| +------------------------+                     |
|                                                |
| Javadoc:                                       |
| +------------------------+ +-----------------+ |
| |                        | |Add ZIP/folder...| |
| |                        | +-----------------+ |
| |                        | +-----------------+ |
| |                        | |     Remove      | |
| |                        | +-----------------+ |
| |                        |                     |
| +------------------------+                     |
+------------------------------------------------+

Sources and Javadoc ZIP/folders are added in the same manner as in NB Platform Manager.

See also implementation.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo