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

Unified Diff: dart/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/model/Project.java

Issue 126303002: Version 1.1.0-dev.5.3 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 11 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: dart/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/model/Project.java
===================================================================
--- dart/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/model/Project.java (revision 31563)
+++ dart/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/model/Project.java (working copy)
@@ -8,14 +8,14 @@
/**
* Instances of {@code Project} represents an Eclipse project that has a Dart nature.
- *
+ *
* @coverage dart.tools.core.model
*/
public interface Project extends ContextManager {
/**
* Discard all analysis contexts in the specified container
- *
+ *
* @param container the container (not {@code null})
*/
void discardContextsIn(IContainer container);
@@ -24,7 +24,7 @@
* Answer the default analysis context. If the receiver contains a {@link PubFolder} which
* contains all of the resources contained in the receiver, then the analysis context for that
* {@link PubFolder} will be the same the receiver's default analysis context.
- *
+ *
* @return the analysis context (not {@code null})
*/
AnalysisContext getDefaultContext();
@@ -32,21 +32,21 @@
/**
* Answer with all the library sources that are in the project. These include all the sdk and
* external libraries referenced by code in the project
- *
+ *
* @return the {@link Source}[] for all the libraries that are in the project.
*/
Source[] getLibrarySources();
/**
* Answer the {@link PubFolder}s contained in the receiver.
- *
+ *
* @return an array of zero or more folders (not {@code null}, contains no {@code null}s)
*/
PubFolder[] getPubFolders();
/**
* Answer the Eclipse project associated with this Dart project
- *
+ *
* @return the Eclipse project (not {@code null})
*/
@Override
@@ -54,7 +54,7 @@
/**
* Test if the given context is associated with this project.
- *
+ *
* @param context the context to test
* @return {@code true} if the given context is associated with this project
*/
@@ -62,16 +62,24 @@
/**
* Called when a pubspec file is added
- *
+ *
* @param container the container (not {@code null}) to which a pubspec file was added
*/
void pubspecAdded(IContainer container);
/**
* Called when a pubspec file is removed
- *
+ *
* @param container the container (not {@code null}) from which a pubspec file was removed
*/
void pubspecRemoved(IContainer container);
+ /**
+ * Resolve the given file path to a package uri path, if any
+ *
+ * @param path the file path for the resource wrt to package structure
+ * @return the package name or {@code null} if resource is not in a package
+ */
+ String resolvePathToPackage(String path);
+
}

Powered by Google App Engine
This is Rietveld 408576698