Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/index/impl/InMemoryIndex.java

Issue 10827457: rename refactor SystemLibraryManager -> PackagelibraryManager SdkLibraryManager -> SystemLibraryM... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/index/impl/InMemoryIndex.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/index/impl/InMemoryIndex.java (revision 11094)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/index/impl/InMemoryIndex.java (working copy)
@@ -15,7 +15,7 @@
import com.google.dart.compiler.DartSource;
import com.google.dart.compiler.LibrarySource;
-import com.google.dart.compiler.SystemLibraryManager;
+import com.google.dart.compiler.PackageLibraryManager;
import com.google.dart.compiler.ast.DartUnit;
import com.google.dart.tools.core.DartCore;
import com.google.dart.tools.core.DartCoreDebug;
@@ -44,7 +44,7 @@
import com.google.dart.tools.core.internal.model.CompilationUnitImpl;
import com.google.dart.tools.core.internal.model.DartLibraryImpl;
import com.google.dart.tools.core.internal.model.ExternalCompilationUnitImpl;
-import com.google.dart.tools.core.internal.model.SystemLibraryManagerProvider;
+import com.google.dart.tools.core.internal.model.PackageLibraryManagerProvider;
import com.google.dart.tools.core.internal.util.ResourceUtil;
import com.google.dart.tools.core.internal.workingcopy.DefaultWorkingCopyOwner;
import com.google.dart.tools.core.model.CompilationUnit;
@@ -248,11 +248,11 @@
URI unitUri = unitSource.getUri();
Resource indexerResource;
- if (SystemLibraryManager.isDartUri(unitUri)) {
+ if (PackageLibraryManager.isDartUri(unitUri)) {
indexerResource = new Resource(ResourceFactory.composeResourceId(
librarySource.getUri().toString(),
unitUri.toString()));
- } else if (SystemLibraryManager.isPackageUri(unitUri)) {
+ } else if (PackageLibraryManager.isPackageUri(unitUri)) {
indexerResource = new Resource(ResourceFactory.composeResourceId(
libraryFile.toURI().toString(),
sourceFile.toURI().toString()));
@@ -502,12 +502,12 @@
private boolean indexBundledLibraries() {
boolean librariesIndexed = true;
long startTime = System.currentTimeMillis();
- SystemLibraryManager libraryManager = SystemLibraryManagerProvider.getSystemLibraryManager();
+ PackageLibraryManager libraryManager = PackageLibraryManagerProvider.getSystemLibraryManager();
ArrayList<String> librarySpecs = new ArrayList<String>(libraryManager.getAllLibrarySpecs());
if (librarySpecs.remove("dart:html")) {
librarySpecs.add("dart:html");
}
- AnalysisServer analysisServer = SystemLibraryManagerProvider.getDefaultAnalysisServer();
+ AnalysisServer analysisServer = PackageLibraryManagerProvider.getDefaultAnalysisServer();
SavedContext savedContext = analysisServer.getSavedContext();
for (String urlSpec : librarySpecs) {
try {
@@ -537,7 +537,7 @@
private boolean indexUserLibraries() {
boolean librariesIndexed = true;
try {
- AnalysisServer analysisServer = SystemLibraryManagerProvider.getDefaultAnalysisServer();
+ AnalysisServer analysisServer = PackageLibraryManagerProvider.getDefaultAnalysisServer();
SavedContext savedContext = analysisServer.getSavedContext();
DartModel model = DartCore.create(ResourcesPlugin.getWorkspace().getRoot());
for (DartProject project : model.getDartProjects()) {

Powered by Google App Engine
This is Rietveld 408576698