R
- the implementation specific repository typeQ
- the implementation specific query typeI
- the implementation specific issue typepublic final class BugtrackingSupport<R,Q,I> extends Object
Constructor and Description |
---|
BugtrackingSupport(RepositoryProvider<R,Q,I> repositoryProvider,
QueryProvider<Q,I> queryProvider,
IssueProvider<I> issueProvider)
Creates a new BugtrackingSupport preconfigured with mandatory provider implementations.
|
Modifier and Type | Method and Description |
---|---|
void |
addToCategory(R r,
I i)
Opens a UI to select an Tasks Dashboard Category to add the given Issue into.
|
Repository |
createRepository(R r,
IssueStatusProvider<R,I> issueStatusProvider,
IssueScheduleProvider<I> issueSchedulingProvider,
IssuePriorityProvider<I> issuePriorityProvider,
IssueFinder issueFinder)
Factory method to create a
Repository instance configured with optional providers. |
void |
editQuery(R r,
Q q)
Opens in the editor area a TopComponent with the given Queries UI in edit mode.
|
boolean |
editRepository(R r,
String errorMessage)
Opens a UI to edit a repository.
|
Image[] |
getPriorityIcons()
Priority icons used by default in the Tasks Dashboard sorted from the highest priority.
|
void |
openIssue(R r,
I i)
Opens in the editor area a TopComponent with the given Issues UI in edit mode.
|
void |
setQueryAutoRefresh(R r,
Q q,
boolean autoRefresh)
Determines default auto-refresh for a given query.
|
public BugtrackingSupport(RepositoryProvider<R,Q,I> repositoryProvider, QueryProvider<Q,I> queryProvider, IssueProvider<I> issueProvider)
repositoryProvider
- a RepositoryProvider
to access the implementation specific repository.queryProvider
- a QueryProvider
to access queries from the given repository.issueProvider
- an IssueProvider
to access issues from the given repository.public Repository createRepository(R r, IssueStatusProvider<R,I> issueStatusProvider, IssueScheduleProvider<I> issueSchedulingProvider, IssuePriorityProvider<I> issuePriorityProvider, IssueFinder issueFinder)
Repository
instance configured with optional providers.r
- a implementation specific repository instanceissueStatusProvider
- an IssueStatusProvider
to provide status information
of an implementation specific issue.issueSchedulingProvider
- an IssueScheduleProvider
to provide scheduling information
of an implementation specific issue.issuePriorityProvider
- an IssuePriorityProvider
to provide priority information
of an implementation specific issue.issueFinder
- an IssueFinder
to find issue references in text..Repository
instancepublic void editQuery(R r, Q q)
r
- a implementation specific Repository instanceq
- a implementation specific Query instanceQueryController
public void openIssue(R r, I i)
r
- a implementation specific Repository instancei
- a implementation specific Issue instancepublic void addToCategory(R r, I i)
r
- a implementation specific Repository instancei
- a implementation specific Issue instancepublic void setQueryAutoRefresh(R r, Q q, boolean autoRefresh)
r
- a implementation specific Repository instanceq
- a implementation specific Query instanceautoRefresh
- determines the auto-refresh setting for a given querypublic boolean editRepository(R r, String errorMessage)
r
- a implementation specific Repository instanceerrorMessage
- an message to be show in the repository edit dialogtrue
in case the repository was changed, otherwise false
.public Image[] getPriorityIcons()
IssuePriorityProvider
implementation via BugtrackingSupport.createRepository(java.lang.Object, org.netbeans.modules.bugtracking.spi.IssueStatusProvider, org.netbeans.modules.bugtracking.spi.IssueScheduleProvider, org.netbeans.modules.bugtracking.spi.IssuePriorityProvider, org.netbeans.modules.bugtracking.spi.IssueFinder)