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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
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
  • getSystemService (Context)
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ImageIO (javax.imageio)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top 17 Plugins for Android Studio
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