public interface ProjectProblemsProvider
LookupMerger
for them
UILookupMergerSupport.createProjectProblemsProviderMerger()
.
The presence of the ProjectProblemsProvider
in the project lookup
automatically enable the broken project metadata badge on the project.
If the project wants to provide the "Resolve Broken Project" action it needs
to add a reference to the "org.netbeans.modules.project.ui.problems.BrokenProjectActionFactory"
action with required position, for example using the ActionRefrecne annotation:
@ActionReferences({ @ActionReference( id=@ActionID(id="org.netbeans.modules.project.ui.problems.BrokenProjectActionFactory",category="Project"), position = 2600, path = "Projects/org-netbeans-modules-myproject/Actions") })
ProjectProblemsProviderSupport
Modifier and Type | Interface and Description |
---|---|
static class |
ProjectProblemsProvider.ProjectProblem
Project metadata problem.
|
static class |
ProjectProblemsProvider.Result
Result of the project metadata problem resolution.
|
static class |
ProjectProblemsProvider.Severity
The
ProjectProblemsProvider.ProjectProblem severity. |
static class |
ProjectProblemsProvider.Status
The
ProjectProblemsProvider.ProjectProblem resolution status. |
Modifier and Type | Field and Description |
---|---|
static String |
PROP_PROBLEMS
Name of the problems property.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a
PropertyChangeListener listening on change of project
metadata problems. |
Collection<? extends ProjectProblemsProvider.ProjectProblem> |
getProblems()
Returns project metadata problems found by this
ProjectProblemsProvider . |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a
PropertyChangeListener listening on change of project
metadata problems. |
static final String PROP_PROBLEMS
void addPropertyChangeListener(@NonNull PropertyChangeListener listener)
PropertyChangeListener
listening on change of project
metadata problems.listener
- the listener to be added.void removePropertyChangeListener(@NonNull PropertyChangeListener listener)
PropertyChangeListener
listening on change of project
metadata problems.listener
- the listener to be removed.@NonNull Collection<? extends ProjectProblemsProvider.ProjectProblem> getProblems()
ProjectProblemsProvider
.