Revision 4583 trunk/extensions/extCAD/sm/CopyCADTool.sm
CopyCADTool.sm | ||
---|---|---|
10 | 10 |
%package com.iver.cit.gvsig.gui.cad.tools.smc |
11 | 11 |
%import com.iver.cit.gvsig.gui.cad.tools.CopyCADTool |
12 | 12 |
%import java.awt.event.InputEvent |
13 |
%import com.iver.andami.PluginServices |
|
13 | 14 |
|
14 | 15 |
%map Copy |
15 | 16 |
%% |
... | ... | |
18 | 19 |
FirstPointToMove |
19 | 20 |
Entry { |
20 | 21 |
selection(); |
21 |
setQuestion("COPIAR" + "\n" +
|
|
22 |
"Precisar punto de desplazamiento");
|
|
23 |
setDescription(new String[]{"Cancelar"});
|
|
22 |
setQuestion(ctxt.getName() + "\n" +
|
|
23 |
PluginServices.getText(this,"insert_point_move"));
|
|
24 |
setDescription(new String[]{"cancel"});
|
|
24 | 25 |
|
25 | 26 |
} |
26 | 27 |
Exit{ |
... | ... | |
29 | 30 |
{ |
30 | 31 |
addPoint( pointX:double,pointY:double,event:InputEvent) |
31 | 32 |
SecondPointToMove { |
32 |
setQuestion("Precisar segundo punto del desplazamiento");
|
|
33 |
setDescription(new String[]{"Cancelar"});
|
|
33 |
setQuestion(PluginServices.getText(this,"insert_second_point_move"));
|
|
34 |
setDescription(new String[]{"cancel"});
|
|
34 | 35 |
addPoint( pointX,pointY,event); |
35 | 36 |
} |
36 | 37 |
} |
37 | 38 |
SecondPointToMove{ |
38 | 39 |
addPoint( pointX:double,pointY:double,event:InputEvent) |
39 | 40 |
FirstPointToMove { |
40 |
setDescription(new String[]{"Cancelar"});
|
|
41 |
setDescription(new String[]{"cancel"});
|
|
41 | 42 |
addPoint( pointX,pointY,event); |
42 | 43 |
end(); |
43 | 44 |
refresh(); |
... | ... | |
47 | 48 |
Default |
48 | 49 |
{ |
49 | 50 |
addOption(s:String) |
50 |
[s.equals("Cancelar")]
|
|
51 |
[s.equals(PluginServices.getText(this,"cancel"))]
|
|
51 | 52 |
FirstPointToMove{ |
52 | 53 |
end(); |
53 | 54 |
} |
Also available in: Unified diff