String message = "You are attempting to open a 2D model in " +
org.nlogo.api.Version.version() + ". " +
"You might need to make changes before it will work in 3D.";
if (org.nlogo.swing.OptionDialog.show
(this, "NetLogo", message, options) != 0) {
throw new UserCancelException();
}
}