本文整理汇总了Java中org.eclipse.lsp4j.jsonrpc.services.JsonNotification类的典型用法代码示例。如果您正苦于以下问题:Java JsonNotification类的具体用法?Java JsonNotification怎么用?Java JsonNotification使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JsonNotification类属于org.eclipse.lsp4j.jsonrpc.services包,在下文中一共展示了JsonNotification类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testZeroParams
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
protected void testZeroParams(Object params, Predicate<String> predicate) throws Exception {
LogMessageAccumulator logMessages = null;
try {
if (predicate != null) {
logMessages = new LogMessageAccumulator();
logMessages.registerTo(GenericEndpoint.class);
}
GenericEndpoint endpoint = new GenericEndpoint(new Object() {
@JsonNotification
public void myNotification() {
}
});
endpoint.notify("myNotification", params);
if (predicate != null) {
logMessages.await(r -> Level.WARNING == r.getLevel() && predicate.test(r.getMessage()));
}
} finally {
if (logMessages != null) {
logMessages.unregister();
}
}
}
示例2: initialized
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification
default void initialized() {
System.out.println("initialized");
}
示例3: output
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification
default void output(OutputEvent.Body body) {
System.out.println("output body" + body.output);
}
示例4: myNotification
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification
void myNotification();
示例5: buildHappened
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification
public abstract void buildHappened(final TestLangLSPExtension.BuildNotification notification);
示例6: myNotification
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification
public void myNotification(String someArg);
示例7: accept
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification
@Override
void accept(String message);
示例8: myNotification
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification
public void myNotification();
示例9: yamlSchemaAssociation
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification(value = "json/schemaAssociations", useSegment = false)
void yamlSchemaAssociation(Map<String, String[]> associations);
示例10: jsonSchemaAssociation
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification(value = "json/schemaAssociations", useSegment = false)
void jsonSchemaAssociation(Map<String, String[]> associations);
示例11: didChangeWatchedFiles
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification("workspace/didChangeWatchedFiles")
void didChangeWatchedFiles(DidChangeWatchedFilesParams params);
示例12: stopped
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
/**
* Called by the debug adapter when a stopped event is issued.
*
* @param body
* contains the reason for the stopped event
*/
@JsonNotification
default void stopped(StoppedEvent.Body body) {
System.out.println("stopped: " + body);
}
示例13: continued
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
/**
* Called by the debug adapter when a continued event is issued.
*
* @param body
* contains the thread id of the continued thread
*/
@JsonNotification
default void continued(ContinuedEvent.Body body) {
System.out.println("continued: " + body);
}
示例14: terminated
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
/**
* Called by the debug adapter when a terminate event is issued.
*
* @param body
* contains the restart flag
*/
@JsonNotification
default void terminated(TerminatedEvent.Body body) {
System.out.println("terminated: " + body);
}
示例15: telemetryEvent
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
/**
* The telemetry notification is sent from the server to the client to ask
* the client to log a telemetry event.
*/
@JsonNotification("telemetry/event")
void telemetryEvent(Object object);