private void zoomToBounds() {
		ListGridRecord[] selection = getSelection();
		int count = selection.length;
		if (count > 0) {
			List<Feature> features = new ArrayList<Feature>();
			for (ListGridRecord lgr : selection) {
				features.add(new Feature(lgr.getAttribute(FeatureListGrid.FIELD_NAME_FEATURE_ID), featureListGrid
						.getLayer()));
			}
			mapWidget.getMapModel().zoomToFeatures(features);
		}
	}
private void zoomToBounds ( ) { ListGridRecord [ ] selection = getSelection ( ) ; int count = selection . length ; if ( count > 0 ) { List < Feature > features = new ArrayList < Feature > ( ) ; for ( ListGridRecord lgr : selection ) { features . add ( new Feature ( lgr . getAttribute ( FeatureListGrid . FIELD_NAME_FEATURE_ID ) , featureListGrid . getLayer ( ) ) ) ; } mapWidget . getMapModel ( ) . zoomToFeatures ( features ) ; } }
----------------------------------------------------------