- account for deleted j3o files when listening for changes in external files and remove file change listener
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10375 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
logger.log(Level.INFO,"Remove file change listener for {0}",originalObject);
originalObject.removeFileChangeListener(main);
originalObject=null;
}
}
});
}else{
logger.log(Level.WARNING,"Trying to observer changes for asset {0} which has no AssetData in Lookup.",assetDataObject.getName());
}
@ -86,8 +101,8 @@ public class ExternalChangeScanner implements AssetDataPropertyChangeListener, F
//TODO: execute on separate thread?
java.awt.EventQueue.invokeLater(newRunnable(){
publicvoidrun(){
NotifyDescriptor.Confirmationmesg=newNotifyDescriptor.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.Confirmationmesg=newNotifyDescriptor.Confirmation("Original file for "+assetDataObject.getName()+" changed\nTry and reapply mesh data to j3o file?",
// NotifyDescriptor.Confirmation mesg = new NotifyDescriptor.Confirmation("Model appears to have animations, try to import as well?\nCurrently this will unlink attachment Nodes and clear\nadded effects tracks.",