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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/processor/SearchIdProcessor.java

Issue 542323003: Search domain implementation in the Remote java server, using generated types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nit merge issue fixed Created 6 years, 3 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.server/src/com/google/dart/server/internal/remote/processor/SearchIdProcessor.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/processor/SearchIdProcessor.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/processor/SearchIdProcessor.java
deleted file mode 100644
index 6f1ffe554730313a3be61a442424a333d1bfe893..0000000000000000000000000000000000000000
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/processor/SearchIdProcessor.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (c) 2014, the Dart project authors.
- *
- * Licensed under the Eclipse Public License v1.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.google.dart.server.internal.remote.processor;
-
-import com.google.dart.server.SearchIdConsumer;
-import com.google.gson.JsonElement;
-import com.google.gson.JsonObject;
-
-/**
- * Instances of {@code SearchIdProcessor} translate JSON result objects for a given
- * {@link SearchIdConsumer}.
- *
- * @coverage dart.server.remote
- */
-public class SearchIdProcessor extends ResultProcessor {
-
- private final SearchIdConsumer consumer;
-
- public SearchIdProcessor(SearchIdConsumer consumer) {
- this.consumer = consumer;
- }
-
- public void process(JsonObject resultObject) {
- JsonElement jsonElement = resultObject.get("id");
- consumer.computedSearchId(jsonElement != null ? jsonElement.getAsString() : null);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698