Revision 1729 branches/gvSIG_CAD_Layout_version/applications/appgvSIG/src/com/iver/cit/gvsig/gui/cad/automaton/Escalar.java

View differences:

Escalar.java
49 49
					return com.iver.fsac.Automaton.TRANSITION_SUCCESS;
50 50
				}
51 51
				
52
				if ("".equalsIgnoreCase(label)){
53
					previousStatus = status;
54
					status = 4;
55
					
56
					return com.iver.fsac.Automaton.TRANSITION_SUCCESS;
57
				}
58
				
52 59
				if ("cancel".equalsIgnoreCase(label)){
53 60
					previousStatus = status;
54 61
					status = -1;
......
80 87
				
81 88
				break;
82 89
		
90
			case 4:
91
				
92
				if ("cancel".equalsIgnoreCase(label)){
93
					previousStatus = status;
94
					status = -1;
95
					
96
					return com.iver.fsac.Automaton.AUTOMATON_FINISHED;
97
				}
98
				
99
				break;
100
		
83 101
		}
84 102
		
85 103
		return com.iver.fsac.Automaton.TRANSITION_FAILED;
......
115 133
			return "".indexOf(c) != -1;
116 134
		}
117 135
		
136
		if (status == 4){
137
			return "".indexOf(c) != -1;
138
		}
118 139
		
140
		
119 141
		return false;
120 142
	}
121 143
	
......
130 152
		}
131 153
		
132 154
		if (status == 1){
133
			return new String[]{"punto", "numero", "cancel"};
155
			return new String[]{"punto", "numero", "", "cancel"};
134 156
		}
135 157
		
136 158
		if (status == 2){
......
141 163
			return new String[]{"cancel"};
142 164
		}
143 165
		
166
		if (status == 4){
167
			return new String[]{"cancel"};
168
		}
144 169
		
170
		
145 171
		throw new RuntimeException("Bug!");
146 172
	}
147 173
	
......
156 182
		}
157 183
		
158 184
		if (status == 1){
159
			return new String[]{null, null, "Cancelar"};
185
			return new String[]{null, null, null, "Cancelar"};
160 186
		}
161 187
		
162 188
		if (status == 2){
......
167 193
			return new String[]{"Cancelar"};
168 194
		}
169 195
		
196
		if (status == 4){
197
			return new String[]{"Cancelar"};
198
		}
170 199
		
200
		
171 201
		throw new RuntimeException("Bug!");
172 202
	}
173 203
}

Also available in: Unified diff