Class WorkspaceFolder


  • public class WorkspaceFolder
    extends java.lang.Object
    The 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

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getName()
      The name of the workspace folder.
      java.lang.String getUri()
      The associated URI for this workspace folder.
      int hashCode()  
      void setName​(java.lang.String name)
      The name of the workspace folder.
      void setUri​(java.lang.String uri)
      The associated URI for this workspace folder.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WorkspaceFolder

        public WorkspaceFolder()
      • WorkspaceFolder

        public WorkspaceFolder​(java.lang.String uri,
                               java.lang.String name)
    • 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:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object