Revision 1477 branches/pilotoDWG/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/cad/cadTools/Linea.java
Linea.java | ||
---|---|---|
10 | 10 |
public int transition(String label){ |
11 | 11 |
switch (status){ |
12 | 12 |
|
13 |
case -1: |
|
14 |
|
|
15 |
break; |
|
16 |
|
|
17 | 13 |
case 0: |
18 | 14 |
|
19 | 15 |
if ("punto".equalsIgnoreCase(label)){ |
... | ... | |
23 | 19 |
} |
24 | 20 |
|
25 | 21 |
if ("cancel".equalsIgnoreCase(label)){ |
26 |
status = -1;
|
|
22 |
status = 4;
|
|
27 | 23 |
|
28 | 24 |
return com.iver.fsac.Automaton.AUTOMATON_FINISHED; |
29 | 25 |
} |
... | ... | |
45 | 41 |
} |
46 | 42 |
|
47 | 43 |
if ("cancel".equalsIgnoreCase(label)){ |
48 |
status = -1;
|
|
44 |
status = 4;
|
|
49 | 45 |
|
50 | 46 |
return com.iver.fsac.Automaton.AUTOMATON_FINISHED; |
51 | 47 |
} |
... | ... | |
63 | 59 |
if ("punto".equalsIgnoreCase(label)){ |
64 | 60 |
status = 4; |
65 | 61 |
|
66 |
return com.iver.fsac.Automaton.TRANSITION_SUCCESS;
|
|
62 |
return com.iver.fsac.Automaton.AUTOMATON_FINISHED;
|
|
67 | 63 |
} |
68 | 64 |
|
69 | 65 |
if ("cancel".equalsIgnoreCase(label)){ |
70 |
status = -1;
|
|
66 |
status = 4;
|
|
71 | 67 |
|
72 | 68 |
return com.iver.fsac.Automaton.AUTOMATON_FINISHED; |
73 | 69 |
} |
... | ... | |
83 | 79 |
} |
84 | 80 |
|
85 | 81 |
if ("cancel".equalsIgnoreCase(label)){ |
86 |
status = -1;
|
|
82 |
status = 4;
|
|
87 | 83 |
|
88 | 84 |
return com.iver.fsac.Automaton.AUTOMATON_FINISHED; |
89 | 85 |
} |
... | ... | |
93 | 89 |
case 4: |
94 | 90 |
|
95 | 91 |
if ("cancel".equalsIgnoreCase(label)){ |
96 |
status = -1;
|
|
92 |
status = 4;
|
|
97 | 93 |
|
98 | 94 |
return com.iver.fsac.Automaton.AUTOMATON_FINISHED; |
99 | 95 |
} |
Also available in: Unified diff