1
2
3
4
5
6 package net.kwfgrid.gwui.gui;
7
8 import net.kwfgrid.gworkflowdl.protocol.structure.*;
9 import net.kwfgrid.gworkflowdl.structure.*;
10
11 import org.glassbox.executor.Executor;
12
13 public class TransitionInputEdgeEditor extends AbstractTransitionEdgeEditor {
14 public TransitionInputEdgeEditor(Executor executor, ProtocolWorkflow workflow, ProtocolTransition transition) {
15 super(executor, workflow, transition);
16 }
17
18 protected String getTitle() {
19 return "Input Edges";
20 }
21
22 protected Edge getEdge(int index) {
23 return getEdges()[index];
24 }
25
26 protected Edge[] getEdges() {
27 Edge[] edges = ((Transition)getElement()).getInEdges();
28 return edges==null?new Edge[0]:edges;
29 }
30
31 protected String getElementName() {
32 return ProtocolEdge.NAME_INPUTPLACE;
33 }
34 }