Package org.eclipse.lsp4j
Class WorkDoneProgressBegin
- java.lang.Object
-
- org.eclipse.lsp4j.WorkDoneProgressBegin
-
- All Implemented Interfaces:
WorkDoneProgressNotification
public class WorkDoneProgressBegin extends java.lang.Object implements WorkDoneProgressNotification
The $/progress notification payload to start progress reporting.Since 3.15.0
-
-
Constructor Summary
Constructors Constructor Description WorkDoneProgressBegin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.BooleangetCancellable()Controls if a cancel button should show to allow the user to cancel the long running operation.WorkDoneProgressKindgetKind()Always return beginjava.lang.StringgetMessage()Optional, more detailed associated progress message.java.lang.IntegergetPercentage()Optional progress percentage to display (value 100 is considered 100%).java.lang.StringgetTitle()Mandatory title of the progress operation.inthashCode()voidsetCancellable(java.lang.Boolean cancellable)Controls if a cancel button should show to allow the user to cancel the long running operation.voidsetMessage(java.lang.String message)Optional, more detailed associated progress message.voidsetPercentage(java.lang.Integer percentage)Optional progress percentage to display (value 100 is considered 100%).voidsetTitle(java.lang.String title)Mandatory title of the progress operation.java.lang.StringtoString()
-
-
-
Method Detail
-
getKind
public WorkDoneProgressKind getKind()
Always return begin- Specified by:
getKindin interfaceWorkDoneProgressNotification
-
getTitle
public java.lang.String getTitle()
Mandatory title of the progress operation. Used to briefly inform about the kind of operation being performed.Examples: "Indexing" or "Linking dependencies".
-
setTitle
public void setTitle(java.lang.String title)
Mandatory title of the progress operation. Used to briefly inform about the kind of operation being performed.Examples: "Indexing" or "Linking dependencies".
-
getCancellable
public java.lang.Boolean getCancellable()
Controls if a cancel button should show to allow the user to cancel the long running operation. Clients that don't support cancellation are allowed to ignore the setting.
-
setCancellable
public void setCancellable(java.lang.Boolean cancellable)
Controls if a cancel button should show to allow the user to cancel the long running operation. Clients that don't support cancellation are allowed to ignore the setting.
-
getMessage
public java.lang.String getMessage()
Optional, more detailed associated progress message. Contains complementary information to thetitle.Examples: "3/25 files", "project/src/module2", "node_modules/some_dep". If unset, the previous progress message (if any) is still valid.
-
setMessage
public void setMessage(java.lang.String message)
Optional, more detailed associated progress message. Contains complementary information to thetitle.Examples: "3/25 files", "project/src/module2", "node_modules/some_dep". If unset, the previous progress message (if any) is still valid.
-
getPercentage
public java.lang.Integer getPercentage()
Optional progress percentage to display (value 100 is considered 100%). If not provided infinite progress is assumed and clients are allowed to ignore the `percentage` value in subsequent in report notifications.The value should be steadily rising. Clients are free to ignore values that are not following this rule.
-
setPercentage
public void setPercentage(java.lang.Integer percentage)
Optional progress percentage to display (value 100 is considered 100%). If not provided infinite progress is assumed and clients are allowed to ignore the `percentage` value in subsequent in report notifications.The value should be steadily rising. Clients are free to ignore values that are not following this rule.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-