Tabnine Logo
DocumentOnTypeFormattingParams.getPosition
Code IndexAdd Tabnine to your IDE (free)

How to use
getPosition
method
in
org.eclipse.lsp4j.DocumentOnTypeFormattingParams

Best Java code snippets using org.eclipse.lsp4j.DocumentOnTypeFormattingParams.getPosition (Showing top 3 results out of 315)

origin: eclipse/eclipse.jdt.ls

public List<? extends org.eclipse.lsp4j.TextEdit> onTypeFormatting(DocumentOnTypeFormattingParams params, IProgressMonitor monitor) {
  return format(params.getTextDocument().getUri(), params.getOptions(), params.getPosition(), params.getCh(), monitor);
}
origin: org.eclipse.che.core/che-core-api-languageserver

public DocumentOnTypeFormattingParamsDto(org.eclipse.lsp4j.DocumentOnTypeFormattingParams o) {
  if (o.getPosition() == null) {
    setPosition((org.eclipse.lsp4j.Position)null);
  } else {
    org.eclipse.lsp4j.Position positionVal = new PositionDto(o.getPosition());
    setPosition((org.eclipse.lsp4j.Position)positionVal);
origin: org.eclipse.che.core/che-core-api-languageserver

DocumentOnTypeFormattingParams clone(
  DocumentOnTypeFormattingParams documentOnTypeFormattingParams) {
 if (documentOnTypeFormattingParams == null) {
  return null;
 }
 String ch = documentOnTypeFormattingParams.getCh();
 Position position = documentOnTypeFormattingParams.getPosition();
 FormattingOptions options = documentOnTypeFormattingParams.getOptions();
 TextDocumentIdentifier textDocument = documentOnTypeFormattingParams.getTextDocument();
 DocumentOnTypeFormattingParams cloned = new DocumentOnTypeFormattingParams();
 cloned.setCh(ch);
 cloned.setPosition(clone(position));
 cloned.setOptions(clone(options));
 cloned.setTextDocument(clone(textDocument));
 return cloned;
}
org.eclipse.lsp4jDocumentOnTypeFormattingParamsgetPosition

Javadoc

The position at which this request was send.

Popular methods of DocumentOnTypeFormattingParams

  • getOptions
  • getTextDocument
  • getCh
    The character that has been typed.
  • <init>
  • setCh
    The character that has been typed.
  • setOptions
  • setPosition
    The position at which this request was send.
  • setTextDocument

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JFrame (javax.swing)
  • Top PhpStorm 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