49 |
import org.eclipse.swt.layout.RowLayout; |
import org.eclipse.swt.layout.RowLayout; |
50 |
import org.eclipse.swt.widgets.Button; |
import org.eclipse.swt.widgets.Button; |
51 |
import org.eclipse.swt.widgets.Composite; |
import org.eclipse.swt.widgets.Composite; |
52 |
|
import org.eclipse.swt.widgets.Control; |
53 |
import org.eclipse.swt.widgets.FileDialog; |
import org.eclipse.swt.widgets.FileDialog; |
54 |
import org.eclipse.swt.widgets.Label; |
import org.eclipse.swt.widgets.Label; |
55 |
import org.eclipse.swt.widgets.List; |
import org.eclipse.swt.widgets.List; |
65 |
extends WizardPage |
extends WizardPage |
66 |
{ |
{ |
67 |
|
|
68 |
|
List list1, list2; |
69 |
|
|
70 |
/** |
/** |
71 |
* The map of strings in the list to performances. |
* The map of strings in the list to performances. |
72 |
*/ |
*/ |
92 |
layout.justify = true; |
layout.justify = true; |
93 |
layout.fill = false; |
layout.fill = false; |
94 |
container.setLayout(layout); |
container.setLayout(layout); |
95 |
List list1 = new List(container, SWT.CENTER | SWT.SINGLE); |
list1 = new List(container, SWT.CENTER | SWT.SINGLE); |
96 |
List list2 = new List(container, SWT.CENTER | SWT.SINGLE); |
list2 = new List(container, SWT.CENTER | SWT.SINGLE); |
97 |
performanceMap = new HashMap<String,Performance>(); |
performanceMap = new HashMap<String,Performance>(); |
98 |
/* |
setControl(container); |
99 |
CashewsWizard wizard = (CashewsWizard) getWizard(); |
setPageComplete(true); |
100 |
|
} |
101 |
|
|
102 |
|
public Control getControl() |
103 |
|
{ |
104 |
|
CashewsWizard wizard = (CashewsWizard) getWizard(); |
105 |
MultiPerform mp = (MultiPerform) wizard.getProcess().getControlStructure(); |
MultiPerform mp = (MultiPerform) wizard.getProcess().getControlStructure(); |
106 |
for (MultiPerformElement e : mp.getContent()) |
if (mp != null) |
107 |
{ |
{ |
108 |
Performance p = (Performance) e; |
for (MultiPerformElement e : mp.getContent()) |
109 |
String name = p.getName().toString(); |
{ |
110 |
AtomicProcess ap = (AtomicProcess) p.getProcess(); |
Performance p = (Performance) e; |
111 |
SoapOperation op = (SoapOperation) ap.getGrounding(); |
String name = p.getName().toString(); |
112 |
String endpoint = op.getEndpoint().toString(); |
AtomicProcess ap = (AtomicProcess) p.getProcess(); |
113 |
String listString = name + ":" + endpoint; |
SoapOperation op = (SoapOperation) ap.getGrounding(); |
114 |
list1.add(listString); |
String endpoint = op.getEndpoint().toString(); |
115 |
list2.add(listString); |
String listString = name + ":" + endpoint; |
116 |
performanceMap.put(listString, p); |
list1.add(listString); |
117 |
|
list2.add(listString); |
118 |
|
performanceMap.put(listString, p); |
119 |
|
} |
120 |
} |
} |
121 |
*/ |
return super.getControl(); |
|
setControl(container); |
|
|
setPageComplete(false); |
|
122 |
} |
} |
123 |
|
|
|
|
|
124 |
} |
} |