IRunnableWithProgress operation = new IRunnableWithProgress(){
public void run( IProgressMonitor pm ) throws InvocationTargetException, InterruptedException {
pm.beginTask(OmsBoxView.LOADING_MODULES_FROM_LIBRARIES, IProgressMonitor.UNKNOWN);
try {
OmsModulesManager manager = OmsModulesManager.getInstance();
manager.clearJars();
for( String resource : resources ) {
manager.addJar(resource);
}
manager.browseModules(true);
dbView.relayout();
} catch (Exception e) {
e.printStackTrace();
} finally {