private SummaryControl summaryControl;
private String oldName;
@Override
protected Control createContents( Composite parent ) {
final Layer layer = (Layer) getElement();
final CoordinateReferenceSystem layerCRS = layer.getCRS();
ReferencedEnvelope bounds = layer.getBounds(ProgressManager.instance().get(), layerCRS);
final List<SummaryData> data=new ArrayList<SummaryData>();
String name = layer.getName();
nameData=new SummaryData(Messages.LayerSummary_name, name==null?"":name); //$NON-NLS-1$
nameData.setModifier(new NameModifier());
data.add(nameData);
newName=oldName=nameData.getInfo();
data.add(new SummaryData(Messages.LayerSummary_id,layer.getID()));
data.add(new SummaryData(Messages.LayerSummary_bounds, bounds==null?Messages.LayerSummary_unknownBounds:parseBounds(bounds)));
data.add(new SummaryData(Messages.LayerSummary_selection,layer.getFilter()));
data.add(new SummaryData(Messages.LayerSummary_status, layer.getStatusMessage()));
if ( layer.getSchema()!=null ){
SimpleFeatureType schema = layer.getSchema();
SummaryData schemaData=new SummaryData(Messages.LayerSummary_featureType, schema.getName().getLocalPart());
SummaryData[] children=new SummaryData[schema.getAttributeCount()];
for( int i = 0; i < children.length; i++ ) {
AttributeDescriptor attributeType = schema.getDescriptor(i);