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 ){
tool.run();
}
NavCommand zoom = context.getNavigationFactory().createSetViewportBBoxCommand(
bounds, crs);
context.sendASyncCommand(zoom);
composite.getCommands().add(context.getSelectionFactory().createFIDSelectCommand(getLayer(),getFeature()));
composite.getCommands().add(context.getEditFactory().createSetEditFeatureCommand(getFeature(), getLayer()));
context.sendASyncCommand(composite);