Skip to main content
summaryrefslogtreecommitdiffstats
blob: f5d4e739a918705f1fd837ac218e68381b01c0bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package org.eclipse.fx.code.server.jdt;

import java.net.URI;
import java.nio.ByteBuffer;
import java.util.List;
import java.util.concurrent.Future;

import org.eclipse.fx.code.server.jdt.shared.Marker;
import org.eclipse.fx.code.server.jdt.shared.Proposal;

public interface JDTServer {
	public String getId();
	public Future<String> registerModule(URI uri);
	public Future<List<String>> getSourceFolders(String moduleName);

	public Future<Boolean> isManaged(String moduleName, String path);

	public Future<String> openFile(String moduleName, String path);
	public Future<Boolean> createFile(String moduleName, String path, ByteBuffer content);

	public Future<ByteBuffer> getFileContent(String id);
	public Future<Boolean> setFileContent(String id, ByteBuffer content);
	public Future<Boolean> insertContent(String id, int offset, ByteBuffer content);
	public Future<Boolean> replaceContent(String resourceId, int offset,
			int length, ByteBuffer wrap);
	public Future<Boolean> persistContent(String id);
	public Future<List<Marker>> getMarkers(String id);

	public Future<List<Proposal>> getProposals(String id, int offset);
	public Future<Boolean> reset(String id);
	public Future<Boolean> dispose(String resourceId);
}

Back to the top