if (pes.length == 1) {
DirectEditingContext con = new DirectEditingContext(
pes[0], pes[0].getGraphicsAlgorithm());
IDirectEditingFeature f =
getFeatureProvider().getDirectEditingFeature(con);
if (f != null) {
return f.canExecute(con);
}
}
return false;
}