当前位置: 首页>>代码示例>>Java>>正文


Java JsonNotification类代码示例

本文整理汇总了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();
		}
	}
}
 
开发者ID:eclipse,项目名称:lsp4j,代码行数:27,代码来源:GenericEndpointTest.java

示例2: initialized

import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification
default void initialized() {
	System.out.println("initialized");
}
 
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:5,代码来源:IDebugProtocolClient.java

示例3: output

import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification
default void output(OutputEvent.Body body) {
	System.out.println("output body" + body.output);
}
 
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:5,代码来源:IDebugProtocolClient.java

示例4: myNotification

import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification
void myNotification();
 
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:3,代码来源:DebugIntegrationTest.java

示例5: buildHappened

import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification
public abstract void buildHappened(final TestLangLSPExtension.BuildNotification notification);
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:3,代码来源:TestLangLSPExtension.java

示例6: myNotification

import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification
public void myNotification(String someArg);
 
开发者ID:eclipse,项目名称:lsp4j,代码行数:3,代码来源:EndpointsTest.java

示例7: accept

import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification
@Override
void accept(String message);
 
开发者ID:eclipse,项目名称:lsp4j,代码行数:4,代码来源:EndpointsTest.java

示例8: myNotification

import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification
public void myNotification();
 
开发者ID:eclipse,项目名称:lsp4j,代码行数:3,代码来源:GenericEndpointTest.java

示例9: yamlSchemaAssociation

import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification(value = "json/schemaAssociations", useSegment = false)
void yamlSchemaAssociation(Map<String, String[]> associations);
 
开发者ID:eclipse,项目名称:che,代码行数:3,代码来源:YamlSchemaAssociations.java

示例10: jsonSchemaAssociation

import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification(value = "json/schemaAssociations", useSegment = false)
void jsonSchemaAssociation(Map<String, String[]> associations);
 
开发者ID:eclipse,项目名称:che,代码行数:3,代码来源:JsonExtension.java

示例11: didChangeWatchedFiles

import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
@JsonNotification("workspace/didChangeWatchedFiles")
void didChangeWatchedFiles(DidChangeWatchedFilesParams params);
 
开发者ID:crapo,项目名称:sadlos2,代码行数:3,代码来源:WorkspaceClient.java

示例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);
}
 
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:11,代码来源:IDebugProtocolClient.java

示例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);
}
 
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:11,代码来源:IDebugProtocolClient.java

示例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);
}
 
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:11,代码来源:IDebugProtocolClient.java

示例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);
 
开发者ID:smarr,项目名称:SOMns-vscode,代码行数:7,代码来源:LanguageClient.java


注:本文中的org.eclipse.lsp4j.jsonrpc.services.JsonNotification类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。