/[schmitzm]/branches/1.0-gt2-2.6/src/skrueger/geotools/selection/FeatureMapLayerSelectionSynchronizer.java
ViewVC logotype

Diff of /branches/1.0-gt2-2.6/src/skrueger/geotools/selection/FeatureMapLayerSelectionSynchronizer.java

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

revision 99 by alfonx, Fri May 8 12:10:42 2009 UTC revision 100 by alfonx, Fri May 8 12:29:45 2009 UTC
# Line 22  import javax.swing.JTable; Line 22  import javax.swing.JTable;
22  import javax.swing.ListSelectionModel;  import javax.swing.ListSelectionModel;
23  import javax.swing.event.ListSelectionEvent;  import javax.swing.event.ListSelectionEvent;
24  import javax.swing.event.ListSelectionListener;  import javax.swing.event.ListSelectionListener;
25    import javax.swing.text.Utilities;
26    
27  import org.geotools.feature.Feature;  import org.geotools.feature.Feature;
28  import org.geotools.map.MapLayer;  import org.geotools.map.MapLayer;
# Line 129  public class FeatureMapLayerSelectionSyn Line 130  public class FeatureMapLayerSelectionSyn
130                  try {                  try {
131                          if (newSelection.isEmpty()) {                          if (newSelection.isEmpty()) {
132    
                                 LOGGER.debug("NO SELECTION");  
133                                  selectionMapStyle = styledMapLayer.getStyle();                                  selectionMapStyle = styledMapLayer.getStyle();
134                                    LOGGER.debug("NO SELECTION .. reset original style");
135                                    
136                          } else {                          } else {
137                                  LOGGER.debug("SELECTION EXISTEnT");                                  LOGGER.debug("SELECTION .. change style");
138                                  selectionMapStyle = StylingUtil                                  selectionMapStyle = StylingUtil
139                                                  .createDefaultStyle(styledMapLayer.getGeoObject());                                                  .createDefaultStyle(styledMapLayer.getGeoObject());
140                                    
141                                    selectionMapStyle = styledMapLayer.getStyle();
142                                    
143                          }                          }
144    
145                          mapLayer.setStyle(selectionMapStyle);                          mapLayer.setStyle(selectionMapStyle);

Legend:
Removed from v.99  
changed lines
  Added in v.100

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26