congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Unregistration
Code IndexAdd Tabnine 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)

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

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • JFileChooser (javax.swing)
  • JList (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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