Codota Logo
Unregistration
Code IndexAdd Codota to your IDE (free)

How to use
Unregistration
in
org.eclipse.lsp4j

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: eclipse/eclipse.jdt.ls

public void unregisterCapability(String id, String method) {
  if (registeredCapabilities.remove(id)) {
    Unregistration unregistration = new Unregistration(id, method);
    UnregistrationParams unregistrationParams = new UnregistrationParams(Collections.singletonList(unregistration));
    client.unregisterCapability(unregistrationParams);
  }
}
origin: org.eclipse.che.core/che-core-api-languageserver

public UnregistrationDto(org.eclipse.lsp4j.Unregistration 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);
  }
}
origin: org.eclipse.xtext/org.eclipse.xtext.ide

this.registeredCommands.put(command, service);
final IDisposable _function_2 = () -> {
 Unregistration _unregistration = new Unregistration();
 final Procedure1<Unregistration> _function_3 = (Unregistration it) -> {
  it.setId(requestId);
  it.setMethod(ExecutableCommandRegistry.METHOD);
 };
 final Unregistration unReg = ObjectExtensions.<Unregistration>operator_doubleArrow(_unregistration, _function_3);
origin: spring-projects/sts4

private void unsubscribeAll(Collection<String> subscriptions) {
  List<Unregistration> unregisterations = subscriptions.stream().map(s -> new Unregistration(s, WORKSPACE_DID_CHANGE_WATCHED_FILES)).collect(Collectors.toList());
  if (!unregisterations.isEmpty()) {
    server.getClient().unregisterCapability(new UnregistrationParams(unregisterations));
  }
}
origin: spring-projects/sts4

@Override
public boolean unsubscribe(String subscriptionId) {
  server.doOnInitialized(() -> {
    if (server.canRegisterFileWatchersDynamically()) {
      server.getClient().unregisterCapability(new UnregistrationParams(Arrays.asList(new Unregistration(subscriptionId, WORKSPACE_DID_CHANGE_WATCHED_FILES))));
    }
  });
  return super.unsubscribe(subscriptionId);
}
origin: spring-projects/sts4

AsyncRunner.thenLog(log,
  this.server.getClient().unregisterCapability(new UnregistrationParams(ImmutableList.of(
      new Unregistration(registrationId, WORKSPACE_EXECUTE_COMMAND)
  )))
);
org.eclipse.lsp4jUnregistration

Javadoc

General parameters to unregister a capability.

Most used methods

  • <init>
  • getId
    The id used to unregister the request or notification. Usually an id provided during the register re
  • getMethod
    The method / capability to unregister for.
  • setId
    The id used to unregister the request or notification. Usually an id provided during the register re
  • setMethod
    The method / capability to unregister for.

Popular in Java

  • Reactive rest calls using spring rest template
  • getSystemService (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • getContentResolver (Context)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • String (java.lang)
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now