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

How to use
ShowMessageRequestParams
in
org.eclipse.lsp4j

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

origin: eclipse/eclipse.jdt.ls

/**
 * Sends the message to the client, to be displayed on a UI element.
 * Waits for an answer from the user and returns the selected
 * action.
 *
 * @param type
 * @param msg
 * @return
 */
public MessageActionItem showNotificationMessageRequest(MessageType type, String msg, List<MessageActionItem> actions){
  ShowMessageRequestParams $ = new ShowMessageRequestParams();
  $.setMessage(msg);
  $.setType(type);
  $.setActions(actions);
  return client.showMessageRequest($).join();
}
origin: eclipse/lsp4j

@Override
@Pure
public String toString() {
 ToStringBuilder b = new ToStringBuilder(this);
 b.add("actions", this.actions);
 b.add("type", getType());
 b.add("message", getMessage());
 return b.toString();
}

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

public ShowMessageRequestParamsDto(org.eclipse.lsp4j.ShowMessageRequestParams o) {
  if (o.getActions() == null) {
    setActions((java.util.List<org.eclipse.lsp4j.MessageActionItem>)null);
  } else {
      ArrayList<org.eclipse.lsp4j.MessageActionItem> actionsVal= new ArrayList<org.eclipse.lsp4j.MessageActionItem>();
      for (org.eclipse.lsp4j.MessageActionItem actionsValX : o.getActions()) {
        org.eclipse.lsp4j.MessageActionItem actionsValY = new MessageActionItemDto(actionsValX);
        actionsVal.add(actionsValY);
      }
    setActions((java.util.List<org.eclipse.lsp4j.MessageActionItem>)actionsVal);
  }
  if (o.getType() == null) {
    setType((org.eclipse.lsp4j.MessageType)null);
  } else {
    org.eclipse.lsp4j.MessageType typeVal = (org.eclipse.lsp4j.MessageType)makeDto(o.getType());;
    setType((org.eclipse.lsp4j.MessageType)typeVal);
  }
  if (o.getMessage() == null) {
    setMessage((java.lang.String)null);
  } else {
    java.lang.String messageVal = (java.lang.String)makeDto(o.getMessage());;
    setMessage((java.lang.String)messageVal);
  }
}
origin: org.eclipse.lsp4j/org.eclipse.lsp4j

@Override
@Pure
public String toString() {
 ToStringBuilder b = new ToStringBuilder(this);
 b.add("actions", this.actions);
 b.add("type", getType());
 b.add("message", getMessage());
 return b.toString();
}

org.eclipse.lsp4jShowMessageRequestParams

Javadoc

The show message request is sent from a server to a client to ask the client to display a particular message in the user class. In addition to the show message notification the request allows to pass actions and to wait for an answer from the client.

Most used methods

  • getMessage
  • getType
  • <init>
  • getActions
    The message action items to present.
  • setActions
    The message action items to present.
  • setMessage
  • setType

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Github Copilot alternatives
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