public void run() {
try {
WorkflowClient workflowClient = GPELLoadWindow.this.engine
.getWorkflowClient();
final GcSearchList resultList = workflowClient.list();
SwingUtilities.invokeLater(new Runnable() {
public void run() {
if (resultList == null || resultList.size() == 0) {
GPELLoadWindow.this.list.getList().setListData(
new String[]{"No workflow"});
} else {
Vector<GcSearchResult> results = new Vector<GcSearchResult>();
for (GcSearchResult result : resultList
.results()) {
results.add(result);
}
GPELLoadWindow.this.list.setListData(results);
GPELLoadWindow.this.list.setEnabled(true);