/[schmitzm]/branches/2.1/src/skrueger/geotools/selection/FeatureMapLayerSelectionSynchronizer.java
ViewVC logotype

Diff of /branches/2.1/src/skrueger/geotools/selection/FeatureMapLayerSelectionSynchronizer.java

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

revision 491 by alfonx, Fri Oct 23 12:57:15 2009 UTC revision 493 by mojays, Fri Oct 23 14:09:27 2009 UTC
# Line 287  public class FeatureMapLayerSelectionSyn Line 287  public class FeatureMapLayerSelectionSyn
287                                  DuplicatingStyleVisitor dsv = new DuplicatingStyleVisitor();                                  DuplicatingStyleVisitor dsv = new DuplicatingStyleVisitor();
288                                  dsv.visit(originalStyle);                                  dsv.visit(originalStyle);
289                                  Style newStyle = (Style) dsv.getCopy();                                  Style newStyle = (Style) dsv.getCopy();
290  //  
291    //SK-Debug
292  //                              try {  //                              try {
293  ////                                      ////                                    
294  ////                            StylingUtil.saveStyleToSLD(newStyle, new File(  ////                            StylingUtil.saveStyleToSLD(newStyle, new File(
295  ////                                            "/home/stefan/Desktop/selection.sld"));  ////                                            "/home/stefan/Desktop/selection.sld"));
296  //                              } catch (Exception e) {  //                              } catch (Exception e) {
297  //                              }  //                              }
298  //  
299  //                              // DuplicatingStyleVisitor dsv = new DuplicatingStyleVisitor();                                  // DuplicatingStyleVisitor dsv = new DuplicatingStyleVisitor();
300                                  // dsv.visit(originalStyle);                                  // dsv.visit(originalStyle);
301                                  // Style newStyle = originalStyle;                                  // Style newStyle = originalStyle;
302    
# Line 381  public class FeatureMapLayerSelectionSyn Line 382  public class FeatureMapLayerSelectionSyn
382                  if (e.getSourceObject() != this.mapPane)                  if (e.getSourceObject() != this.mapPane)
383                          return;                          return;
384    
                 FeatureSelectedEvent fse = (FeatureSelectedEvent) e;  
385    
386                  /**                  /**
387                   * Checking, that the FeatureSelectedEvent actually contains features                   * Checking, that the FeatureSelectedEvent actually contains features
388                   * from this layer                   * from this layer
389                   */                   */
390                    FeatureSelectedEvent fse = (FeatureSelectedEvent) e;
391                  final String sourceID = fse.getSourceLayer().getTitle();                  final String sourceID = fse.getSourceLayer().getTitle();
392                  final String syncForID = mapLayer.getTitle();                  final String syncForID = mapLayer.getTitle();
393                  if (sourceID != null && syncForID != null                  if (sourceID != null && syncForID != null

Legend:
Removed from v.491  
changed lines
  Added in v.493

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26