Do not store virtual file pointers in library order entry, use library for that
[fedora-idea.git] / platform / lang-impl / src / com / intellij / openapi / roots / ex / ProjectRootManagerEx.java
blob2b3c6d39ae42e1eb7cfd61f8f1f14306995aecf5
1 /*
2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package com.intellij.openapi.roots.ex;
19 import com.intellij.ide.caches.CacheUpdater;
20 import com.intellij.openapi.module.Module;
21 import com.intellij.openapi.project.Project;
22 import com.intellij.openapi.roots.JdkOrderEntry;
23 import com.intellij.openapi.roots.ProjectRootManager;
24 import com.intellij.psi.search.GlobalSearchScope;
25 import org.jetbrains.annotations.NotNull;
27 import java.util.EventListener;
28 import java.util.List;
30 public abstract class ProjectRootManagerEx extends ProjectRootManager {
31 public static ProjectRootManagerEx getInstanceEx(Project project) {
32 return (ProjectRootManagerEx)getInstance(project);
35 public abstract void registerRootsChangeUpdater(CacheUpdater updater);
36 public abstract void unregisterRootsChangeUpdater(CacheUpdater updater);
38 public abstract void registerRefreshUpdater(CacheUpdater updater);
39 public abstract void unregisterRefreshUpdater(CacheUpdater updater);
41 public abstract void addProjectJdkListener(ProjectJdkListener listener);
43 public abstract void removeProjectJdkListener(ProjectJdkListener listener);
45 public abstract void beforeRootsChange(boolean filetypes);
47 public abstract void rootsChanged(boolean filetypes);
48 public abstract void makeRootsChange(@NotNull Runnable runnable, boolean filetypes, boolean fireEvents);
50 public abstract void mergeRootsChangesDuring(@NotNull Runnable runnable);
52 public abstract GlobalSearchScope getScopeForLibraryUsedIn(List<Module> modulesLibraryIsUsedIn);
54 public abstract GlobalSearchScope getScopeForJdk(final JdkOrderEntry jdkOrderEntry);
56 public abstract void clearScopesCachesForModules();
59 public interface ProjectJdkListener extends EventListener {
60 void projectJdkChanged();