public void setImplementationProvider(final StaticRegistrationOptions implementationProvider) { if (implementationProvider == null) { this.implementationProvider = null; return; } this.implementationProvider = Either.forRight(implementationProvider); }
public void setDocumentation(final String documentation) { if (documentation == null) { this.documentation = null; return; } this.documentation = Either.forLeft(documentation); }
protected ResponseMessage createResponseMessage(RequestMessage requestMessage) { ResponseMessage responseMessage = new ResponseMessage(); responseMessage.setRawId(requestMessage.getRawId()); responseMessage.setJsonrpc(MessageConstants.JSONRPC_VERSION); return responseMessage; }
public void setDocumentation(final MarkupContent documentation) { if (documentation == null) { this.documentation = null; return; } this.documentation = Either.forRight(documentation); }
public void setCodeActionProvider(final Boolean codeActionProvider) { if (codeActionProvider == null) { this.codeActionProvider = null; return; } this.codeActionProvider = Either.forLeft(codeActionProvider); }
protected ResponseMessage createResponseMessage(RequestMessage requestMessage) { ResponseMessage responseMessage = new ResponseMessage(); responseMessage.setRawId(requestMessage.getRawId()); responseMessage.setJsonrpc(MessageConstants.JSONRPC_VERSION); return responseMessage; }
public void setChangeNotifications(final Boolean changeNotifications) { if (changeNotifications == null) { this.changeNotifications = null; return; } this.changeNotifications = Either.forRight(changeNotifications); }
public void setContents(final List<Either<String, MarkedString>> contents) { if (contents == null) { this.contents = null; return; } this.contents = Either.forLeft(contents); }