Codota Logo
ShowMessageRequestParams
Code IndexAdd Codota 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 LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
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

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Reference (javax.naming)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now