JBDS-1514 JBDS does not completely clean up Teiid PREVIEW VDBs and DataSources. Removed the timer that would stop the cleanup jobs when a certain amount of time had elapsed. Now the only way for the cleanup jobs not to finish is if the user cancels the dialog that is shown when the cleanup jobs are running. Each cleanup job is doing 2 things: deleting the preview VDB off the server, and (2) deleting the preview data source from the server. Since the cleanup jobs are run asynchronously chances are all cleanup jobs will already be deleting the VDB. So canceling will only stop the job from trying to delete the data source.
TEIIDDES-688 Closing project and saving dirty editor results in ResourceException. Now check to see if project is closed in CreatePreviewVdbJob. If it is that job does nothing. Now when a project is opened UpdatePreviewVdbJobs are run for each model to ensure that they are all synchronized. Reviewed by Barry L.