- warn user about j3o being saved when applying data

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10320 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 145f7de085
commit a0577b279a
  1. 6
      sdk/jme3-core/src/com/jme3/gde/core/assets/ExternalChangeScanner.java

@ -84,12 +84,12 @@ public class ExternalChangeScanner implements AssetDataPropertyChangeListener, F
//TODO: execute on separate thread?
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
NotifyDescriptor.Confirmation mesg = new NotifyDescriptor.Confirmation("Original file for " + assetDataObject.getName() + " changed\nTry and reapply mesh data to j3o file?",
NotifyDescriptor.Confirmation mesg = new NotifyDescriptor.Confirmation("Original file for " + assetDataObject.getName() + " changed\nTry and reapply mesh data to j3o file?\nThe j3o will be saved after the data has been updated.",
"Original file changed.",
NotifyDescriptor.YES_NO_OPTION, NotifyDescriptor.QUESTION_MESSAGE);
DialogDisplayer.getDefault().notify(mesg);
if (mesg.getValue() != NotifyDescriptor.Confirmation.YES_OPTION) {
userNotified.getAndSet(false);
userNotified.set(false);
return;
}
SceneApplication.getApplication().enqueue(new Callable<Void>() {
@ -102,7 +102,7 @@ public class ExternalChangeScanner implements AssetDataPropertyChangeListener, F
return null;
}
});
userNotified.getAndSet(false);
userNotified.set(false);
}
});
} else {

Loading…
Cancel
Save