public void onGeometryEditStart(GeometryEditStartEvent event) {
		String geometryType = service.getGeometry().getGeometryType();
		if (Geometry.LINEAR_RING.equals(geometryType) || Geometry.POLYGON.equals(geometryType)
				|| Geometry.MULTI_POLYGON.equals(geometryType)) {
			setDisabled(false);
		}
	}
public void onGeometryEditStart ( GeometryEditStartEvent event ) { String geometryType = service . getGeometry ( ) . getGeometryType ( ) ; if ( Geometry . LINEAR_RING . equals ( geometryType ) || Geometry . POLYGON . equals ( geometryType ) || Geometry . MULTI_POLYGON . equals ( geometryType ) ) { setDisabled ( false ) ; } }
------------------------------------------------------------------------