|
||||||||||
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.RepositoryTaskSelection
public class RepositoryTaskSelection
A selection of an element in a view.
Field Summary | |
---|---|
protected java.lang.String |
bugSummary
|
protected java.lang.String |
contents
The contents of the selection. |
protected java.lang.String |
id
The id of the Bugzilla object that the selection was on. |
private boolean |
isCommentHeader
|
private boolean |
isDescription
|
protected java.lang.String |
server
The server of the Bugzilla object that the selection was on. |
protected TaskComment |
taskComment
The comment, if a comment was selected. |
Constructor Summary | |
---|---|
RepositoryTaskSelection(java.lang.String id,
java.lang.String server,
java.lang.String summary)
Creates a new RepositoryTaskSelection with no supplied
contents or comment. |
|
RepositoryTaskSelection(java.lang.String id,
java.lang.String server,
java.lang.String contents,
boolean isDescription,
java.lang.String summary)
Creates a new RepositoryTaskSelection with no supplied
comment. |
|
RepositoryTaskSelection(java.lang.String id,
java.lang.String server,
java.lang.String contents,
TaskComment taskComment,
java.lang.String summary)
Creates a new RepositoryTaskSelection . |
|
RepositoryTaskSelection(java.lang.String id,
java.lang.String server,
TaskComment taskComment,
java.lang.String summary)
Creates a new RepositoryTaskSelection with no supplied
contents. |
Method Summary | |
---|---|
java.lang.String |
getBugSummary()
|
TaskComment |
getComment()
|
java.lang.String |
getContents()
|
java.lang.String |
getId()
|
java.lang.String |
getServer()
|
boolean |
hasComment()
|
boolean |
isCommentHeader()
|
boolean |
isDescription()
|
boolean |
isEmpty()
|
void |
setComment(TaskComment taskComment)
Sets the Comment object for this selection. |
void |
setContents(java.lang.String contents)
Sets the contents of the selection. |
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 |
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String id
protected java.lang.String server
protected java.lang.String contents
protected java.lang.String bugSummary
protected TaskComment taskComment
null
.
private boolean isCommentHeader
private boolean isDescription
Constructor Detail |
---|
public RepositoryTaskSelection(java.lang.String id, java.lang.String server, java.lang.String summary)
RepositoryTaskSelection
with no supplied
contents or comment.
id
- The id of the Bugzilla object that the selection was on.server
- The server of the Bugzilla object that the selection was on.public RepositoryTaskSelection(java.lang.String id, java.lang.String server, java.lang.String contents, boolean isDescription, java.lang.String summary)
RepositoryTaskSelection
with no supplied
comment.
id
- The id of the Bugzilla object that the selection was on.server
- The server of the Bugzilla object that the selection was on.contents
- The contents of the selection.public RepositoryTaskSelection(java.lang.String id, java.lang.String server, TaskComment taskComment, java.lang.String summary)
RepositoryTaskSelection
with no supplied
contents.
id
- The id of the Bugzilla object that the selection was on.server
- The server of the Bugzilla object that the selection was on.taskComment
- The Comment
object for this selection. If a
comment was not selected, then this should be
null
.public RepositoryTaskSelection(java.lang.String id, java.lang.String server, java.lang.String contents, TaskComment taskComment, java.lang.String summary)
RepositoryTaskSelection
.
id
- The id of the Bugzilla object that the selection was on.server
- The server of the Bugzilla object that the selection was on.contents
- The contents of the selection.taskComment
- The Comment
object for this selection. If a
comment was not selected, then this should be
null
.Method Detail |
---|
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 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 |