项目:xtext-core
文件:LanguageServerImpl.java
@Override
public CompletableFuture<WorkspaceEdit> rename(final RenameParams params) {
final Function1<CancelIndicator,WorkspaceEdit> _function = (CancelIndicator cancelIndicator) -> {
WorkspaceEdit _xblockexpression = null;
{
final URI uri = this._uriExtensions.toUri(params.getTextDocument().getUri());
final IResourceServiceProvider resourceServiceProvider = this.languagesRegistry.getResourceServiceProvider(uri);
IRenameService _get = null;
if (resourceServiceProvider!=null) {
_get=resourceServiceProvider.<IRenameService>get(IRenameService.class);
}
final IRenameService renameService = _get;
if ((renameService == null)) {
return new WorkspaceEdit();
}
_xblockexpression = renameService.rename(this.workspaceManager,params,cancelIndicator);
}
return _xblockexpression;
};
return this.requestManager.<WorkspaceEdit>runRead(_function);
}
public Class<? extends IRenameService> bindIRenameService() {
return RenameService.class;
}
项目:xtext-extras
文件:AbstractPureXbaseIdeModule.java
public Class<? extends IRenameService> bindIRenameService() {
return RenameService.class;
}
项目:xtext-core
文件:AbstractIndentationAwareUiTestLanguageIdeModule.java
public Class<? extends IRenameService> bindIRenameService() {
return RenameService.class;
}
项目:xtext-core
文件:AbstractPartialSerializationTestLanguageIdeModule.java
public Class<? extends IRenameService> bindIRenameService() {
return RenameService.class;
}
项目:xtext-core
文件:AbstractPartialContentAssistTestLanguageIdeModule.java
public Class<? extends IRenameService> bindIRenameService() {
return RenameService.class;
}
项目:xtext-core
文件:AbstractTestLanguageIdeModule.java
public Class<? extends IRenameService> bindIRenameService() {
return RenameService.class;
}
项目:xtext-core
文件:AbstractXtextIdeModule.java
public Class<? extends IRenameService> bindIRenameService() {
return RenameService.class;
}
项目:xtext-core
文件:AbstractFileAwareTestLanguageIdeModule.java
public Class<? extends IRenameService> bindIRenameService() {
return RenameService.class;
}
项目:xtext-core
文件:AbstractXtextGrammarTestLanguageIdeModule.java
public Class<? extends IRenameService> bindIRenameService() {
return RenameService.class;
}
项目:xtext-core
文件:AbstractNoJdtTestLanguageIdeModule.java
public Class<? extends IRenameService> bindIRenameService() {
return RenameService.class;
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。