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

Side by Side Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/model/AnalysisServerData.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014, the Dart project authors. 2 * Copyright (c) 2014, the Dart project authors.
3 * 3 *
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except
5 * in compliance with the License. You may obtain a copy of the License at 5 * in compliance with the License. You may obtain a copy of the License at
6 * 6 *
7 * http://www.eclipse.org/legal/epl-v10.html 7 * http://www.eclipse.org/legal/epl-v10.html
8 * 8 *
9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License 9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express
11 * or implied. See the License for the specific language governing permissions a nd limitations under 11 * or implied. See the License for the specific language governing permissions a nd limitations under
12 * the License. 12 * the License.
13 */ 13 */
14 14
15 package com.google.dart.tools.core.analysis.model; 15 package com.google.dart.tools.core.analysis.model;
16 16
17 import com.google.dart.engine.source.Source; 17 import com.google.dart.engine.source.Source;
18 import com.google.dart.server.AnalysisServer; 18 import com.google.dart.server.AnalysisServer;
19 import com.google.dart.server.NavigationRegion; 19 import com.google.dart.server.NavigationRegion;
20 import com.google.dart.server.Outline;
20 21
21 /** 22 /**
22 * Instances of {@code AnalysisServerData} provide access to analysis results re ported by 23 * Instances of {@code AnalysisServerData} provide access to analysis results re ported by
23 * {@link AnalysisServer}. 24 * {@link AnalysisServer}.
24 * 25 *
25 * @coverage dart.tools.core.model 26 * @coverage dart.tools.core.model
26 */ 27 */
27 public interface AnalysisServerData { 28 public interface AnalysisServerData {
28 /** 29 /**
29 * Returns {@link NavigationRegion}s associated with the given context and {@l ink Source}. May be 30 * Returns {@link NavigationRegion}s associated with the given context and {@l ink Source}. May be
30 * empty, but not {@code null}. 31 * empty, but not {@code null}.
31 */ 32 */
32 NavigationRegion[] getNavigation(String contextId, Source source); 33 NavigationRegion[] getNavigation(String contextId, Source source);
33 34
34 /** 35 /**
35 * Specifies that the client wants to request {@link #getNavigation(String, So urce)}. 36 * Specifies that the client wants to request {@link #getNavigation(String, So urce)}.
36 */ 37 */
37 void subscribeNavigation(String contextId, Source source); 38 void subscribeNavigation(String contextId, Source source);
38 39
39 /** 40 /**
41 * Specifies that the client wants to be notified about new {@link Outline}.
42 */
43 void subscribeOutline(String contextId, Source source, AnalysisServerOutlineLi stener listener);
44
45 /**
40 * Specifies that the client doesn't need navigation information for the given source anymore. 46 * Specifies that the client doesn't need navigation information for the given source anymore.
41 */ 47 */
42 void unsubscribeNavigation(String contextId, Source source); 48 void unsubscribeNavigation(String contextId, Source source);
49
50 /**
51 * Specifies that the client doesn't want to be notified about outline informa tion anymore.
52 */
53 void unsubscribeOutline(String contextId, Source source, AnalysisServerOutline Listener listener);
43 } 54 }
OLDNEW
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/model/AnalysisServerOutlineListener.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698