blob: 997e6d9ad5da01b2e0dc3bb6ebc0f09a29b20c77 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
/*******************************************************************************
* Copyright (c) 2004 - 2006 University Of British Columbia and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* University Of British Columbia - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.internal.tasks.ui.editors;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.mylyn.tasks.core.TaskComment;
public interface IRepositoryTaskSelection extends ISelection {
/**
* @return <code>true</code> if a comment was selected.
*/
public boolean hasComment();
/**
* @return the <code>Comment</code> object for this selection, or <code>null</code> if a comment was not
* selected.
*/
public TaskComment getComment();
/**
* Sets the <code>Comment</code> object for this selection. If a comment was not selected, then this should be
* <code>null</code>.
*
* @param taskComment
* The selection's comment, or <code>null</code> if not applicable.
*/
public void setComment(TaskComment taskComment);
/**
* @return The contents of the selection. This can be <code>null</code>.
*/
public String getContents();
/**
* Sets the contents of the selection.
*
* @param contents
* The selection.
*/
public void setContents(String contents);
/**
* @return The taskId of the Bugzilla object that the selection was on.
*/
public String getId();
/**
* Sets the taskId of the Bugzilla object that the selection was on.
*
* @param taskId
* The taskId of the bug.
*/
public void setId(String id);
/**
* @return The server of the Bugzilla object that the selection was on, or <code>null</code> if no server is
* supplied.
*/
public String getRepositoryUrl();
/**
* Sets the server of the Bugzilla object that the selection was on.
*
* @param server
* The server of the bug.
*/
public void setServer(String server);
public boolean isCommentHeader();
public boolean isDescription();
public String getBugSummary();
}
|