微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

org.eclipse.xtext.ide.server.rename.IRenameService的实例源码

项目: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);
}
项目:bromium    文件AbstractbromiumIdeModule.java   
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 举报,一经查实,本站将立刻删除。