congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
DocumentOnTypeFormattingOptions
Code IndexAdd Tabnine to your IDE (free)

How to use
DocumentOnTypeFormattingOptions
in
org.eclipse.lsp4j

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

origin: org.eclipse.che.core/che-core-api-languageserver

private DocumentOnTypeFormattingOptions getDocumentOnTypeFormattingProvider() {
 DocumentOnTypeFormattingOptions leftOptions = left.getDocumentOnTypeFormattingProvider();
 DocumentOnTypeFormattingOptions rightOptions = right.getDocumentOnTypeFormattingProvider();
 if (leftOptions == null) {
  return rightOptions;
 }
 if (rightOptions == null) {
  return leftOptions;
 }
 DocumentOnTypeFormattingOptions result = new DocumentOnTypeFormattingOptions();
 List<String> triggerChars = new ArrayList<>();
 result.setFirstTriggerCharacter(leftOptions.getFirstTriggerCharacter());
 triggerChars.addAll(listish(leftOptions.getMoreTriggerCharacter()));
 triggerChars.addAll(listish(rightOptions.getMoreTriggerCharacter()));
 result.setMoreTriggerCharacter(triggerChars);
 return result;
}
origin: org.eclipse.che.core/che-core-api-languageserver

public DocumentOnTypeFormattingOptionsDto(org.eclipse.lsp4j.DocumentOnTypeFormattingOptions o) {
  if (o.getFirstTriggerCharacter() == null) {
    setFirstTriggerCharacter((java.lang.String)null);
  } else {
    java.lang.String firstTriggerCharacterVal = (java.lang.String)makeDto(o.getFirstTriggerCharacter());;
    setFirstTriggerCharacter((java.lang.String)firstTriggerCharacterVal);
  }
  if (o.getMoreTriggerCharacter() == null) {
    setMoreTriggerCharacter((java.util.List<java.lang.String>)null);
  } else {
      ArrayList<java.lang.String> moreTriggerCharacterVal= new ArrayList<java.lang.String>();
      for (java.lang.String moreTriggerCharacterValX : o.getMoreTriggerCharacter()) {
        java.lang.String moreTriggerCharacterValY = (java.lang.String)makeDto(moreTriggerCharacterValX);;
        moreTriggerCharacterVal.add(moreTriggerCharacterValY);
      }
    setMoreTriggerCharacter((java.util.List<java.lang.String>)moreTriggerCharacterVal);
  }
}
origin: eclipse/eclipse.jdt.ls

new DocumentOnTypeFormattingOptions(";", Arrays.asList("\n", "}")));
origin: org.eclipse.lsp4j/org.eclipse.lsp4j

result = prime * result + ((this.documentFormattingProvider== null) ? 0 : this.documentFormattingProvider.hashCode());
result = prime * result + ((this.documentRangeFormattingProvider== null) ? 0 : this.documentRangeFormattingProvider.hashCode());
result = prime * result + ((this.documentOnTypeFormattingProvider== null) ? 0 : this.documentOnTypeFormattingProvider.hashCode());
result = prime * result + ((this.renameProvider== null) ? 0 : this.renameProvider.hashCode());
result = prime * result + ((this.documentLinkProvider== null) ? 0 : this.documentLinkProvider.hashCode());
origin: org.eclipse.lsp4j/org.eclipse.lsp4j

 if (other.documentOnTypeFormattingProvider != null)
  return false;
} else if (!this.documentOnTypeFormattingProvider.equals(other.documentOnTypeFormattingProvider))
 return false;
if (this.renameProvider == null) {
origin: eclipse/eclipse.jdt.ls

capabilities.setDocumentOnTypeFormattingProvider(new DocumentOnTypeFormattingOptions(";", Arrays.asList("\n", "}")));
origin: eclipse/lsp4j

result = prime * result + ((this.documentFormattingProvider== null) ? 0 : this.documentFormattingProvider.hashCode());
result = prime * result + ((this.documentRangeFormattingProvider== null) ? 0 : this.documentRangeFormattingProvider.hashCode());
result = prime * result + ((this.documentOnTypeFormattingProvider== null) ? 0 : this.documentOnTypeFormattingProvider.hashCode());
result = prime * result + ((this.renameProvider== null) ? 0 : this.renameProvider.hashCode());
result = prime * result + ((this.documentLinkProvider== null) ? 0 : this.documentLinkProvider.hashCode());
origin: eclipse/lsp4j

 if (other.documentOnTypeFormattingProvider != null)
  return false;
} else if (!this.documentOnTypeFormattingProvider.equals(other.documentOnTypeFormattingProvider))
 return false;
if (this.renameProvider == null) {
org.eclipse.lsp4jDocumentOnTypeFormattingOptions

Javadoc

Format document on type options

Most used methods

  • <init>
  • equals
  • hashCode
  • getFirstTriggerCharacter
    A character on which formatting should be triggered, like `}`.
  • getMoreTriggerCharacter
    More trigger characters.
  • setFirstTriggerCharacter
    A character on which formatting should be triggered, like `}`.
  • setMoreTriggerCharacter
    More trigger characters.

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • setScale (BigDecimal)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • JTextField (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • 21 Best Atom Packages for 2021
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