IProgressMonitor pm = Job.getJobManager().createProgressGroup();
pm.beginTask("Extracting and storing the FAMIX model for further use ...", 10);
List<IJavaElement> selection = new ArrayList<IJavaElement>();
selection.add(selectedProject);
FamixParserJob parseJob = new FamixParserJob(selection);
parseJob.setUser(true);
parseJob.setProgressGroup(pm, 5);
parseJob.schedule();
parseJob.join();
Job storeModelJob = new FamixStoreModelJob(dbUrl, parseJob.getFamixModel());
storeModelJob.setUser(true);
storeModelJob.setProgressGroup(pm, 5);
storeModelJob.schedule();
storeModelJob.join();