// ĠCopyright Ġ 2 0 0 0 - 2 0 2 1 ĠJetBrains Ġs . r . o . ĠUse Ġof Ġthis Ġsource Ġcode Ġis Ġgoverned Ġby Ġthe ĠApache Ġ 2 . 0 Ġlicense Ġthat Ġcan Ġbe Ġfound Ġin Ġthe ĠLICENSE Ġfile . Ċ package Ġcom . intellij . workspace Model . ide . impl . legacy Bridge Ċ Ċ import Ġcom . intellij . ide . plugins . PluginManager Core Ċ import Ġcom . intellij . openapi . components . Service Descriptor Ċ import Ġcom . intellij . openapi . diagnostic . logger Ċ import Ġcom . intellij . openapi . module . Module Manager Ċ import Ġcom . intellij . openapi . module . impl . External Module List Storage Ċ import Ġcom . intellij . openapi . project . Project Ċ import Ġcom . intellij . openapi . project . impl . Project Service Container Customizer Ċ import Ġcom . intellij . openapi . roots . Project Root Manager Ċ import Ġcom . intellij . openapi . roots . impl . Mod ifiable Model Commit ter Service Ċ import Ġcom . intellij . openapi . roots . impl . libraries . Project Library Table Ċ import Ġcom . intellij . service Container . Component ManagerImpl Ċ import Ġcom . intellij . workspace Model . ide . Workspace Model Ċ import Ġcom . intellij . workspace Model . ide . Workspace Model Topics Ċ import Ġcom . intellij . workspace Model . ide . impl . Workspace Model Impl Ċ import Ġcom . intellij . workspace Model . ide . impl . Workspace Model Initial Test Content Ċ import Ġcom . intellij . workspace Model . ide . impl . j ps . serialization . J ps Project Model Synchron izer Ċ import Ġcom . intellij . workspace Model . ide . impl . legacy Bridge . facet . Facet Entity ChangeListener Ċ import Ġcom . intellij . workspace Model . ide . impl . legacy Bridge . library . Project Library Table Bridge Impl Ċ import Ġcom . intellij . workspace Model . ide . impl . legacy Bridge . module . Module Manager Component Bridge Ċ import Ġcom . intellij . workspace Model . ide . impl . legacy Bridge . module . roots . Mod ifiable Model Commit ter Service Bridge Ċ import Ġcom . intellij . workspace Model . ide . impl . legacy Bridge . project . Project Root Manager Bridge Ċ import Ġcom . intellij . workspace Model . ide . impl . legacy Bridge . watcher . Roots Change Watcher Ċ import Ġcom . intellij . workspace Model . ide . impl . legacy Bridge . watcher . Virtual File Url Watcher Ċ import Ġorg . jetbrains . annotations . Api Status Ċ Ċ @ Api Status . Internal Ċ class ĠLegacy Bridge Project Lifecycle Listener Ġ: ĠProject Service Container Customizer Ġ{ ĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġprivate Ġval ĠLOG Ġ= Ġlogger < Legacy Bridge Project Lifecycle Listener >() ĊĊĠĠĠ Ġfun Ġenabled ( project : ĠProject ) Ġ= ĠModule Manager . getInstance ( project ) Ġis ĠModule Manager Component Bridge ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġservice Registered ( project : ĠProject ) Ġ{ ĊĠĠĠ Ġval Ġenabled Ġ= ĠWorkspace Model . isEnabled Ġ|| ĠWorkspace Model Initial Test Content . peek () Ġ!= Ġnull ĊĠĠĠ Ġif Ġ(! enabled ) Ġ{ ĊĠĠĠĠĠ ĠLOG . info (" Using Ġlegacy Ġproject Ġmodel Ġto Ġopen Ġproject ") ĊĠĠĠĠĠ Ġreturn ĊĠĠĠ Ġ} ĊĊĠĠĠ ĠLOG . info (" Using Ġworkspace Ġmodel Ġto Ġopen Ġproject ") ĊĊĠĠĠ Ġval Ġplugin Descriptor Ġ= ĠPlugin Manager Core . get Plugin ( PluginManager Core . CORE _ ID ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ?: Ġerror (" Could Ġnot Ġfind Ġplugin Ġby Ġid : Ġ${ PluginManager Core . CORE _ ID }") ĊĊĠĠĠ Ġval Ġcontainer Ġ= Ġproject Ġas ĠComponent ManagerImpl ĊĊĠĠĠ Ġcontainer . register Component ( J ps Project Model Synchron izer :: class . java , ĠJ ps Project Model Synchron izer :: class . java , Ġplugin Descriptor , Ġfalse ) ĊĠĠĠ Ġcontainer . register Component ( Roots Change Watcher :: class . java , ĠRoot s Change Watcher :: class . java , Ġplugin Descriptor , Ġfalse ) ĊĠĠĠ Ġcontainer . register Component ( Virtual File Url Watcher :: class . java , ĠVirtual File Url Watcher :: class . java , Ġplugin Descriptor , Ġfalse ) ĊĠĠĠ Ġcontainer . register Component ( Module Manager :: class . java , ĠModule Manager Component Bridge :: class . java , Ġplugin Descriptor , Ġtrue ) ĊĠĠĠ Ġcontainer . register Service ( Project Root Manager :: class . java , ĠProject Root Manager Bridge :: class . java , Ġplugin Descriptor , Ġoverride Ġ= Ġtrue , ĊĠĠĠĠĠ Ġpreload Mode Ġ= ĠService Descriptor . Pre load Mode . AW A IT ) ĊĠĠĠ Ġcontainer . unregister Component ( External Module List Storage :: class . java ) ĊĊĠĠĠ Ġcontainer . register Service ( Workspace Model :: class . java , ĠWorkspace Model Impl :: class . java , Ġplugin Descriptor , Ġfalse ) ĊĠĠĠ Ġcontainer . register Service ( Project Library Table :: class . java , ĠProject Library Table Bridge Impl :: class . java , Ġplugin Descriptor , Ġtrue ) ĊĊĠĠĠ Ġcontainer . register Service ( Mod ifiable Model Commit ter Service :: class . java , ĠMod ifiable Model Commit ter Service Bridge :: class . java , Ġplugin Descriptor , Ġtrue ) ĊĠĠĠ Ġcontainer . register Service ( Workspace Model Topics :: class . java , ĠWorkspace Model Topics :: class . java , Ġplugin Descriptor , Ġfalse ) ĊĠĠĠ Ġcontainer . register Service ( Facet Entity ChangeListener :: class . java , ĠFac et Entity ChangeListener :: class . java , Ġplugin Descriptor , Ġfalse ) ĊĠ Ġ} Ċ }