root / tags / v1_1_Build_1005 / extensions / extScripting / scripts / jython / Lib / gvsiglib.py @ 12355
History | View | Annotate | Download (1.25 KB)
1 | 6776 | jmvivo | |
---|---|---|---|
2 | import sys |
||
3 | from java.io import File |
||
4 | |||
5 | # Cuando se importa desde la consola no esta definida
|
||
6 | # la variable global gvSIG
|
||
7 | try:
|
||
8 | sys.gvSIG = gvSIG |
||
9 | except:
|
||
10 | gvSIG = sys.gvSIG |
||
11 | |||
12 | 6783 | jmvivo | SaxContentHandler = gvSIG.classForName("org.xml.sax.ContentHandler")
|
13 | 6776 | jmvivo | |
14 | 6783 | jmvivo | ShapeFactory = gvSIG.classForName("com.iver.cit.gvsig.fmap.core.ShapeFactory")
|
15 | FConstant = gvSIG.classForName("com.iver.cit.gvsig.fmap.core.v02.FConstant")
|
||
16 | FSymbol = gvSIG.classForName("com.iver.cit.gvsig.fmap.core.v02.FSymbol")
|
||
17 | FGraphic = gvSIG.classForName("com.iver.cit.gvsig.fmap.rendering.FGraphic")
|
||
18 | |||
19 | LayerFactory = gvSIG.classForName("com.iver.cit.gvsig.fmap.layers.LayerFactory")
|
||
20 | LayerCollection = gvSIG.classForName("com.iver.cit.gvsig.fmap.layers.layerOperations.LayerCollection")
|
||
21 | |||
22 | PointListener = gvSIG.classForName("com.iver.cit.gvsig.fmap.tools.Listeners.PointListener")
|
||
23 | PointBehavior = gvSIG.classForName("com.iver.cit.gvsig.fmap.tools.Behavior.PointBehavior")
|
||
24 | PointEvent = gvSIG.classForName("com.iver.cit.gvsig.fmap.tools.Events.PointEvent")
|
||
25 | |||
26 | 8765 | jjdelcerro | InfoListener = gvSIG.classForName("com.iver.cit.gvsig.project.documents.view.toolListeners.InfoListener")
|
27 | 6783 | jmvivo | |
28 | |||
29 | 6776 | jmvivo | def showMessageDialog(msg): |
30 | from javax.swing import JOptionPane |
||
31 | |||
32 | JOptionPane.showMessageDialog(None, msg) |