final ToolContext context = ApplicationGISInternal.createContext(getLayer().getMap());
final CoordinateReferenceSystem crs=getLayer().getCRS( );
ReferencedEnvelope bounds = new ReferencedEnvelope(getFeature().getBounds());
double deltax=bounds.getWidth()/4;
double deltay=bounds.getHeight()/4;
bounds.expandToInclude(bounds.getMinX()-deltax, bounds.getMinY()-deltay);
bounds.expandToInclude(bounds.getMaxX()+deltax, bounds.getMaxY()+deltay);
UndoableComposite composite = new UndoableComposite();
IAction tool = ApplicationGIS.getToolManager().getToolAction("org.locationtech.udig.tools.selectionTool", "org.locationtech.udig.tool.edit.edit"); //$NON-NLS-1$ //$NON-NLS-2$
// could be null if tool.edit plug-in is not in distribution.
if( tool !=null ){