|
org.netbeans.modules.projectapi/1 1.14 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
See:
Description
| Project API | |
|---|---|
| org.netbeans.api.project | General API for finding and manipulating all kinds of projects. |
| org.netbeans.spi.project | Support for defining project types. |
| org.netbeans.spi.project.support | |
ProjectAPI
The Project API defines abstract projects, i.e. groupings of files built and
manipulated as units. It is used for Ant-based projects but could support
other scenarios such as makefiles. Modules can plug in project types which can
recognize certain folders as being projects, and define their behaviors.
Besides the visible Javadoc, this module permits a project to add implementations
of org.netbeans.spi.queries.FileBuiltQueryImplementation,
org.netbeans.spi.queries.SharabilityQueryImplementation and
org.netbeans.spi.queries.FileEncodingQueryImplementation
into the project lookup (rather than global lookup).
The implementations will be consulted only in the case the relevant file
belongs to that project (according to org.netbeans.api.project.FileOwnerQuery).
This helps avoid the need to consult irrelevant query implementations.
Added interfaces and support classes that can be used to compose the project's lookup
from multiple 3rd party sources. Framework for creating merged instances included.
LookupMerger implementation for Sources added.
Added an interface ProjectConfigurationProvider
which can be included in a project's lookup to support
switchable configurations / profiles.
Introduced:
New method notifyDeleted added to ProjectState.
Interfaces DataFilesProviderImplementation, DeleteOperationImplementation, CopyOperationImplementation, MoveOperationImplementation has
been added to support project delete/copy/rename/move.
Support class ProjectOperations has been added to simplify operations on compound projects.
It is possible to register owner of an individual file using FileOwnerQuery.markExternalOwner.
It is possible to register owner of a folder or file using URI, so the folder or file does not
have to exist at the time of registration.
To indicate that this is now considered a stable API, the major release version was incremented to 1 from 0.
The SPI should be used by modules defining particular project types, e.g. the J2SE project type. The API is to be used primarily by GUI infrastructure and some queries, though other module code may on occasion need to refer to the API.
Read more about the implementation in the answers to architecture questions.
|
org.netbeans.modules.projectapi/1 1.14 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||