if (items.length != 1)
return;
WorkflowTreeItem itm = (WorkflowTreeItem) items[0].getData();
String type = itm.getType();
if (type == Constant.Workflow) {
WorkflowGUI wfGUI = (WorkflowGUI) itm;
WorkflowManager.getInstance().removeWorkflow(
wfGUI.getWorkflow());// model
itm.removeAllChildren();// GUI
rootItem.removeChild(wfGUI);// GUI
WorkflowView.this.viewer.refresh();
if (WorkflowView.this.rootItem.getRootsChildren().length == 0
|| WorkflowView.this.currentWorkFlowItem == wfGUI) {