Package org.eclipse.lsp4j
Class WorkspaceFolder
- java.lang.Object
-
- org.eclipse.lsp4j.WorkspaceFolder
-
public class WorkspaceFolder extends java.lang.ObjectThe workspace/workspaceFolders request is sent from the server to the client to fetch the current open list of workspace folders. Returns null in the response if only a single file is open in the tool. Returns an empty array if a workspace is open but no folders are configured.Since 3.6.0
-
-
Constructor Summary
Constructors Constructor Description WorkspaceFolder()WorkspaceFolder(java.lang.String uri, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetName()The name of the workspace folder.java.lang.StringgetUri()The associated URI for this workspace folder.inthashCode()voidsetName(java.lang.String name)The name of the workspace folder.voidsetUri(java.lang.String uri)The associated URI for this workspace folder.java.lang.StringtoString()
-
-
-
Method Detail
-
getUri
public java.lang.String getUri()
The associated URI for this workspace folder.
-
setUri
public void setUri(java.lang.String uri)
The associated URI for this workspace folder.
-
getName
public java.lang.String getName()
The name of the workspace folder. Used to refer to this workspace folder in the user interface.
-
setName
public void setName(java.lang.String name)
The name of the workspace folder. Used to refer to this workspace folder in the user interface.
-
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
-
-