int value = JOptionPane.showConfirmDialog(MainFrame.this, "You are closing " + "without saving. Do you want to save?", "Do you want to save?", JOptionPane.YES_NO_CANCEL_OPTION,
int value = JOptionPane.showConfirmDialog(MainFrame.this, edu.umd.cs.findbugs.L10N.getLocalString("msg.you_are_closing_txt", "You are closing") + " " + edu.umd.cs.findbugs.L10N.getLocalString("msg.without_saving_txt", "without saving. Do you want to save?"), edu.umd.cs.findbugs.L10N.getLocalString("msg.confirm_save_txt", "Do you want to save?"), JOptionPane.YES_NO_CANCEL_OPTION,
	void callOnClose(){		comments.saveComments(currentSelectedBugLeaf, currentSelectedBugAspects);		if(projectChanged){			int value = JOptionPane.showConfirmDialog(MainFrame.this, "You are closing " +					"without saving. Do you want to save?", 					"Do you want to save?", JOptionPane.YES_NO_CANCEL_OPTION,					JOptionPane.QUESTION_MESSAGE);						if(value == JOptionPane.CANCEL_OPTION || value == JOptionPane.CLOSED_OPTION)				return ;			else if(value == JOptionPane.YES_OPTION){				if(projectDirectory == null){					if(!projectSaveAs())						return ;				}				else					save(projectDirectory);			}						}		GUISaveState.getInstance().setPreviousComments(comments.prevCommentsList);		guiLayout.saveState();		GUISaveState.getInstance().setFrameBounds( getBounds() );		GUISaveState.getInstance().save();				System.exit(0);	}