public class NoOpResourceContentService extends Object implements ResourceContentService
ResourceContentService implementation is used when the envelope API is not available| Constructor and Description |
|---|
NoOpResourceContentService() |
| Modifier and Type | Method and Description |
|---|---|
elemental2.promise.Promise<String> |
get(String uri)
Returns a resource's content
|
elemental2.promise.Promise<String> |
get(String uri,
ResourceContentOptions options)
Returns a resource's content
|
elemental2.promise.Promise<String[]> |
list(String pattern)
List files from the project/workspace where the editor is running
|
elemental2.promise.Promise<String[]> |
list(String pattern,
ResourceListOptions options)
List files from the project/workspace where the editor is running
|
public elemental2.promise.Promise<String> get(String uri)
ResourceContentServiceget in interface ResourceContentServiceuri - the resource URI relative to the workspace/projectpublic elemental2.promise.Promise<String[]> list(String pattern)
ResourceContentServicelist in interface ResourceContentServicepattern - A GLOB pattern to filter files. To list all files use "*"public elemental2.promise.Promise<String> get(String uri, ResourceContentOptions options)
ResourceContentServiceget in interface ResourceContentServiceuri - The resource URI relative to the workspace/projectoptions - Options when retrieving the resource contentpublic elemental2.promise.Promise<String[]> list(String pattern, ResourceListOptions options)
ResourceContentServicelist in interface ResourceContentServicepattern - A GLOB pattern to filter files. To list all files use "*"options - Options when retrieving the resource listCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.