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 |
|
|
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 |