protected boolean removePositionablePoint(PositionablePoint o){
  if (o.getConnect1() != null || o.getConnect2() != null) {
    if (!noWarnPositionablePoint) {
      int selectedValue=JOptionPane.showOptionDialog(this,rb.getString("Question2"),Bundle.getMessage("WarningTitle"),JOptionPane.YES_NO_CANCEL_OPTION,JOptionPane.QUESTION_MESSAGE,null,new Object[]{Bundle.getMessage("ButtonYes"),Bundle.getMessage("ButtonNo"),rb.getString("ButtonYesPlus")},Bundle.getMessage("ButtonNo"));
      if (selectedValue == 1) {
        return (false);
      }
      if (selectedValue == 2) {
        noWarnPositionablePoint=true;
      }
    }
    if (selectedObject == o) {
      selectedObject=null;
    }
    if (prevSelectedObject == o) {
      prevSelectedObject=null;
    }
    TrackSegment t=o.getConnect1();
    if (t != null) {
      removeTrackSegment(t);
    }
    t=o.getConnect2();
    if (t != null) {
      removeTrackSegment(t);
    }
  }
  for (int i=0; i < pointList.size(); i++) {
    PositionablePoint p=pointList.get(i);
    if (p == o) {
      pointList.remove(i);
      setDirty(true);
      repaint();
      return (true);
    }
  }
  return (false);
}

protected boolean removePositionablePoint ( PositionablePoint o ) { if ( o . getConnect1 ( ) != null || o . getConnect2 ( ) != null ) { if ( ! noWarnPositionablePoint ) { int selectedValue = JOptionPane . showOptionDialog ( this , rb . getString ( "Question2" ) , Bundle . getMessage ( "WarningTitle" ) , JOptionPane . YES_NO_CANCEL_OPTION , JOptionPane . QUESTION_MESSAGE , null , new Object [ ] { Bundle . getMessage ( "ButtonYes" ) , Bundle . getMessage ( "ButtonNo" ) , rb . getString ( "ButtonYesPlus" ) } , Bundle . getMessage ( "ButtonNo" ) ) ; if ( selectedValue == 1 ) { return ( false ) ; } if ( selectedValue == 2 ) { noWarnPositionablePoint = true ; } } if ( selectedObject == o ) { selectedObject = null ; } if ( prevSelectedObject == o ) { prevSelectedObject = null ; } TrackSegment t = o . getConnect1 ( ) ; if ( t != null ) { removeTrackSegment ( t ) ; } t = o . getConnect2 ( ) ; if ( t != null ) { removeTrackSegment ( t ) ; } } for ( int i = 0 ; i < pointList . size ( ) ; i ++ ) { PositionablePoint p = pointList . get ( i ) ; if ( p == o ) { pointList . remove ( i ) ; setDirty ( true ) ; repaint ( ) ; return ( true ) ; } } return ( false ) ; }
remove a positionablepoint - - an anchor or an end bumper .
