public class EnvelopeResourceContentService extends Object implements ResourceContentService
ResourceContentService
implementation used when envelope API is availableConstructor and Description |
---|
EnvelopeResourceContentService() |
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)
ResourceContentService
get
in interface ResourceContentService
uri
- the resource URI relative to the workspace/projectpublic elemental2.promise.Promise<String[]> list(String pattern)
ResourceContentService
list
in interface ResourceContentService
pattern
- A GLOB pattern to filter files. To list all files use "*"public elemental2.promise.Promise<String> get(String uri, ResourceContentOptions options)
ResourceContentService
get
in interface ResourceContentService
uri
- The resource URI relative to the workspace/projectoptions
- Options when retrieving the resource contentpublic elemental2.promise.Promise<String[]> list(String pattern, ResourceListOptions options)
ResourceContentService
list
in interface ResourceContentService
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.