Revision 12296
trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/CADToolAdapter.java | ||
---|---|---|
23 | 23 |
|
24 | 24 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
25 | 25 |
import com.iver.andami.PluginServices; |
26 |
import com.iver.andami.messages.NotificationManager; |
|
26 | 27 |
import com.iver.andami.ui.mdiFrame.MainFrame; |
27 | 28 |
import com.iver.cit.gvsig.CADExtension; |
28 | 29 |
import com.iver.cit.gvsig.EditionManager; |
29 | 30 |
import com.iver.cit.gvsig.exceptions.expansionfile.ExpansionFileReadException; |
30 | 31 |
import com.iver.cit.gvsig.fmap.MapControl; |
31 | 32 |
import com.iver.cit.gvsig.fmap.ViewPort; |
33 |
import com.iver.cit.gvsig.fmap.core.FShape; |
|
32 | 34 |
import com.iver.cit.gvsig.fmap.core.SymbologyFactory; |
33 | 35 |
import com.iver.cit.gvsig.fmap.core.symbols.ISymbol; |
34 | 36 |
import com.iver.cit.gvsig.fmap.core.v02.FConstant; |
... | ... | |
1007 | 1009 |
getGrid().setGridSizeX(dx); |
1008 | 1010 |
getGrid().setGridSizeY(dy); |
1009 | 1011 |
} |
1010 |
|
|
1012 |
/** |
|
1013 |
* Returns the type of active layer. |
|
1014 |
**/ |
|
1015 |
public int getActiveLayerType() { |
|
1016 |
int type=FShape.MULTI; |
|
1017 |
try { |
|
1018 |
type=((FLyrVect)CADExtension.getEditionManager().getActiveLayerEdited().getLayer()).getShapeType(); |
|
1019 |
} catch (ReadDriverException e) { |
|
1020 |
NotificationManager.addError(e); |
|
1021 |
} |
|
1022 |
return type; |
|
1023 |
} |
|
1011 | 1024 |
} |
Also available in: Unified diff