Revision 4583 trunk/extensions/extCAD/sm/ArcCADTool.sm
ArcCADTool.sm | ||
---|---|---|
10 | 10 |
%package com.iver.cit.gvsig.gui.cad.tools.smc |
11 | 11 |
%import com.iver.cit.gvsig.gui.cad.tools.ArcCADTool |
12 | 12 |
%import java.awt.event.InputEvent |
13 |
%import com.iver.andami.PluginServices |
|
13 | 14 |
|
14 | 15 |
%map Arc |
15 | 16 |
%% |
... | ... | |
18 | 19 |
FirstPoint |
19 | 20 |
|
20 | 21 |
Entry { |
21 |
setQuestion("ARCO" + "\n"+
|
|
22 |
"Insertar primer punto");
|
|
23 |
setDescription(new String[]{"Cancelar"});
|
|
22 |
setQuestion(ctxt.getName() + "\n"+
|
|
23 |
PluginServices.getText(this,"insert_first_point"));
|
|
24 |
setDescription(new String[]{"cancel"});
|
|
24 | 25 |
} |
25 | 26 |
Exit{ |
26 | 27 |
} |
... | ... | |
28 | 29 |
{ |
29 | 30 |
addPoint( pointX:double,pointY:double,event:InputEvent) |
30 | 31 |
SecondPoint { |
31 |
setQuestion("Insertar segundo punto");
|
|
32 |
setDescription(new String[]{"Cancelar"});
|
|
32 |
setQuestion(PluginServices.getText(this,"insert_second_point"));
|
|
33 |
setDescription(new String[]{"cancel"});
|
|
33 | 34 |
addPoint( pointX,pointY,event); |
34 | 35 |
} |
35 | 36 |
|
... | ... | |
37 | 38 |
SecondPoint{ |
38 | 39 |
addPoint( pointX:double,pointY:double,event:InputEvent) |
39 | 40 |
ThirdPoint { |
40 |
setQuestion("Insertar ultimo punto");
|
|
41 |
setDescription(new String[]{"Cancelar"});
|
|
41 |
setQuestion(PluginServices.getText(this,"insert_last_point"));
|
|
42 |
setDescription(new String[]{"cancel"});
|
|
42 | 43 |
addPoint( pointX,pointY,event); |
43 | 44 |
} |
44 | 45 |
} |
... | ... | |
53 | 54 |
Default |
54 | 55 |
{ |
55 | 56 |
addOption(s:String) |
56 |
[s.equals("Cancelar")]
|
|
57 |
[s.equals(PluginServices.getText(this,"cancel"))]
|
|
57 | 58 |
FirstPoint{ |
58 | 59 |
end(); |
59 | 60 |
} |
Also available in: Unified diff