public final class Issue extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Issue.Status
Represents an Issue Status.
|
Modifier and Type | Field and Description |
---|---|
static String |
EVENT_ISSUE_DATA_CHANGED
Fired when Issue data have changed.
|
static String |
EVENT_STATUS_CHANGED
Fired when Issue Status has changed.
|
Modifier and Type | Method and Description |
---|---|
void |
addComment(String comment,
boolean close)
Adds a comment to this Issue and closes it eventually.
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Registers a PropertyChangeListener.
|
void |
attachFile(File file,
String description,
boolean isPatch)
Attaches a file to this issue.
|
boolean |
canAttachFiles()
Determines whether it is possible to attach files to this Issue.
|
String |
getDisplayName()
Returns the display name of this Issue.
|
String |
getID()
Returns the issue id.
|
Repository |
getRepository()
The Repository this Issue comes from.
|
String |
getShortenedDisplayName()
Returns a short variant of the display name.
|
Issue.Status |
getStatus()
Determines the status of this Issue.
|
String |
getSummary()
Returns the summary of this Issue.
|
String |
getTooltip()
Returns the tooltip text describing this Issue.
|
boolean |
isFinished()
Determines whether this issue is finished/closed.
|
void |
open()
Opens this issue in the IDE.
|
boolean |
refresh()
Refresh the state of this Issue from the remote repository.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Unregisters a PropertyChangeListener.
|
public static final String EVENT_ISSUE_DATA_CHANGED
public static final String EVENT_STATUS_CHANGED
public String getID()
public String getTooltip()
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- public boolean refresh()
Please note that this method might block for a longer time. Do not execute in AWT.
true
in case the Issue was successfully refreshed,
otherwise false
public String getDisplayName()
public String getShortenedDisplayName()
Issue.getDisplayName()
public void open()
public String getSummary()
public boolean isFinished()
true
in case this Issue is finished, otherwise false
public Issue.Status getStatus()
public boolean canAttachFiles()
true
in case it is possible to attach files to
this Issue, otherwise false
public void attachFile(File file, String description, boolean isPatch)
Please note that this method might block for a longer time. Do not execute in AWT.
file
- the file to be attacheddescription
- a description of the attached fileisPatch
- true
if the file is a patch.IssueProvider.attachFile(java.lang.Object, java.io.File, java.lang.String, boolean)
public void addComment(String comment, boolean close)
Please note that this method might block for a longer time. Do not execute in AWT.
comment
- the commentclose
- true
in case this issue should be closed.IssueProvider.addComment(java.lang.Object, java.lang.String, boolean)
public Repository getRepository()