public interface ResourceContentService
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
|
elemental2.promise.Promise<String> get(String uri)
uri
- the resource URI relative to the workspace/projectelemental2.promise.Promise<String> get(String uri, ResourceContentOptions options)
uri
- The resource URI relative to the workspace/projectoptions
- Options when retrieving the resource contentelemental2.promise.Promise<String[]> list(String pattern)
pattern
- A GLOB pattern to filter files. To list all files use "*"elemental2.promise.Promise<String[]> list(String pattern, ResourceListOptions options)
pattern
- 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.