IMap map = ApplicationGIS.getActiveMap();
if( map==ApplicationGIS.NO_MAP ){
return;
}
IEditManager editManager = map.getEditManager();
if( editManager == null ){
return;
}
ILayer selectedLayer = editManager.getSelectedLayer();
if( selectedLayer == null ){
return;
}
SimpleFeatureType schema = selectedLayer.getSchema();
if( schema ==null ){