mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-24 08:04:48 +01:00
feat(java): workspace user list
This commit is contained in:
parent
7d3a7ebef5
commit
a756b2805c
2 changed files with 16 additions and 0 deletions
10
dist/java/src/mp/code/Workspace.java
vendored
10
dist/java/src/mp/code/Workspace.java
vendored
|
@ -80,6 +80,16 @@ public final class Workspace {
|
|||
return active_buffers(this.ptr);
|
||||
}
|
||||
|
||||
private static native String[] user_list(long self);
|
||||
|
||||
/**
|
||||
* Returns the users currently in the workspace.
|
||||
* @return an array containing the names of the users in the workspace
|
||||
*/
|
||||
public String[] userList() {
|
||||
return user_list(this.ptr);
|
||||
}
|
||||
|
||||
private static native void create_buffer(long self, String path) throws ConnectionRemoteException;
|
||||
|
||||
/**
|
||||
|
|
|
@ -31,6 +31,12 @@ fn active_buffers(workspace: &mut Workspace) -> Vec<String> {
|
|||
workspace.buffer_list()
|
||||
}
|
||||
|
||||
/// Gets a list of the active buffers.
|
||||
#[jni(package = "mp.code", class = "Workspace")]
|
||||
fn user_list(workspace: &mut Workspace) -> Vec<String> {
|
||||
workspace.user_list()
|
||||
}
|
||||
|
||||
/// Create a new buffer.
|
||||
#[jni(package = "mp.code", class = "Workspace")]
|
||||
fn create_buffer(workspace: &mut Workspace, path: String) -> Result<(), RemoteError> {
|
||||
|
|
Loading…
Reference in a new issue