Revision 5730 trunk/extensions/extCAD/sm/PolygonCADTool.sm

View differences:

PolygonCADTool.sm
28 28

  
29 29
	{
30 30
		addValue(d:double)
31
			[d<3]
32
			NumberOrCenterPoint{
33
				throwValueException(PluginServices.getText(this,"num_lados_insuficiente"),d);
34
			}
35
		addValue(d:double)
36
			[d>2]
31 37
			CenterPoint {
32 38
				setQuestion(PluginServices.getText(this,"insert_central_point_polygon"));
33 39
				setDescription(new String[]{"cancel"});
......
87 93
		NumberOrCenterPoint{
88 94
			end();
89 95
			}
96
	addOption(s:String)
97
		NumberOrCenterPoint{
98
			throwOptionException(PluginServices.getText(this,"incorrect_option"),s);
99
			}
100
	addValue(d:double)
101
		NumberOrCenterPoint{
102
			throwValueException(PluginServices.getText(this,"incorrect_value"),d);
103
			}
104
	addPoint(pointX:double,pointY:double,event:InputEvent)
105
		NumberOrCenterPoint{
106
			throwPointException(PluginServices.getText(this,"incorrect_point"),pointX,pointY);
107
			}
90 108
}
91 109
%%

Also available in: Unified diff