Interface WorkspaceMgr
-
- All Known Implementing Classes:
FileSystemWorkspaceMgr
public interface WorkspaceMgr- Author:
- lana
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voiddeleteFile(URI uri)default List<Object>getDocumentChanges(URI uri)Get a document changes.default Stringload(URI uri)Load document from server workspacedefault voidrenameFile(URI oldName, URI newName)default URIresolveUri(URI userUri)default voidsave(URI uri, String content)Save uri in server workspace
-
-
-
Method Detail
-
save
default void save(URI uri, String content) throws Exception
Save uri in server workspace- Parameters:
uri- Uri of file sent by VSCcontent- File content- Throws:
Exception
-
load
default String load(URI uri) throws Exception
Load document from server workspace- Parameters:
uri- Uri of file sent by VSC- Returns:
- The document content
- Throws:
Exception
-
getDocumentChanges
default List<Object> getDocumentChanges(URI uri) throws Exception
Get a document changes. Used to syncronize client with the server- Throws:
Exception
-
-