• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java JsonNotification类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.eclipse.lsp4j.jsonrpc.services.JsonNotification的典型用法代码示例。如果您正苦于以下问题:Java JsonNotification类的具体用法?Java JsonNotification怎么用?Java JsonNotification使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



JsonNotification类属于org.eclipse.lsp4j.jsonrpc.services包,在下文中一共展示了JsonNotification类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: publishDiagnostics

import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
/**
 * Diagnostics notifications are sent from the server to the client to
 * signal results of validation runs.
 */
@JsonNotification("textDocument/publishDiagnostics")
void publishDiagnostics(PublishDiagnosticsParams diagnostics);
 
开发者ID:smarr,项目名称:SOMns-vscode,代码行数:7,代码来源:LanguageClient.java


示例17: showMessage

import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
/**
 * The show message notification is sent from a server to a client to ask
 * the client to display a particular message in the user interface.
 */
@JsonNotification("window/showMessage")
void showMessage(MessageParams messageParams);
 
开发者ID:smarr,项目名称:SOMns-vscode,代码行数:7,代码来源:LanguageClient.java


示例18: logMessage

import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
/**
 * The log message notification is send from the server to the client to ask
 * the client to log a particular message.
 */
@JsonNotification("window/logMessage")
void logMessage(MessageParams message);
 
开发者ID:smarr,项目名称:SOMns-vscode,代码行数:7,代码来源:LanguageClient.java


示例19: initialized

import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
/**
 * The initialized notification is sent from the client to the server after
 * the client received the result of the initialize request but before the
 * client is sending any other request or notification to the server. The
 * server can use the initialized notification for example to dynamically
 * register capabilities.
 */
@JsonNotification
default void initialized(InitializedParams params) {
	initialized();
}
 
开发者ID:smarr,项目名称:SOMns-vscode,代码行数:12,代码来源:LanguageServer.java


示例20: exit

import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; //导入依赖的package包/类
/**
 * A notification to ask the server to exit its process.
 */
@JsonNotification
void exit();
 
开发者ID:smarr,项目名称:SOMns-vscode,代码行数:6,代码来源:LanguageServer.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java UnitDefinition类代码示例发布时间:2022-05-22
下一篇:
Java ExitMonitorStmt类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap