}
}
});
}
ArrowLabel startArrowLabel = new ArrowLabel() {
public void onDropped() {
Vector selectedComps = ActivityDesignerListener
.getSelectedComponents();
if (selectedComps != null) {
if (designer instanceof SequenceActivityDesigner) {
((SequenceActivityDesigner) designer)
.insertActivityDesigners(selectedComps, 0);
} else {
// ActivityDesigner droppingActivity =
// ((ActivityDesigner)selectedComps.elementAt(0));
SequenceActivity wrapperActivity = new SequenceActivity();
SequenceActivityDesigner wrapperActivityDesigner =
(SequenceActivityDesigner) wrapperActivity.createDesigner();
wrapperActivityDesigner.onDropped(selectedComps);
int where = designer.getParentDesigner().indexOf(
designer);
Vector compBag = new Vector();
compBag.add(designer);
wrapperActivityDesigner.onDropped(compBag);
selectedComps = new Vector();
selectedComps.add(wrapperActivityDesigner);
insertActivityDesigners(selectedComps, where);
}
}
setSelected(false);
}
};
ArrowLabel endArrowLabel = new ArrowLabel() {
public void onDropped() {
Vector selectedComps = ActivityDesignerListener
.getSelectedComponents();
if (selectedComps != null) {