/** * 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(); }
@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(); }
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); } }
@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(); }