Revision 4583 trunk/extensions/extCAD/sm/PointCADTool.sm
PointCADTool.sm | ||
---|---|---|
10 | 10 |
%package com.iver.cit.gvsig.gui.cad.tools.smc |
11 | 11 |
%import com.iver.cit.gvsig.gui.cad.tools.PointCADTool |
12 | 12 |
%import java.awt.event.InputEvent |
13 |
%import com.iver.andami.PluginServices |
|
13 | 14 |
|
14 | 15 |
|
15 | 16 |
%map Point |
... | ... | |
19 | 20 |
FirstPoint |
20 | 21 |
|
21 | 22 |
Entry { |
22 |
setQuestion("PUNTO" + "\n" +
|
|
23 |
"Defina el punto");
|
|
24 |
setDescription(new String[]{"Cancelar"});
|
|
23 |
setQuestion(ctxt.getName() + "\n" +
|
|
24 |
PluginServices.getText(this,"define_point"));
|
|
25 |
setDescription(new String[]{"cancel"});
|
|
25 | 26 |
} |
26 | 27 |
Exit { |
27 | 28 |
} |
... | ... | |
30 | 31 |
|
31 | 32 |
addPoint( pointX:double,pointY:double,event:InputEvent) |
32 | 33 |
FirstPoint { |
33 |
setQuestion("Insertar punto");
|
|
34 |
setDescription(new String[]{"Cancelar"});
|
|
34 |
setQuestion(PluginServices.getText(this,"insert_point"));
|
|
35 |
setDescription(new String[]{"cancel"});
|
|
35 | 36 |
addPoint( pointX,pointY,event); |
36 | 37 |
} |
37 | 38 |
} |
... | ... | |
39 | 40 |
Default |
40 | 41 |
{ |
41 | 42 |
addOption(s:String) |
42 |
[s.equals("Cancelar")]
|
|
43 |
[s.equals(PluginServices.getText(this,"cancel"))]
|
|
43 | 44 |
FirstPoint{ |
44 | 45 |
end(); |
45 | 46 |
} |
Also available in: Unified diff