|
2 | 2 |
|
3 | 3 | import java.util.function.Consumer; |
4 | 4 |
|
5 | | -import mp.code.proto.UserInfo; |
6 | | -import mp.code.proto.BufferNode; |
| 5 | +import mp.code.proto.*; |
7 | 6 | import mp.code.exceptions.ConnectionException; |
8 | 7 | import mp.code.exceptions.ConnectionRemoteException; |
9 | 8 | import mp.code.exceptions.ControllerException; |
10 | | -import mp.code.proto.WorkspaceEvent; |
11 | | -import mp.code.proto.WorkspaceIdentifier; |
12 | 9 |
|
13 | 10 | /** |
14 | 11 | * Represents a CodeMP workspace, which broadly speaking is a collection |
@@ -90,16 +87,16 @@ public UserInfo[] userList() { |
90 | 87 | return user_list(this.ptr); |
91 | 88 | } |
92 | 89 |
|
93 | | - private static native void create_buffer(long self, String path, boolean ephemeral) throws ConnectionRemoteException; |
| 90 | + private static native void create_buffer(long self, String path, BufferAttributes attributes) throws ConnectionRemoteException; |
94 | 91 |
|
95 | 92 | /** |
96 | 93 | * Creates a buffer with the given path. |
97 | 94 | * @param path the new buffer's path |
98 | | - * @param ephemeral whether the buffer should be ephemeral |
| 95 | + * @param attributes the buffer's attributes (will use defaults if null) |
99 | 96 | * @throws ConnectionRemoteException if an error occurs in communicating with the server |
100 | 97 | */ |
101 | | - public void createBuffer(String path, boolean ephemeral) throws ConnectionRemoteException { |
102 | | - create_buffer(this.ptr, path, ephemeral); |
| 98 | + public void createBuffer(String path, BufferAttributes attributes) throws ConnectionRemoteException { |
| 99 | + create_buffer(this.ptr, path, attributes); |
103 | 100 | } |
104 | 101 |
|
105 | 102 | private static native void pin_buffer(long self, String path) throws ConnectionRemoteException; |
|
0 commit comments