@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; }