| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012, the Dart project authors. | 2 * Copyright (c) 2012, 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.debug.core.util; | 15 package com.google.dart.tools.debug.core.util; |
| 16 | 16 |
| 17 import org.eclipse.core.resources.IResource; | 17 import org.eclipse.core.resources.IResource; |
| 18 | 18 |
| 19 import java.io.File; | 19 import java.io.File; |
| 20 | 20 |
| 21 /** | 21 /** |
| 22 * A resolver class used to convert from IResources to urls. | 22 * A resolver class used to convert from IResources to urls. Note : Some methods
involve |
| 23 * communication overheads based on type of resolver, so clients should not call
the resolver on the |
| 24 * UI thread, to avoid blocking the UI. |
| 23 * | 25 * |
| 24 * @see ResourceServer | 26 * @see ResourceServer |
| 25 */ | 27 */ |
| 26 public interface IResourceResolver { | 28 public interface IResourceResolver { |
| 27 | 29 |
| 28 /** | 30 /** |
| 29 * Given an File, return the corresponding URL. | 31 * Given an File, return the corresponding URL. |
| 30 * | 32 * |
| 31 * @param file | 33 * @param file |
| 32 * @return | 34 * @return |
| (...skipping 19 matching lines...) Expand all Loading... |
| 52 /** | 54 /** |
| 53 * Given a url, return the associated workspace resource. Return null if there
is no such | 55 * Given a url, return the associated workspace resource. Return null if there
is no such |
| 54 * resource. | 56 * resource. |
| 55 * | 57 * |
| 56 * @param url | 58 * @param url |
| 57 * @return | 59 * @return |
| 58 */ | 60 */ |
| 59 public IResource resolveUrl(String url); | 61 public IResource resolveUrl(String url); |
| 60 | 62 |
| 61 } | 63 } |
| OLD | NEW |