Revision 1573 branches/pilotoDWG/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrVect.java
FLyrVect.java | ||
---|---|---|
155 | 155 |
public EditableFeatureSource startEdition() throws EditionException { |
156 | 156 |
FileEditableFeatureSource fefs = new FileEditableFeatureSource((VectorialFileAdapter) source); |
157 | 157 |
MemoryExpansionFile mef = new MemoryExpansionFile(); |
158 |
efs = new EditableFeatureSourceProxy(new DefaultEditableFeatureSource(mef,
|
|
159 |
fefs)); |
|
158 |
efs = new DefaultEditableFeatureSource(mef, |
|
159 |
fefs,selectionSupport.getSelection());
|
|
160 | 160 |
|
161 | 161 |
efs.startEdition(); |
162 | 162 |
|
... | ... | |
174 | 174 |
* @param listener SelectionListener. |
175 | 175 |
*/ |
176 | 176 |
public void addSelectionListener(SelectionListener listener) { |
177 |
if (efs!=null) |
|
177 | 178 |
selectionSupport.addSelectionListener(listener); |
178 | 179 |
} |
179 | 180 |
|
Also available in: Unified diff