Constructor for the contributor was private. Needs to be public
for reflective access.
This commit is contained in:
Kris De Volder
2020-09-28 11:28:43 -07:00
parent 0787fe50fb
commit 074fc76591
2 changed files with 12 additions and 5 deletions

View File

@@ -22,6 +22,7 @@ import java.util.Map;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.lsp4e.server.StreamConnectionProvider;
@@ -49,6 +50,14 @@ import com.google.common.collect.ImmutableSet;
* @author Martin Lippert
*/
public class DelegatingStreamConnectionProvider implements StreamConnectionProvider {
private static final boolean DEBUG = (""+Platform.getLocation()).contains("kdvolder");
private static void debug(String string) {
if (DEBUG) {
System.out.println(string);
}
}
private StreamConnectionProvider provider;
private ResourceListener fResourceListener;
@@ -183,9 +192,7 @@ public class DelegatingStreamConnectionProvider implements StreamConnectionProvi
bootJavaObj.put("scan-java-test-sources", scanTestJavaSources);
bootJavaObj.put("change-detection", bootChangeDetection);
bootJavaObj.put("validation", validation);
bootJavaObj.put("remote-apps", getAllRemoteApps());
settings.put("boot-java", bootJavaObj);
this.languageServer.getWorkspaceService().didChangeConfiguration(new DidChangeConfigurationParams(settings));

View File

@@ -20,9 +20,9 @@ import com.google.common.collect.ImmutableSet;
public class RemoteAppsFromPrefsDataContributor implements RemoteBootAppsDataHolder.Contributor {
private RemoteAppsPrefs prefs = new RemoteAppsPrefs();
private RemoteAppsFromPrefsDataContributor() {}
public RemoteAppsFromPrefsDataContributor() {}
private ObservableSet<RemoteAppData> remoteApps = ObservableSet.create(() -> ImmutableSet.copyOf(prefs.getRemoteAppData()));
{
Disposable d = RemoteAppsPrefs.addListener(remoteApps::refresh);