|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mylar.internal.tasks.ui.editors.RepositoryTaskOutlineNode
public class RepositoryTaskOutlineNode
A node for the tree in the RepositoryTaskOutlinePage
.
Field Summary | |
---|---|
private java.lang.String |
bugSummary
|
private java.lang.Object |
data
|
private boolean |
fromEditor
|
protected java.lang.String |
id
The id of the Bugzilla object that the selection was on. |
private boolean |
isCommentHeader
|
private boolean |
isDescription
|
private java.lang.String |
key
The label for this piece of data. |
(package private) static java.lang.String |
LABEL_COMMENTS
|
(package private) static java.lang.String |
LABEL_DESCRIPTION
|
(package private) static java.lang.String |
LABEL_NEW_COMMENT
|
private java.util.ArrayList<RepositoryTaskOutlineNode> |
nodeChildren
The children of this node. |
private RepositoryTaskOutlineNode |
parent
The parent of this node or null if it is the bug report |
protected java.lang.String |
server
The server of the Bugzilla object that the selection was on. |
Constructor Summary | |
---|---|
RepositoryTaskOutlineNode(java.lang.String id,
java.lang.String server,
java.lang.String key,
java.lang.Object data,
java.lang.String summary)
Creates a new RepositoryTaskOutlineNode . |
Method Summary | |
---|---|
void |
addChild(RepositoryTaskOutlineNode bugNode)
Adds a node to this node's list of children. |
boolean |
equals(java.lang.Object arg0)
|
java.lang.String |
getBugSummary()
|
RepositoryTaskOutlineNode[] |
getChildren()
|
TaskComment |
getComment()
|
java.lang.String |
getContents()
|
java.lang.Object |
getData()
|
java.lang.String |
getId()
|
java.lang.String |
getKey()
|
java.lang.String |
getName()
|
RepositoryTaskOutlineNode |
getParent()
|
java.lang.String |
getServer()
|
boolean |
hasComment()
|
int |
hashCode()
|
boolean |
isCommentHeader()
|
boolean |
isDescription()
|
boolean |
isEmpty()
|
boolean |
isFromEditor()
|
static RepositoryTaskOutlineNode |
parseBugReport(RepositoryTaskData bug)
|
static RepositoryTaskOutlineNode |
parseBugReport(RepositoryTaskData bug,
boolean hasNewComment)
Parses the given IBugzillaBug into a tree of
RepositoryTaskOutlineNode 's suitable for use in the
RepositoryTaskOutlinePage view. |
protected static RepositoryTaskOutlineNode |
parseExistingBugReport(RepositoryTaskData bug,
boolean hasNewComment)
Parses the given BugReport into a tree of
RepositoryTaskOutlineNode 's suitable for use in the
RepositoryTaskOutlinePage view. |
void |
setComment(TaskComment taskComment)
Sets the Comment object for this selection. |
void |
setContents(java.lang.String contents)
Sets the contents of the selection. |
void |
setData(java.lang.Object data)
Sets the data that this node represents. |
void |
setId(java.lang.String id)
Sets the id of the Bugzilla object that the selection was on. |
void |
setIsCommentHeader(boolean isCommentHeader)
|
void |
setIsDescription(boolean isDescription)
|
void |
setParent(RepositoryTaskOutlineNode parent)
|
void |
setServer(java.lang.String server)
Sets the server of the Bugzilla object that the selection was on. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final java.lang.String LABEL_DESCRIPTION
static final java.lang.String LABEL_COMMENTS
static final java.lang.String LABEL_NEW_COMMENT
protected java.lang.String id
protected java.lang.String server
private java.lang.String key
private java.util.ArrayList<RepositoryTaskOutlineNode> nodeChildren
private RepositoryTaskOutlineNode parent
private java.lang.Object data
private java.lang.String bugSummary
private boolean fromEditor
private boolean isCommentHeader
private boolean isDescription
Constructor Detail |
---|
public RepositoryTaskOutlineNode(java.lang.String id, java.lang.String server, java.lang.String key, java.lang.Object data, java.lang.String summary)
RepositoryTaskOutlineNode
.
id
- The id of the bug this outline is for.server
- The server of the bug this outline is for.key
- The label for this node.image
- The image that will be displayed by this node in the tree.data
- The data, if necessary, this node represents.parent
- The parent of this nodeMethod Detail |
---|
public boolean isFromEditor()
public RepositoryTaskOutlineNode[] getChildren()
Object
array.public void addChild(RepositoryTaskOutlineNode bugNode)
bugNode
- The new child.public java.lang.String getKey()
public boolean equals(java.lang.Object arg0)
equals
in class java.lang.Object
true
if the given object is another node
representing the same piece of data in the editor.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getName()
public java.lang.Object getData()
public void setData(java.lang.Object data)
data
- The new piece of data.public static RepositoryTaskOutlineNode parseBugReport(RepositoryTaskData bug, boolean hasNewComment)
IBugzillaBug
into a tree of
RepositoryTaskOutlineNode
's suitable for use in the
RepositoryTaskOutlinePage
view.
bug
- The bug that needs parsing.
RepositoryTaskOutlineNode
's.public static RepositoryTaskOutlineNode parseBugReport(RepositoryTaskData bug)
protected static RepositoryTaskOutlineNode parseExistingBugReport(RepositoryTaskData bug, boolean hasNewComment)
BugReport
into a tree of
RepositoryTaskOutlineNode
's suitable for use in the
RepositoryTaskOutlinePage
view.
bug
- The BugReport
that needs parsing.
RepositoryTaskOutlineNode
's.public boolean hasComment()
hasComment
in interface IRepositoryTaskSelection
true
if a comment was selected.public TaskComment getComment()
getComment
in interface IRepositoryTaskSelection
Comment
object for this selection, or
null
if a comment was not selected.public void setComment(TaskComment taskComment)
IRepositoryTaskSelection
Comment
object for this selection. If a comment
was not selected, then this should be null
.
setComment
in interface IRepositoryTaskSelection
taskComment
- The selection's comment, or null
if not
applicable.public java.lang.String getContents()
getContents
in interface IRepositoryTaskSelection
null
.public void setContents(java.lang.String contents)
IRepositoryTaskSelection
setContents
in interface IRepositoryTaskSelection
contents
- The selection.public java.lang.String getId()
getId
in interface IRepositoryTaskSelection
public void setId(java.lang.String id)
IRepositoryTaskSelection
setId
in interface IRepositoryTaskSelection
id
- The id of the bug.public java.lang.String getServer()
getServer
in interface IRepositoryTaskSelection
null
if no server is supplied.public void setServer(java.lang.String server)
IRepositoryTaskSelection
setServer
in interface IRepositoryTaskSelection
server
- The server of the bug.public boolean isEmpty()
isEmpty
in interface org.eclipse.jface.viewers.ISelection
public RepositoryTaskOutlineNode getParent()
public void setParent(RepositoryTaskOutlineNode parent)
public boolean isCommentHeader()
isCommentHeader
in interface IRepositoryTaskSelection
public boolean isDescription()
isDescription
in interface IRepositoryTaskSelection
public void setIsCommentHeader(boolean isCommentHeader)
public void setIsDescription(boolean isDescription)
public java.lang.String getBugSummary()
getBugSummary
in interface IRepositoryTaskSelection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |