blob: 9f59b1bd177442283283d86b8779845f0e2c0201 (
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
|
/*******************************************************************************
* Copyright (c) 2004, 2007 Boeing.
* 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:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.ats.task;
import java.util.Collection;
import org.eclipse.osee.ats.core.task.TaskArtifact;
import org.eclipse.osee.ats.core.workflow.AbstractWorkflowArtifact;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.util.IWorkPage;
import org.eclipse.osee.framework.ui.swt.IDirtiableEditor;
/**
* @author Donald G. Dunne
*/
public interface IXTaskViewer {
public String getTabName() throws OseeCoreException;
public Collection<TaskArtifact> getTaskArtifacts(IWorkPage state) throws OseeCoreException;
public Collection<TaskArtifact> getTaskArtifacts() throws OseeCoreException;
public IDirtiableEditor getEditor() throws OseeCoreException;
/**
* Denotes whether tasks are available to this object. Doesn't imply whether editable, use isTaskEditable().<br>
* Example: This will show the task tab or not.
*
* @return true if view of tasks is allowed
*/
public boolean isTaskable() throws OseeCoreException;
public String getCurrentStateName();
public AbstractWorkflowArtifact getAwa() throws OseeCoreException;
/**
* Overriding flag to denote if tasks are allowed to be edited. If false, task viewer will disable all right-click
* and alt-left-click editing functionality.
*
* @return false if tasks can be created, deleted, edited
*/
public boolean isTasksEditable() throws OseeCoreException;
@Override
public String toString();
/**
* Returning true will allow implementer class to handle the refresh button press which whill result in
* handlRefreshAction() being called
*
* @return if implementer will handle refresh calls
*/
public boolean isRefreshActionHandled() throws OseeCoreException;
/**
* Called if isRefreshActionHandled() returns true
*/
public void handleRefreshAction() throws OseeCoreException;
}
|