Skip to main content
summaryrefslogtreecommitdiffstats
blob: 494a38bb15329963e31d54f04d119697b48bb06d (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
86
87
88
89
/*******************************************************************************
 * Copyright (c) 2003 - 2005 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.mylar.bugzilla.core;

import org.eclipse.jface.viewers.ISelection;


/**
 * Interface for a selection of a Bugzilla element in a view.
 */
public interface IBugzillaReportSelection 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 Comment getComment();

	/**
	 * Sets the <code>Comment</code> object for this selection. If a comment
	 * was not selected, then this should be <code>null</code>.
	 * 
	 * @param comment
	 *            The selection's comment, or <code>null</code> if not
	 *            applicable.
	 */
	public void setComment(Comment comment);

	/**
	 * @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 id of the Bugzilla object that the selection was on.
	 */
	public int getId();

	/**
	 * Sets the id of the Bugzilla object that the selection was on.
	 * 
	 * @param id
	 *            The id of the bug.
	 */
	public void setId(int id);

	/**
	 * @return The server of the Bugzilla object that the selection was on, or
	 *         <code>null</code> if no server is supplied.
	 */
	public String getServer();

	/**
	 * 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();
	

}

Back to the top