public int showConfirmDialog(final Component parent, final String filename) {
		if (!changed || !enabled)
			return JOptionPane.NO_OPTION;
		String s2 = Modeler.getInternationalText("SaveConfirmation");
		if (changeCausedByRun) {
			String s = Modeler.getInternationalText("DoYouWantToSaveModelState");
			return JOptionPane.showConfirmDialog(JOptionPane.getFrameForComponent(parent), s != null ? s
					: "Do you want to save the current state as the next initial state?", s2 != null ? s2
					: "Save Confirmation", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);
		}
		String s = Modeler.getInternationalText("DoYouWantToSaveChanges");
		return JOptionPane.showConfirmDialog(JOptionPane.getFrameForComponent(parent), s != null ? s
				: "Do you want to save changes made to " + filename + "?", s2 != null ? s2 : "Save Confirmation",
				JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);
	}