Re: Suche bestimmte Funktion in SourceCode
Geschrieben von couchmapper (Gast) am 30. Oktober 2013 21:03:47: [flux]
Als Antwort auf:
Suche bestimmte Funktion in SourceCode
geschrieben von
erwin6330
(Gast)
am
30. Oktober 2013 19:53:
Hallo,
wie wär's denn mit org.openstreetmap.josm.actions.mapmode.DrawAction, dort steht was von
␣␣␣␣␣␣␣if(e.getClickCount()␣>␣1␣&&␣mousePos␣!=␣null␣&&␣mousePos.equals(oldMouse Pos))␣{ //␣A␣double␣click␣equals␣"user␣clicked␣last␣node␣again,␣finish␣way" //␣Change␣draw␣tool␣only␣if␣mouse␣position␣is␣nearly␣the␣same,␣as //␣otherwise␣fast␣clicks␣will␣count␣as␣a␣double␣click finishDrawing(); return; }