private SummaryData abstractData;
private SummaryControl summaryControl;
@Override
protected Control createContents( Composite parent ) {
final Map map = (Map) getElement();
Envelope bounds;
bounds = map.getBounds(ProgressManager.instance().get());
final List<SummaryData> data = new ArrayList<SummaryData>();
String name = map.getName();
nameData = new SummaryData(Messages.LayerSummary_name, name==null?"":name); //$NON-NLS-1$
nameData.setModifier(new NameModifier());
data.add(nameData);
newName=oldName=nameData.getInfo();
String abstract1 = map.getAbstract();
abstractData = new SummaryData(Messages.MapSummary_abstract, abstract1==null?"":abstract1); //$NON-NLS-1$
abstractData.setModifier(new AbstractModifier());
data.add(abstractData);
newAbstract=oldAbstract=abstractData.getInfo();
data.add(new SummaryData(Messages.LayerSummary_id, map.getID()));
data.add(new SummaryData(Messages.MapSummary_mapBounds, bounds == null
? Messages.LayerSummary_unknownBounds
: LayerSummary.parseBounds(bounds)));
data.add(new SummaryData(Messages.MapSummary_viewportBounds, LayerSummary.parseBounds(map
.getViewportModel().getBounds())));
summaryControl = new SummaryControl(data);
return summaryControl.createControl(parent);
}