Revision 36005 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/gui/cad/CADToolAdapter.java
CADToolAdapter.java | ||
---|---|---|
17 | 17 |
import java.util.prefs.Preferences; |
18 | 18 |
|
19 | 19 |
import org.cresques.cts.IProjection; |
20 |
import org.slf4j.Logger; |
|
21 |
import org.slf4j.LoggerFactory; |
|
22 |
|
|
20 | 23 |
import org.gvsig.andami.PluginServices; |
21 | 24 |
import org.gvsig.andami.messages.NotificationManager; |
22 | 25 |
import org.gvsig.andami.ui.mdiFrame.MainFrame; |
... | ... | |
30 | 33 |
import org.gvsig.editing.layers.VectorialLayerEdited; |
31 | 34 |
import org.gvsig.fmap.dal.exception.DataException; |
32 | 35 |
import org.gvsig.fmap.dal.exception.ReadException; |
33 |
import org.gvsig.tools.dispose.DisposableIterator; |
|
34 | 36 |
import org.gvsig.fmap.dal.feature.Feature; |
35 | 37 |
import org.gvsig.fmap.dal.feature.FeatureSelection; |
36 | 38 |
import org.gvsig.fmap.dal.feature.FeatureSet; |
... | ... | |
49 | 51 |
import org.gvsig.fmap.mapcontrol.tools.BehaviorException; |
50 | 52 |
import org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior; |
51 | 53 |
import org.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener; |
54 |
import org.gvsig.tools.dispose.DisposableIterator; |
|
52 | 55 |
import org.gvsig.utils.console.JConsole; |
53 |
import org.slf4j.Logger; |
|
54 |
import org.slf4j.LoggerFactory; |
|
55 | 56 |
|
56 | 57 |
/** |
57 | 58 |
* <p> |
... | ... | |
380 | 381 |
p = getMapControl().getViewPort().toMapPoint(adjustedPoint); |
381 | 382 |
} |
382 | 383 |
|
384 |
//If the stack is empty, return |
|
385 |
if (cadToolStack.isEmpty()){ |
|
386 |
return; |
|
387 |
} |
|
388 |
|
|
383 | 389 |
if (((CADTool) cadToolStack.peek()).getVLE() == null){ |
384 | 390 |
return; |
385 | 391 |
} |
Also available in: Unified diff