Revision 45402
branches/org.gvsig.desktop-cvsgis1/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.fmap.control/src/main/java/org/gvsig/fmap/mapcontrol/tools/PointSelectionListenerUniqueSelectPanel.java | ||
---|---|---|
1 |
/* |
|
2 |
* To change this license header, choose License Headers in Project Properties. |
|
3 |
* To change this template file, choose Tools | Templates |
|
4 |
* and open the template in the editor. |
|
5 |
*/ |
|
6 | 1 |
package org.gvsig.fmap.mapcontrol.tools; |
7 | 2 |
|
8 | 3 |
import java.util.ArrayList; |
... | ... | |
50 | 45 |
return; |
51 | 46 |
} |
52 | 47 |
FeatureAttributeDescriptor[] descriptors = featureType.getAttributeDescriptors(); |
53 |
List<String> columnNames = new ArrayList<String>();
|
|
48 |
List<String> columnNames = new ArrayList<>(); |
|
54 | 49 |
for (FeatureAttributeDescriptor descriptor : descriptors) { |
55 | 50 |
columnNames.add(descriptor.getName()); |
56 | 51 |
} |
57 | 52 |
|
58 |
List<Feature> posibleListSelection = new ArrayList<Feature>();
|
|
53 |
List<Feature> posibleListSelection = new ArrayList<>(); |
|
59 | 54 |
for (Feature feature : posibleSelection) { |
60 | 55 |
posibleListSelection.add(feature); |
61 | 56 |
} |
... | ... | |
70 | 65 |
public List<Feature> getSelectedFeatures() { |
71 | 66 |
if (this.simpleTableModel!=null) { |
72 | 67 |
int[] selectedRows = this.tblSelection.getSelectedRows(); |
73 |
ArrayList<Feature> selectedFeatures = new ArrayList<Feature>();
|
|
68 |
List<Feature> selectedFeatures = new ArrayList<>();
|
|
74 | 69 |
for (int selectedRow : selectedRows) { |
75 | 70 |
Feature feature = this.simpleTableModel.get(selectedRow); |
76 | 71 |
selectedFeatures.add(feature); |
Also available in: Unified diff