blob: acab911f8749f4d709224b6a5409ec552202d63f (
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
|
/*******************************************************************************
* Copyright (c) 2011 Wind River Systems, Inc. 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:
* Wind River Systems - initial API and implementation
*******************************************************************************/
package org.eclipse.tm.te.runtime.stepper.interfaces;
import org.eclipse.tm.te.runtime.interfaces.extensions.IExecutableExtension;
/**
* A step groupable.
*/
public interface IContextStepGroupable<Data extends Object> {
/**
* Returns the grouped extension instance.
*
* @return The grouped extension instance.
*/
public IExecutableExtension getExtension();
/**
* Returns the groupable secondary id. The primary id is the unique id of the extension.
*
* @return The groupable secondary id or <code>null</code>.
*/
public String getSecondaryId();
/**
* Returns if or if not the step is a singleton. Singleton steps can occur in step groups only
* once. Multiple occurrences are forbidden.
*
* @return <code>True</code> if the step is a singleton, <code>false</code> otherwise.
*/
public boolean isSingleton();
/**
* Returns if or if not the step can be removed from a step group by the user.
* <p>
* The default value is <code>true</code> and can be changed exactly once to <code>false</code>.
* Once set to <code>false</code> it must not be changeable anymore.
*
* @return <code>True</code> if the step can be removed, <code>false</code> otherwise.
*/
public boolean isRemovable();
/**
* Returns if or if not the step is hidden from the user.
* <p>
* The default value is <code>false</code> and can be changed exactly once to <code>true</code>.
* Once set to <code>true</code> it must not be changeable anymore.
*
* @return <code>True</code> if the step is hidden, <code>false</code> otherwise.
*/
public boolean isHidden();
/**
* Returns if or if not the step is disabled.
* <p>
* The default value is <code>false</code> and can be changed exactly once to <code>true</code>.
* Once set to <code>true</code> it must not be changeable anymore.
*
* @return <code>True</code> if the step is disable, <code>false</code> otherwise.
*/
public boolean isDisabled();
/**
* Returns the list of dependencies. The dependencies of a groupable are checked on execution.
* If one of the listed dependencies have not been executed before, the execution of the
* groupable will fail.
* <p>
* The launch step or launch step group id might be fully qualified using the form
* <code>"primaryId##secondaryId</code>. The <code>secondaryId</code> is optional.
*
* @return The list of dependencies or an empty list.
*/
public String[] getDependencies();
}
|