[Bprocessor-commit] /gl/src/net/sourceforge/bprocessor/gl/tool ExtrusionTool.java, 1.56, 1.57
Status: Pre-Alpha
Brought to you by:
henryml
|
From: rimestad <rim...@us...> - 2007-05-09 09:32:45
|
Update of /cvsroot/bprocessor//gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv821/src/net/sourceforge/bprocessor/gl/tool Modified Files: ExtrusionTool.java Log Message: added gui notice to extrude tool Index: ExtrusionTool.java =================================================================== RCS file: /cvsroot/bprocessor//gl/src/net/sourceforge/bprocessor/gl/tool/ExtrusionTool.java,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** ExtrusionTool.java 7 May 2007 13:29:48 -0000 1.56 --- ExtrusionTool.java 9 May 2007 09:32:38 -0000 1.57 *************** *** 21,24 **** --- 21,25 ---- import net.sourceforge.bprocessor.gl.view.Transformation; import net.sourceforge.bprocessor.gl.view.View; + import net.sourceforge.bprocessor.gui.GUI; import net.sourceforge.bprocessor.model.Constructor; import net.sourceforge.bprocessor.model.Edge; *************** *** 350,353 **** --- 351,356 ---- if (extrudeEdges.size() != Selection.primary().size()) { extrudeEdges = null; + GUI.getInstance().alert("Either no selection or a selection" + + " only consisting of edges are possible"); } else { startx = e.getX(); *************** *** 398,402 **** from = view.toPlaneCoords(startx, starty, dragplane); all = !e.isAltDown(); ! } } else { if (extrusion != null) { --- 401,407 ---- from = view.toPlaneCoords(startx, starty, dragplane); all = !e.isAltDown(); ! } else { ! GUI.getInstance().alert(target + " ain't extrudeable only Surfaces are"); ! } } else { if (extrusion != null) { |