SDK:
- warn user about j3o being saved when applying data git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10320 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
145f7de085
commit
a0577b279a
@ -84,12 +84,12 @@ public class ExternalChangeScanner implements AssetDataPropertyChangeListener, F
|
|||||||
//TODO: execute on separate thread?
|
//TODO: execute on separate thread?
|
||||||
java.awt.EventQueue.invokeLater(new Runnable() {
|
java.awt.EventQueue.invokeLater(new Runnable() {
|
||||||
public void run() {
|
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.",
|
"Original file changed.",
|
||||||
NotifyDescriptor.YES_NO_OPTION, NotifyDescriptor.QUESTION_MESSAGE);
|
NotifyDescriptor.YES_NO_OPTION, NotifyDescriptor.QUESTION_MESSAGE);
|
||||||
DialogDisplayer.getDefault().notify(mesg);
|
DialogDisplayer.getDefault().notify(mesg);
|
||||||
if (mesg.getValue() != NotifyDescriptor.Confirmation.YES_OPTION) {
|
if (mesg.getValue() != NotifyDescriptor.Confirmation.YES_OPTION) {
|
||||||
userNotified.getAndSet(false);
|
userNotified.set(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SceneApplication.getApplication().enqueue(new Callable<Void>() {
|
SceneApplication.getApplication().enqueue(new Callable<Void>() {
|
||||||
@ -102,7 +102,7 @@ public class ExternalChangeScanner implements AssetDataPropertyChangeListener, F
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
userNotified.getAndSet(false);
|
userNotified.set(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -166,7 +166,7 @@ public class ExternalChangeScanner implements AssetDataPropertyChangeListener, F
|
|||||||
logger.log(Level.FINE, "Ignoring old reference to self for {0}", assetDataObject.getName());
|
logger.log(Level.FINE, "Ignoring old reference to self for {0}", assetDataObject.getName());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logger.log(Level.INFO, "Could not get FileObject for {0} when trying to opdate original data for {1}. Possibly deleted.",new Object[]{assetName, assetDataObject.getName()});
|
logger.log(Level.INFO, "Could not get FileObject for {0} when trying to opdate original data for {1}. Possibly deleted.", new Object[]{assetName, assetDataObject.getName()});
|
||||||
//TODO: add folder listener for when recreated
|
//TODO: add folder listener for when recreated
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user