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

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

Issue 242513008: Outline view for information from analysis server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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/analysis/model/AnalysisServerOutlineListener.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/HighlightType.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/model/AnalysisServerOutlineListener.java
similarity index 58%
copy from editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/HighlightType.java
copy to editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/model/AnalysisServerOutlineListener.java
index 3c8cac0dc53d627637982c954143183953022d96..dea4cd59b3a2b0539a379f07a009e7c4886093a2 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/HighlightType.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/model/AnalysisServerOutlineListener.java
@@ -11,23 +11,20 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.google.dart.server;
+
+package com.google.dart.tools.core.analysis.model;
+
+import com.google.dart.engine.source.Source;
+import com.google.dart.server.Outline;
/**
- * The enumeration {@code HighlightType} defines the kinds of highlighting that can be associated
- * with a region of text.
+ * Used by {@link AnalysisServerData} to notify clients that new {@link Outline} is ready.
*
- * @coverage dart.server
+ * @coverage dart.tools.core.model
*/
-public enum HighlightType {
- COMMENT_BLOCK,
- COMMENT_DOCUMENTATION,
- COMMENT_END_OF_LINE,
- KEYWORD,
- LITERAL_BOOLEAN,
- LITERAL_DOUBLE,
- LITERAL_INTEGER,
- LITERAL_LIST,
- LITERAL_MAP,
- LITERAL_STRING;
+public interface AnalysisServerOutlineListener {
+ /**
+ * Called when {@link Outline} for a particular {@link Source} is ready.
+ */
+ void computedOutline(String contextId, Source source, Outline outline);
}

Powered by Google App Engine
This is Rietveld 408576698