/[schmitzm]/branches/2.0-RC2/src/skrueger/geotools/selection/FeatureMapLayerSelectionSynchronizer.java
ViewVC logotype

Diff of /branches/2.0-RC2/src/skrueger/geotools/selection/FeatureMapLayerSelectionSynchronizer.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 414 by alfonx, Thu Sep 24 13:23:08 2009 UTC revision 415 by alfonx, Thu Sep 24 17:58:32 2009 UTC
# Line 169  public class FeatureMapLayerSelectionSyn Line 169  public class FeatureMapLayerSelectionSyn
169           */           */
170          private void changeLayerStyle(final Vector<String> newSelection) {          private void changeLayerStyle(final Vector<String> newSelection) {
171                  try {                  try {
172    //                      GTRenderer r = mapPane.getRenderer();
173    //                      if (r instanceof ShapefileRenderer) {
174    //                              ShapefileRenderer sfr = (ShapefileRenderer)r;
175    //                              sfr.setCaching(false);
176    //                      }
177    //                      
178                            
179                          Style originalStyle = mapLayer.getStyle();                          Style originalStyle = mapLayer.getStyle();
180                          if (newSelection.isEmpty()) {                          if (newSelection.isEmpty()) {
181    
# Line 244  public class FeatureMapLayerSelectionSyn Line 251  public class FeatureMapLayerSelectionSyn
251                                  // Refresh the map                                  // Refresh the map
252                                  mapPane.refresh();                                  mapPane.refresh();
253                          }                          }
254    //                      
255    //                      if (r instanceof ShapefileRenderer) {
256    //                              ShapefileRenderer sfr = (ShapefileRenderer)r;
257    //                              sfr.setCaching(true);
258    //                      }
259    
260    
261                  } catch (Exception e) {                  } catch (Exception e) {
262                          LOGGER.error("Error while trying to create a selection style", e);                          LOGGER.error("Error while trying to create a selection style", e);

Legend:
Removed from v.414  
changed lines
  Added in v.415

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26