MCPcopy Create free account
hub / github.com/KDE/kdevelop / open

Method open

kdevplatform/shell/project.cpp:505–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503}
504
505bool Project::open( const Path& projectFile )
506{
507 Q_D(Project);
508
509 d->initProject(projectFile);
510 if (!d->initProjectFiles())
511 return false;
512
513 KConfigGroup projectGroup = d->initKConfigObject();
514 if (d->projectNameUsed(projectGroup))
515 return false;
516
517 d->projectPath = d->projectFile.parent();
518
519 IProjectFileManager* iface = d->fetchFileManager(projectGroup);
520 if (!iface)
521 return false;
522
523 Q_ASSERT(d->manager);
524
525 emit aboutToOpen(this);
526 if (!d->importTopItem(iface) ) {
527 return false;
528 }
529
530 d->loading=true;
531 d->loadVersionControlPlugin(projectGroup);
532 d->progress->setBuzzy();
533 KJob* importJob = iface->createImportJob(d->topItem );
534 connect(importJob, &KJob::result,
535 this, [this] (KJob* job) { Q_D(Project); d->importDone(job); } );
536 Core::self()->runController()->registerJob( importJob );
537 return true;
538}
539
540void Project::close()
541{

Callers 15

overwriteExistingFileFunction · 0.45
importProjectMethod · 0.45
initProjectFilesMethod · 0.45
extractTemplateMethod · 0.45
createFileMethod · 0.45
initMethod · 0.45
createFileMethod · 0.45
writeProjectConfigMethod · 0.45
initMethod · 0.45
setOverrideCssFileMethod · 0.45

Calls 13

initProjectMethod · 0.80
initProjectFilesMethod · 0.80
initKConfigObjectMethod · 0.80
projectNameUsedMethod · 0.80
fetchFileManagerMethod · 0.80
importTopItemMethod · 0.80
setBuzzyMethod · 0.80
registerJobMethod · 0.80
runControllerMethod · 0.80
parentMethod · 0.45
createImportJobMethod · 0.45

Tested by 15

overwriteExistingFileFunction · 0.36
createFileMethod · 0.36
initMethod · 0.36
createFileMethod · 0.36
writeProjectConfigMethod · 0.36
initMethod · 0.36
cppOutputMethod · 0.36
yamlOutputMethod · 0.36
setFileContentsMethod · 0.36
TestFileMethod · 0.36