Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make a synced refresh of workspace before reading generated file
Solves bug 3563
  • Loading branch information
goglepox committed Sep 11, 2013
1 parent 5025fed commit dc058e5
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -103,6 +103,18 @@ public Object execute(ExecutionEvent event) throws ExecutionException {
.getContentType().isKindOf( cmlType ) ) {
String output =balloon.generate3Dcoordinates( input.getRawLocation()
.toOSString() );
Display.getDefault().syncExec( new Runnable(){
public void run() {
for (IResource res : final_foldersToRefresh){
try {
res.refreshLocal( IResource.DEPTH_ONE, new NullProgressMonitor() );
} catch ( CoreException e ) {
logger.error( "Could not refresh resource: " + res + " - " + e.getMessage() );
}
}

}
});
ICDKManager cdk = net.bioclipse.cdk.business.Activator
.getDefault().getJavaCDKManager();
List<ICDKMolecule> molecules = cdk.loadMolecules(output);
Expand Down

0 comments on commit dc058e5

Please sign in to comment.