forked from eclipse-lsp4j/lsp4j
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue eclipse-lsp4j#132: Proposal for workspaceFolders
Signed-off-by: Mickael Istria <mistria@redhat.com>
- Loading branch information
1 parent
a9bbfbd
commit 4ae0ab3
Showing
12 changed files
with
711 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
org.eclipse.lsp4j/src/main/xtend-gen/org/eclipse/lsp4j/DidChangeWorkspaceFoldersParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/** | ||
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
package org.eclipse.lsp4j; | ||
|
||
import com.google.common.annotations.Beta; | ||
import org.eclipse.lsp4j.WorkspaceFoldersChangeEvent; | ||
import org.eclipse.lsp4j.jsonrpc.validation.NonNull; | ||
import org.eclipse.xtext.xbase.lib.Pure; | ||
import org.eclipse.xtext.xbase.lib.util.ToStringBuilder; | ||
|
||
@Beta | ||
@SuppressWarnings("all") | ||
public class DidChangeWorkspaceFoldersParams { | ||
/** | ||
* The actual workspace folder change event. | ||
*/ | ||
@NonNull | ||
private WorkspaceFoldersChangeEvent event; | ||
|
||
/** | ||
* The actual workspace folder change event. | ||
*/ | ||
@Pure | ||
@NonNull | ||
public WorkspaceFoldersChangeEvent getEvent() { | ||
return this.event; | ||
} | ||
|
||
/** | ||
* The actual workspace folder change event. | ||
*/ | ||
public void setEvent(@NonNull final WorkspaceFoldersChangeEvent event) { | ||
this.event = event; | ||
} | ||
|
||
@Override | ||
@Pure | ||
public String toString() { | ||
ToStringBuilder b = new ToStringBuilder(this); | ||
b.add("event", this.event); | ||
return b.toString(); | ||
} | ||
|
||
@Override | ||
@Pure | ||
public boolean equals(final Object obj) { | ||
if (this == obj) | ||
return true; | ||
if (obj == null) | ||
return false; | ||
if (getClass() != obj.getClass()) | ||
return false; | ||
DidChangeWorkspaceFoldersParams other = (DidChangeWorkspaceFoldersParams) obj; | ||
if (this.event == null) { | ||
if (other.event != null) | ||
return false; | ||
} else if (!this.event.equals(other.event)) | ||
return false; | ||
return true; | ||
} | ||
|
||
@Override | ||
@Pure | ||
public int hashCode() { | ||
final int prime = 31; | ||
int result = 1; | ||
result = prime * result + ((this.event== null) ? 0 : this.event.hashCode()); | ||
return result; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.