Revision 4223
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrVect.java | ||
---|---|---|
55 | 55 |
import com.hardcode.gdbms.engine.instruction.FieldNotFoundException; |
56 | 56 |
import com.iver.cit.gvsig.fmap.DriverException; |
57 | 57 |
import com.iver.cit.gvsig.fmap.ViewPort; |
58 |
import com.iver.cit.gvsig.fmap.MapControl.CancelDraw; |
|
58 | 59 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
59 | 60 |
import com.iver.cit.gvsig.fmap.drivers.BoundedShapes; |
60 | 61 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
... | ... | |
352 | 353 |
Strategy s = StrategyManager.getStrategy(this); |
353 | 354 |
s.process(visitor); |
354 | 355 |
} |
355 |
|
|
356 |
|
|
356 | 357 |
/** |
357 | 358 |
* @see com.iver.cit.gvsig.fmap.layers.layerOperations.VectorialData#process(com.iver.cit.gvsig.fmap.operations.strategies.FeatureVisitor, Rectangle2D) |
358 | 359 |
*/ |
... | ... | |
361 | 362 |
Strategy s = StrategyManager.getStrategy(this); |
362 | 363 |
s.process(visitor, rect); |
363 | 364 |
} |
364 |
|
|
365 |
|
|
366 | 365 |
|
366 |
|
|
367 |
|
|
367 | 368 |
/** |
368 | 369 |
* @see com.iver.cit.gvsig.fmap.layers.CommonOperations#setSelection(com.iver.cit.gvsig.fmap.operations.selection.VectorialSubSet) |
369 | 370 |
*/ |
... | ... | |
784 | 785 |
// TODO: Qu? pasa si hay m?s tipos de adapters? |
785 | 786 |
if (getSource() instanceof VectorialDBAdapter) |
786 | 787 |
{ |
787 |
vea = new VectorialEditableDBAdapter(); |
|
788 |
vea = new VectorialEditableDBAdapter(this);
|
|
788 | 789 |
} |
789 | 790 |
else |
790 | 791 |
{ |
791 |
vea = new VectorialEditableAdapter(); |
|
792 |
vea = new VectorialEditableAdapter(this);
|
|
792 | 793 |
} |
793 | 794 |
vea.setOriginalVectorialAdapter(getSource()); |
794 | 795 |
try{ |
795 |
vea.startEdition();
|
|
796 |
vea.startEdition(); |
|
796 | 797 |
}catch (EditionException e) { |
797 | 798 |
e.printStackTrace(); |
798 | 799 |
} |
799 | 800 |
setSource(vea); |
800 |
|
|
801 |
getRecordset().setSelectionSupport(vea.getOriginalAdapter().getRecordset().getSelectionSupport()); |
|
802 |
|
|
801 | 803 |
} |
802 | 804 |
else |
803 | 805 |
{ |
... | ... | |
805 | 807 |
setSource(vea.getOriginalAdapter()); |
806 | 808 |
} |
807 | 809 |
callEditionChanged(LayerEvent.createEditionChangedEvent(this, "edition")); |
808 |
|
|
810 |
|
|
809 | 811 |
} |
810 | 812 |
|
811 | 813 |
/*public SelectionSupport getSelectionSupport() { |
Also available in: Unified diff