forked from eclipse-jdtls/eclipse.jdt.ls
-
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.
Fixes eclipse-jdtls#404 Signed-off-by: Fred Bricon <[email protected]>
- Loading branch information
Showing
9 changed files
with
450 additions
and
145 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
39 changes: 39 additions & 0 deletions
39
org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/IConstants.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,39 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2018 Red Hat Inc. 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 | ||
* | ||
* Contributors: | ||
* Red Hat Inc. - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.jdt.ls.core.internal; | ||
|
||
/** | ||
* Holds commonly used constants in jdt.ls | ||
* | ||
* @author Fred Bricon | ||
*/ | ||
public interface IConstants { | ||
|
||
/** | ||
* Plugin id | ||
*/ | ||
public static final String PLUGIN_ID = "org.eclipse.jdt.ls.core"; | ||
|
||
/** | ||
* Jobs family id | ||
*/ | ||
public static final String JOBS_FAMILY = PLUGIN_ID + ".jobs"; | ||
|
||
/** | ||
* Update project job family id | ||
*/ | ||
public static final String UPDATE_PROJECT_FAMILY = JOBS_FAMILY + ".updateProject"; | ||
|
||
/** | ||
* Update workspace folders job family id | ||
*/ | ||
public static final String UPDATE_WORKSPACE_FOLDERS_FAMILY = JOBS_FAMILY + ".updateWorkspaceFolders"; | ||
} |
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
126 changes: 126 additions & 0 deletions
126
org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/ProgressReport.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,126 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2017 Red Hat Inc. 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 | ||
* | ||
* Contributors: | ||
* Red Hat Inc. - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.jdt.ls.core.internal; | ||
|
||
import com.google.gson.annotations.Expose; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
/** | ||
* Progress Report sent to clients. | ||
* | ||
* @author Fred Bricon | ||
*/ | ||
public class ProgressReport { | ||
|
||
@SerializedName("id") | ||
@Expose | ||
private String id; | ||
|
||
@SerializedName("task") | ||
@Expose | ||
private String task; | ||
|
||
@SerializedName("status") | ||
@Expose | ||
private String status; | ||
|
||
@SerializedName("totalWork") | ||
@Expose | ||
private int totalWork; | ||
|
||
@SerializedName("workDone") | ||
@Expose | ||
private int workDone; | ||
|
||
@SerializedName("complete") | ||
@Expose | ||
private boolean complete; | ||
|
||
public ProgressReport(String progressId) { | ||
this.id = progressId; | ||
} | ||
|
||
/** | ||
* @return the task | ||
*/ | ||
public String getTask() { | ||
return task; | ||
} | ||
|
||
/** | ||
* @param task | ||
* the task to set | ||
*/ | ||
public void setTask(String task) { | ||
this.task = task; | ||
} | ||
|
||
/** | ||
* @return the status | ||
*/ | ||
public String getStatus() { | ||
return status; | ||
} | ||
|
||
/** | ||
* @param status | ||
* the status to set | ||
*/ | ||
public void setStatus(String status) { | ||
this.status = status; | ||
} | ||
|
||
/** | ||
* @return the complete | ||
*/ | ||
public boolean isComplete() { | ||
return complete; | ||
} | ||
|
||
/** | ||
* @param complete | ||
* the complete to set | ||
*/ | ||
public void setComplete(boolean complete) { | ||
this.complete = complete; | ||
} | ||
|
||
/** | ||
* @return the totalWork | ||
*/ | ||
public int getTotalWork() { | ||
return totalWork; | ||
} | ||
|
||
/** | ||
* @param totalWork | ||
* the totalWork to set | ||
*/ | ||
public void setTotalWork(int totalWork) { | ||
this.totalWork = totalWork; | ||
} | ||
|
||
/** | ||
* @return the workDone | ||
*/ | ||
public int getWorkDone() { | ||
return workDone; | ||
} | ||
|
||
/** | ||
* @param workDone | ||
* the workDone to set | ||
*/ | ||
public void setWorkDone(int workDone) { | ||
this.workDone = workDone; | ||
} | ||
|
||
} |
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.