Buggy code:
NLogger ( CoordinatesDialog . isZ ( ) ) && ( ( delta . Z . compareTo ( BigDecimal . ZERO ) ) != 0 ) ) { doMoveOnLine = true ; s = v2 . Z . subtract ( CoordinatesDialog . getStart ( ) . Z ) . divide ( delta . Z , mc ) ; } if ( doMoveOnLine ) { CoordinatesDialog . setVertex ( new Vertex ( v1 . X . add ( delta . X . multiply ( s ) ) , v1 . Y . add ( delta . Y . multiply ( s ) ) , v1 . Z . add ( delta . Z . multiply ( s ) ) ) ) ; CoordinatesDialog . setX ( true ) ; CoordinatesDialog . setY ( true ) ; CoordinatesDialog . setZ ( true ) ; } } vm . setXyzOrTranslateOrTransform ( CoordinatesDialog . getVertex ( ) , null , SET , CoordinatesDialog . isX ( ) , CoordinatesDialog . isY ( ) , CoordinatesDialog . isZ ( ) , ( ( isMovingAdjacentData ( ) ) || ( ( vm . getSelectedVertices ( ) . size ( ) ) == 1 ) ) , true ) ; CoordinatesDialog . setStart ( null ) ; CoordinatesDialog . setEnd ( null ) ; } regainFocus ( ) ; return ; } } regainFocus ( ) ; } } ) ; mntm_Translate [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) { @ Override public void widgetSelected ( SelectionEvent e ) { for ( OpenGLRenderer renderer : Editor3DWindow . renders ) { Composite3D c3d = renderer . getC3D ( ) ; if ( ( c3d . getLockableDatFileReference ( ) . equals ( Project . getFileToEdit ( ) ) ) && ( ! ( c3d . getLockableDatFileReference ( ) . isReadOnly ( ) ) ) ) { if ( ( new TranslateDialog ( getShell ( ) , null ) . open ( ) ) == ( IDialogConstants . OK_ID ) ) { c3d . getLockableDatFileReference ( ) . getVertexManager ( ) . addSnapshot ( ) ; c3d . getLockableDatFileReference ( ) . getVertexManager ( ) . setXyzOrTranslateOrTransform ( TranslateDialog . getOffset ( ) , null , TRANSLATE , TranslateDialog . isX ( ) , TranslateDialog . isY ( ) , TranslateDialog . isZ ( ) , isMovingAdjacentData ( ) , true ) ; } regainFocus ( ) ; return ; } } regainFocus ( ) ; } } ) ; mntm_Rotate [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) { @ Override public void widgetSelected ( SelectionEvent e ) { for ( OpenGLRenderer renderer : Editor3DWindow . renders ) { Composite3D c3d = renderer . getC3D ( ) ; if ( ( c3d . getLockableDatFileReference ( ) . equals ( Project . getFileToEdit ( ) ) ) && ( ! ( c3d . getLockableDatFileReference ( ) . isReadOnly ( ) ) ) ) { TreeSet < Vertex > clipboard = new TreeSet < Vertex > ( ) ; if ( ( VertexManager . getClipboard ( ) . size ( ) ) == 1 ) { GData vertex = VertexManager . getClipboard ( ) . get ( 0 ) ; if ( ( vertex . type ( ) ) == 0 ) { String line = vertex . toString ( ) ; line = line . replaceAll ( "\\s+" , "<seq2seq4repair_space>" ) . trim ( ) ; String [ ] data_segments = line . split ( "\\s+" ) ; if ( line . startsWith ( "0<seq2seq4repair_space>!LPE" ) ) { if ( line . startsWith ( "VERTEX<seq2seq4repair_space>" , 7 ) ) { Vector3d start = new Vector3d ( ) ; boolean numberError = false ; if ( ( data_segments . length ) == 6 ) { try { start . setX ( new BigDecimal ( data_segments [ 3 ] , Threshold . mc ) ) ; } catch ( NumberFormatException nfe ) { numberError = true ; } try { start . setY ( new BigDecimal ( data_segments [ 4 ] , Threshold . mc ) ) ; } catch ( NumberFormatException nfe ) { numberError = true ; } try { start . setZ ( new BigDecimal ( data_segments [ 5 ] , Threshold . mc ) ) ; } catch ( NumberFormatException nfe ) { numberError = true ; } } else { numberError = true ; } if ( ! numberError ) { clipboard . add ( new Vertex ( start ) ) ; } } } } } final Vertex mani = new Vertex ( c3d . getManipulator ( ) . getAccuratePosition ( ) ) ; if ( ( new RotateDialog ( getShell ( ) , null , clipboard , mani ) . open ( ) ) == ( IDialogConstants . OK_ID ) ) { c3d . getLockableDatFileReference ( ) . getVertexManager ( ) . addSnapshot ( ) ; c3d . getLockableDatFileReference ( ) . getVertexManager ( ) . setXyzOrTranslateOrTransform ( RotateDialog . getAngles ( ) , RotateDialog . getPivot ( ) , ROTATE , RotateDialog . isX ( ) , RotateDialog . isY ( ) , RotateDialog . isZ ( ) , isMovingAdjacentData ( ) , true ) ; } regainFocus ( ) ; return ; } } regainFocus ( ) ; } } ) ; mntm_Scale [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) { @ Override public void widgetSelected ( SelectionEvent e ) { for ( OpenGLRenderer renderer : Editor3DWindow . renders ) { Composite3D c3d = renderer . getC3D ( ) ; if ( ( c3d . getLockableDatFileReference ( ) . equals ( Project . getFileToEdit ( ) ) ) && ( ! ( c3d . getLockableDatFileReference ( ) . isReadOnly ( ) ) ) ) { TreeSet < Vertex > clipboard = new TreeSet < Vertex > ( ) ; if ( ( VertexManager . getClipboard ( ) . size ( ) ) == 1 ) { GData vertex = VertexManager . getClipboard ( ) . get ( 0 ) ; if ( ( vertex . type ( ) ) == 0 ) { String line = vertex . toString ( ) ; line = line . replaceAll ( "\\s+" , "<seq2seq4repair_space>" ) . trim ( ) ; String [ ] data_segments = line . split ( "\\s+" ) ; if ( line . startsWith ( "0<seq2seq4repair_space>!LPE" ) ) { if ( line . startsWith ( "VERTEX<seq2seq4repair_space>" , 7 ) ) { Vector3d start = new Vector3d ( ) ; boolean numberError = false ; if ( ( data_segments . length ) == 6 ) { try { start . setX ( new BigDecimal ( data_segments [ 3 ] , Threshold . mc ) ) ; } catch ( NumberFormatException nfe ) { numberError = true ; } try { start . setY ( new BigDecimal ( data_segments [ 4 ] , Threshold . mc ) ) ; } catch ( NumberFormatException nfe ) { numberError = true ; } try { start . setZ ( new BigDecimal ( data_segments [ 5 ] , Threshold . mc ) ) ; } catch ( NumberFormatException nfe ) { numberError = true ; } } else { numberError = true ; } if ( ! numberError ) { clipboard . add ( new Vertex ( start ) ) ; } } } } } final Vertex mani = new Vertex ( c3d . getManipulator ( ) . getAccuratePosition ( ) ) ; if ( ( new ScaleDialog ( getShell ( ) , null , clipboard , mani ) . open ( ) ) == ( IDialogConstants . OK_ID ) ) { c3d . getLockableDatFileReference ( ) . getVertexManager ( ) . addSnapshot ( ) ; c3d . getLockableDatFileReference ( ) . getVertexManager ( ) . setXyzOrTranslateOrTransform ( ScaleDialog . getScaleFactors ( ) , ScaleDialog . getPivot ( ) , SCALE , ScaleDialog . isX ( ) , ScaleDialog . isY ( ) , ScaleDialog . isZ ( ) , isMovingAdjacentData ( ) , true ) ; } regainFocus ( ) ; return ; } } regainFocus ( ) ; } } ) ; mntm_Edger2 [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) { @ Override public void widgetSelected ( SelectionEvent e ) { for ( OpenGLRenderer renderer : Editor3DWindow . renders ) { Composite3D c3d = renderer . getC3D ( ) ; if ( ( c3d . getLockableDatFileReference ( ) . equals ( Project . getFileToEdit ( ) ) ) && ( ! ( c3d . getLockableDatFileReference ( ) . isReadOnly ( ) ) ) ) { VertexManager vm = c3d . getLockableDatFileReference ( ) . getVertexManager ( ) ; if ( ( new org . nschmidt . ldparteditor . dialogs . edger2 . EdgerDialog ( getShell ( ) , es ) . open ( ) ) == ( IDialogConstants . OK_ID ) ) { vm . addSnapshot ( ) ; vm . addEdges ( es ) ; } regainFocus ( ) ; return ; } } regainFocus ( ) ; } } ) ; mntm_Rectifier [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) { @ Override public void widgetSelected ( SelectionEvent e ) { for ( OpenGLRenderer renderer : Editor3DWindow . renders ) { Composite3D c3d = renderer . getC3D ( ) ; if ( ( c3d . getLockableDatFileReference ( ) . equals ( Project . getFileToEdit ( ) ) ) && ( ! ( c3d . getLockableDatFileReference ( ) . isReadOnly ( ) ) ) ) { VertexManager vm = c3d . getLockableDatFileReference ( ) . getVertexManager ( ) ; if ( ( new org . nschmidt . ldparteditor . dialogs . rectifier . RectifierDialog ( getShell ( ) , rs ) . open ( ) ) == ( IDialogConstants . OK_ID ) ) { vm . addSnapshot ( ) ; vm . rectify ( rs , true , true ) ; } regainFocus ( ) ; return ; } } regainFocus ( ) ; } } ) ; mntm_Isecalc [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) { @ Override public void widgetSelected ( SelectionEvent e ) { for ( OpenGLRenderer renderer : Editor3DWindow . renders ) { Composite3D c3d = renderer . getC3D ( ) ; if ( ( c3d . getLockableDatFileReference ( ) . equals ( Project . getFileToEdit ( ) ) ) && ( ! ( c3d . getLockableDatFileReference ( ) . isReadOnly ( ) ) ) ) { VertexManager vm = c3d . getLockableDatFileReference ( ) . getVertexManager ( ) ; if ( ( new org . nschmidt . ldparteditor . dialogs . isecalc . IsecalcDialog ( getShell ( ) , is ) . open ( ) ) == ( IDialogConstants . OK_ID ) ) { vm . addSnapshot ( ) ; vm . isecalc ( is ) ; } regainFocus ( ) ; return ; } } regainFocus ( ) ; } } ) ; mntm_SlicerPro [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) { @ Override public void widgetSelected ( SelectionEvent e ) { for ( OpenGLRenderer renderer : Editor3DWindow . renders ) { Composite3D c3d = renderer . getC3D ( ) ; if ( ( c3d . getLockableDatFileReference ( ) . equals ( Project . getFileToEdit ( ) ) ) && ( ! ( c3d . getLockableDatFileReference ( ) . isReadOnly ( ) ) ) ) { VertexManager vm = c3d . getLockableDatFileReference ( ) . getVertexManager ( ) ; if ( ( new org . nschmidt . ldparteditor . dialogs . slicerpro . SlicerProDialog ( getShell ( ) , ss ) . open ( ) ) == ( IDialogConstants . OK_ID ) ) { vm . addSnapshot ( ) ; vm . slicerpro ( ss ) ; } regainFocus ( ) ; return ; } } regainFocus ( ) ; } } ) ; mntm_Intersector [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) { @ Override public void widgetSelected ( SelectionEvent e ) { for ( OpenGLRenderer renderer : Editor3DWindow . renders ) { Composite3D c3d = renderer . getC3D ( ) ; if ( ( c3d . getLockableDatFileReference ( ) . equals ( Project . getFileToEdit ( ) ) ) && ( ! ( c3d . getLockableDatFileReference ( ) . isReadOnly ( ) ) ) ) { VertexManager vm = c3d . getLockableDatFileReference ( ) . getVertexManager ( ) ; if ( ( new org . nschmidt . ldparteditor . dialogs . intersector . IntersectorDialog ( getShell ( ) , ins ) . open ( ) ) == ( IDialogConstants . OK_ID ) ) { vm . addSnapshot ( ) ; vm . intersector ( ins , true ) ; } regainFocus ( ) ; return ; } } regainFocus ( ) ; } } ) ; mntm_Lines2Pattern [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) { @ Override public void widgetSelected ( SelectionEvent e ) { for ( OpenGLRenderer renderer : Editor3DWindow . renders ) { Composite3D c3d = renderer . getC3D ( ) ; if ( ( c3d . getLockableDatFileReference ( ) . equals ( Project . getFileToEdit ( ) ) ) && ( ! ( c3d . getLockableDatFileReference ( ) . isReadOnly ( ) ) ) ) { VertexManager vm = c3d . getLockableDatFileReference ( ) . getVertexManager ( ) ; if ( ( new org . nschmidt . ldparteditor . dialogs . lines2pattern . Lines2PatternDialog ( getShell ( ) ) . open ( ) ) == ( IDialogConstants . OK_ID ) ) { vm . addSnapshot ( ) ; vm . lines2pattern ( ) ; } regainFocus ( ) ; return ; } } regainFocus ( ) ; } } ) ; mntm_PathTruder [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) { @ Override public void widgetSelected ( SelectionEvent e ) { for ( OpenGLRenderer renderer : Editor3DWindow . renders ) { Composite3D c3d = renderer . getC3D ( ) ; if ( ( c3d . getLockableDatFileReference ( ) . equals ( Project . getFileToEdit ( ) ) ) && ( ! ( c3d . getLockableDatFileReference ( ) . isReadOnly ( ) ) ) ) { VertexManager vm = c3d . getLockableDatFileReference ( ) . getVertexManager ( ) ; if ( ( new org . nschmidt . ldparteditor . dialogs . pathtruder . PathTruderDialog ( getShell ( ) , ps ) . open ( ) ) == ( IDialogConstants . OK_ID ) ) { vm . addSnapshot ( ) ; vm . pathTruder ( ps ) ; } regainFocus ( ) ; return ; } } regainFocus ( ) ; } } ) ; mntm_SymSplitter [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) { @ Override public void widgetSelected ( SelectionEvent e ) { for ( OpenGLRenderer renderer : Editor3DWindow . renders ) { Composite3D c3d = renderer . getC3D ( ) ; if ( ( c3d . getLockableDatFileReference ( ) . equals ( Project . getFileToEdit ( ) ) ) && ( ! ( c3d . getLockableDatFileReference ( ) . isReadOnly ( ) ) ) ) { VertexManager vm = c3d . getLockableDatFileReference ( ) . getVertexManager ( ) ; if ( ( new org . nschmidt . ldparteditor . dialogs . symsplitter . SymSplitterDialog ( getShell ( ) , sims ) . open ( ) ) == ( IDialogConstants . OK_ID ) ) { vm . addSnapshot ( ) ; vm . symSplitter ( sims ) ; } regainFocus ( ) ; return ; } } regainFocus ( ) ; } } ) ; mntm_Unificator [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) { @ Override public void widgetSelected ( SelectionEvent e ) { for ( OpenGLRenderer renderer : Editor3DWindow . renders ) { Composite3D c3d = renderer . getC3D ( ) ; if ( ( c3d . getLockableDatFileReference ( ) . equals ( Project . getFileToEdit ( ) ) ) && ( ! ( c3d . getLockableDatFileReference ( ) . isReadOnly ( ) ) ) ) { VertexManager vm = c3d . getLockableDatFileReference ( ) . getVertexManager ( ) ; if ( ( new org . nschmidt . ldparteditor . dialogs . unificator . UnificatorDialog ( getShell ( ) , us ) . open ( ) ) == ( IDialogConstants . OK_ID ) ) { vm . addSnapshot ( ) ; vm . unificator ( us ) ; } regainFocus ( ) ; return ; } } regainFocus ( ) ; } } ) ; mntm_RingsAndCones [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) { @ Override public void widgetSelected ( SelectionEvent e ) { for ( OpenGLRenderer renderer : Editor3DWindow . renders ) { Composite3D c3d = renderer . getC3D ( ) ; if ( ( c3d . getLockableDatFileReference ( ) . equals ( Project . getFileToEdit ( ) ) ) && ( ! ( c3d . getLockableDatFileReference ( ) . isReadOnly ( ) ) ) ) { if ( ( new org . nschmidt . ldparteditor . dialogs . ringsandcones . RingsAndConesDialog ( getShell ( ) , ris ) . open ( ) ) == ( IDialogConstants . OK_ID ) ) { c3d . getLockableDatFileReference ( ) . getVertexManager ( ) . addSnapshot ( ) ; RingsAndCones . solve ( Editor3DWindow . getWindow ( ) . getShell ( ) , c3d . getLockableDatFileReference ( ) , cmp_Primitives [ 0 ] . getPrimitives ( ) , ris , true ) ; } regainFocus ( ) ; return ; } } regainFocus ( ) ; } } ) ; mntm_TJunctionFinder [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) { @ Override public void widgetSelected ( SelectionEvent e ) { for ( OpenGLRenderer renderer : Editor3DWindow . renders ) { Composite3D c3d = renderer . getC3D ( ) ; DatFile df = c3d . getLockableDatFileReference ( ) ; if ( ( df . equals ( Project . getFileToEdit ( ) ) ) && ( ! ( df . isReadOnly ( ) ) ) ) { if ( ( new org . nschmidt . ldparteditor . dialogs . tjunction . TJunctionDialog ( getShell ( ) , tjs ) . open ( ) ) == ( IDialogConstants . OK_ID ) ) { VertexManager vm = df . getVertexManager ( ) ; vm . addSnapshot ( ) ; vm . fixTjunctions ( ( ( tjs . getMode ( ) ) == 0 ) ) ; } regainFocus ( ) ; return ; } } regainFocus ( ) ; } } ) ; mntm_MeshReducer [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) { @ Override public void widgetSelected ( SelectionEvent e ) { for ( OpenGLRenderer renderer : Editor3DWindow . renders ) { Composite3D c3d = renderer . getC3D ( ) ; DatFile df = c3d . getLockableDatFileReference ( ) ; if ( ( df . equals ( Project . getFileToEdit ( ) ) ) && ( ! ( df . isReadOnly ( ) ) ) ) { VertexManager vm = df . getVertexManager ( ) ; vm . addSnapshot ( ) ; vm . meshReduce ( ) ; regainFocus ( ) ; return ; } } regainFocus ( ) ; } } ) ; mntm_Txt2Dat [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) { @ Override public void widgetSelected ( SelectionEvent e ) { for ( OpenGLRenderer renderer : Editor3DWindow . renders ) { Composite3D c3d = renderer . getC3D ( ) ; if ( c3d . getLockableDatFileReference ( ) . equals ( Project . getFileToEdit ( ) ) ) { DatFile df = c3d . getLockableDatFileReference ( ) ; if ( df . isReadOnly ( ) ) { regainFocus ( ) ; return ; } VertexManager vm = df . getVertexManager ( ) ; vm . addSnapshot ( ) ; if ( ( ( new org . nschmidt . ldparteditor . dialogs . txt2dat . Txt2DatDialog ( getShell ( ) , ts ) . open ( ) ) == ( IDialogConstants . OK_ID ) ) && ( ! ( ts . getText ( ) . trim ( ) . isEmpty ( ) ) ) ) { Font myFont ; if ( ( ts . getFontData ( ) ) == null ) { myFont = new Font ( MONOSPACE . getFontData ( ) [ 0 ] . getName ( ) , Font . PLAIN , 32 ) ; } else { FontData fd = ts . getFontData ( ) ; int style = 0 ; final int c2 = ( SWT . BOLD ) | ( SWT . ITALIC ) ; switch ( fd . getStyle ( ) ) { case c2 : style = ( Font . BOLD ) | ( Font . ITALIC ) ; break ; case SWT . BOLD : style = Font . BOLD ; break ; case SWT . ITALIC : style = Font . ITALIC ; break ; case SWT . NORMAL : style = Font . PLAIN ; break ; } myFont = new Font ( fd . getName ( ) , style , fd . getHeight ( ) ) ; } GData anchorData = df . getDrawChainTail ( ) ; int lineNumber = df . getDrawPerLine_NOCLONE ( ) . getKey ( anchorData ) ; Set < GData > triangleSet = TextTriangulator . triangulateText ( myFont , ts . getText ( ) . trim ( ) , ts . getFlatness ( ) . doubleValue ( ) , ts . getInterpolateFlatness ( ) . doubleValue ( ) , DUMMY_REFERENCE , df , ts . getFontHeight ( ) . intValue ( ) , ts . getDeltaAngle ( ) . doubleValue ( ) ) ; for ( GData gda3 : triangleSet ) { lineNumber ++ ; df . getDrawPerLine_NOCLONE ( ) . put ( lineNumber , gda3 ) ; GData gdata = gda3 ; anchorData . setNext ( gda3 ) ; anchorData = gdata ; } anchorData . setNext ( null ) ; df . setDrawChainTail ( anchorData ) ; vm . setModified ( true , true ) ; regainFocus ( ) ; return ; } } } regainFocus ( ) ; } } ) ; mntm_ResetSettingsOnRestart [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) { @ Override public void widgetSelected ( SelectionEvent e ) { MessageBox messageBox = new MessageBox ( getShell ( ) , ( ( ( SWT . ICON_WARNING ) | ( SWT . OK ) ) | ( SWT . CANCEL ) ) ) ; messageBox . setText ( DIALOG_Warning ) ; messageBox . setMessage ( E3D_DeleteConfig ) ; int result = messageBox . open ( ) ; if ( result == ( SWT . CANCEL ) ) { regainFocus ( ) ; return ; } WorkbenchManager . getUserSettingState ( ) . setResetOnStart ( true ) ; regainFocus ( ) ; } } ) ; <START_BUG> mntm_CustomiseKeys [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) { <END_BUG>

Fix:
mntm_Options [ 0 ] . addSelectionListener ( new SelectionAdapter ( ) {