@Override public void syncLibraries(IProgressMonitor... monitorWrap) { // TODO system routine libraries seems no use ,need to check more... // deploy system routine libraries if (GlobalServiceRegister.getDefault().isServiceRegistered(ILibraryManagerUIService.class)) { ILibraryManagerUIService libUiService = (ILibraryManagerUIService) GlobalServiceRegister.getDefault().getService(ILibraryManagerUIService.class); libUiService.initializeSystemLibs(); } if (TalendCacheUtils.cleanComponentCache()) { repositoryBundleService.clearCache(); } // Add a new system file, if exists, means all components libs are already setup, so no need to // do again. // if clean the component cache, it will automatically recheck all libs still. if (!repositoryBundleService.isInitialized()) { // 2. Components libraries if (GlobalServiceRegister.getDefault().isServiceRegistered(IComponentsService.class)) { repositoryBundleService.deployComponentsLibs(monitorWrap); repositoryBundleService.setInitialized(); } } checkInstalledLibraries(); // clean the temp library of job needed in .java\lib cleanLibs(); log.debug(Messages.getString("JavaLibrariesService.synchronization")); // $NON-NLS-1$ isLibSynchronized = true; }