/[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 489 by alfonx, Tue Oct 20 20:04:38 2009 UTC revision 492 by alfonx, Fri Oct 23 13:49:49 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                                  StylingUtil.saveStyleToSLD(newStyle, new File(  //                              try {
292                                                  "/home/stefan/Desktop/selection.sld"));  ////                                    
293    ////                            StylingUtil.saveStyleToSLD(newStyle, new File(
294                                  // DuplicatingStyleVisitor dsv = new DuplicatingStyleVisitor();  ////                                            "/home/stefan/Desktop/selection.sld"));
295    //                              } catch (Exception e) {
296    //                              }
297    //
298    //                              // DuplicatingStyleVisitor dsv = new DuplicatingStyleVisitor();
299                                  // dsv.visit(originalStyle);                                  // dsv.visit(originalStyle);
300                                  // Style newStyle = originalStyle;                                  // Style newStyle = originalStyle;
301    
# Line 377  public class FeatureMapLayerSelectionSyn Line 381  public class FeatureMapLayerSelectionSyn
381                  if (e.getSourceObject() != this.mapPane)                  if (e.getSourceObject() != this.mapPane)
382                          return;                          return;
383    
                 FeatureSelectedEvent fse = (FeatureSelectedEvent) e;  
384    
385                  /**                  /**
386                   * Checking, that the FeatureSelectedEvent actually contains features                   * Checking, that the FeatureSelectedEvent actually contains features
387                   * from this layer                   * from this layer
388                   */                   */
389                    FeatureSelectedEvent fse = (FeatureSelectedEvent) e;
390                  final String sourceID = fse.getSourceLayer().getTitle();                  final String sourceID = fse.getSourceLayer().getTitle();
391                  final String syncForID = mapLayer.getTitle();                  final String syncForID = mapLayer.getTitle();
392                  if (sourceID != null && syncForID != null                  if (sourceID != null && syncForID != null

Legend:
Removed from v.489  
changed lines
  Added in v.492

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26