congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Registration
Code IndexAdd Tabnine to your IDE (free)

How to use
Registration
in
org.eclipse.lsp4j

Best Java code snippets using org.eclipse.lsp4j.Registration (Showing top 6 results out of 315)

origin: eclipse/eclipse.jdt.ls

public void registerCapability(String id, String method, Object options) {
  if (registeredCapabilities.add(id)) {
    Registration registration = new Registration(id, method, options);
    RegistrationParams registrationParams = new RegistrationParams(Collections.singletonList(registration));
    client.registerCapability(registrationParams);
  }
}
origin: org.eclipse.che.core/che-core-api-languageserver

public RegistrationDto(org.eclipse.lsp4j.Registration o) {
  if (o.getMethod() == null) {
    setMethod((java.lang.String)null);
  } else {
    java.lang.String methodVal = (java.lang.String)makeDto(o.getMethod());;
    setMethod((java.lang.String)methodVal);
  }
  if (o.getId() == null) {
    setId((java.lang.String)null);
  } else {
    java.lang.String idVal = (java.lang.String)makeDto(o.getId());;
    setId((java.lang.String)idVal);
  }
  if (o.getRegisterOptions() == null) {
    setRegisterOptions((java.lang.Object)null);
  } else {
    java.lang.Object registerOptionsVal = (java.lang.Object)makeDto(o.getRegisterOptions());;
    setRegisterOptions((java.lang.Object)registerOptionsVal);
  }
}
origin: org.eclipse.xtext/org.eclipse.xtext.ide

protected IDisposable register(final String command, final IExecutableCommandService service) {
 final String requestId = UUID.randomUUID().toString();
 Registration _registration = new Registration();
 final Procedure1<Registration> _function = (Registration it) -> {
  it.setId(requestId);
  it.setMethod(ExecutableCommandRegistry.METHOD);
  ExecuteCommandOptions _executeCommandOptions = new ExecuteCommandOptions();
  final Procedure1<ExecuteCommandOptions> _function_1 = (ExecuteCommandOptions it_1) -> {
  };
  ExecuteCommandOptions _doubleArrow = ObjectExtensions.<ExecuteCommandOptions>operator_doubleArrow(_executeCommandOptions, _function_1);
  it.setRegisterOptions(_doubleArrow);
 };
 final Registration reg = ObjectExtensions.<Registration>operator_doubleArrow(_registration, _function);
origin: spring-projects/sts4

@Override
public void initialized() {
 async.withLog(log, () -> {
  Registration registration = new Registration(WORKSPACE_FOLDERS_CAPABILITY_ID, WORKSPACE_FOLDERS_CAPABILITY_NAME, null);
  RegistrationParams registrationParams = new RegistrationParams(Collections.singletonList(registration));
  getClient().registerCapability(registrationParams);
  this.initialized.complete(null); // triggers onInitialized handlers.
  log.info("Initialization completed after {} ms", ManagementFactory.getRuntimeMXBean().getUptime());
 });
}
origin: spring-projects/sts4

private void subscribe(String subscriptionId, List<String> globPattern, int kind) {
  server.doOnInitialized(() -> {
    if (server.canRegisterFileWatchersDynamically()) {
      List<FileSystemWatcher> watchers = globPattern.stream().map(pattern -> new FileSystemWatcher(pattern, kind)).collect(Collectors.toList());
      Registration registration = new Registration(subscriptionId, WORKSPACE_DID_CHANGE_WATCHED_FILES, new DidChangeWatchedFilesRegistrationOptions(watchers));
      server.getClient().registerCapability(new RegistrationParams(Arrays.asList(registration)));
    }
  });
}
origin: spring-projects/sts4

new Registration(registrationId,
    WORKSPACE_EXECUTE_COMMAND,
    ImmutableMap.of("commands", ImmutableList.of(callbackCommandId))
org.eclipse.lsp4jRegistration

Javadoc

General parameters to register for a capability.

Most used methods

  • <init>
  • getId
    The id used to register the request. The id can be used to deregister the request again.
  • getMethod
    The method / capability to register for.
  • getRegisterOptions
    Options necessary for the registration.
  • setId
    The id used to register the request. The id can be used to deregister the request again.
  • setMethod
    The method / capability to register for.
  • setRegisterOptions
    Options necessary for the registration.

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now