diff --git a/eclipse-extensions/org.springframework.ide.eclipse.boot.dash/src/org/springframework/ide/eclipse/boot/dash/model/remote/GenericRemoteAppElement.java b/eclipse-extensions/org.springframework.ide.eclipse.boot.dash/src/org/springframework/ide/eclipse/boot/dash/model/remote/GenericRemoteAppElement.java index 6a082724d..45a6290de 100644 --- a/eclipse-extensions/org.springframework.ide.eclipse.boot.dash/src/org/springframework/ide/eclipse/boot/dash/model/remote/GenericRemoteAppElement.java +++ b/eclipse-extensions/org.springframework.ide.eclipse.boot.dash/src/org/springframework/ide/eclipse/boot/dash/model/remote/GenericRemoteAppElement.java @@ -102,7 +102,7 @@ public class GenericRemoteAppElement extends WrappingBootDashElement imp final private List> summaries = new ArrayList<>(); - DisposingFactory childFactory = new DisposingFactory(existingChildIds) { + DisposingFactory childFactory = new DisposingFactory<>(existingChildIds) { @Override protected GenericRemoteAppElement create(String appId) { GenericRemoteAppElement parent = GenericRemoteAppElement.this; @@ -182,7 +182,7 @@ public class GenericRemoteAppElement extends WrappingBootDashElement imp } } - LiveExpression baseRunState = new AsyncLiveExpression(RunState.UNKNOWN) { + LiveExpression baseRunState = new AsyncLiveExpression<>(RunState.UNKNOWN) { { dependsOn(app); dependsOn(children); @@ -253,7 +253,7 @@ public class GenericRemoteAppElement extends WrappingBootDashElement imp livePorts.dependsOn(getRunStateExp()); } - private LiveExpression debugPort = new AsyncLiveExpression(0) { + private LiveExpression debugPort = new AsyncLiveExpression<>(0) { //it is important that events for this exp are fired asynchronously to avoid starving ui thread // causing deadlock. (I.e. the important thing is to have the event listeners not be doing things @@ -270,7 +270,7 @@ public class GenericRemoteAppElement extends WrappingBootDashElement imp }; }; - private LiveExpression remoteDevtoolsUrl = new AsyncLiveExpression(null) { + private LiveExpression remoteDevtoolsUrl = new AsyncLiveExpression<>(null) { //it is important that events for this exp are fired asynchronously to avoid starving ui thread // causing deadlock. (I.e. the important thing is to have the event listeners not be doing things @@ -314,7 +314,7 @@ public class GenericRemoteAppElement extends WrappingBootDashElement imp private OldValueDisposer logConnection = new OldValueDisposer<>(this); private LiveExpression sumarizeFromChildren(AppDataSummarizer sumarizer) { - AsyncLiveExpression sumary = new AsyncLiveExpression(sumarizer.zero()) { + AsyncLiveExpression sumary = new AsyncLiveExpression<>(sumarizer.zero()) { @Override protected T compute() { T sum = sumarizer.getHere(GenericRemoteAppElement.this); @@ -687,7 +687,7 @@ public class GenericRemoteAppElement extends WrappingBootDashElement imp synchronized (this) { if (liveRequestMappings==null) { final LiveExpression> actuatorUrls = getActuatorUrls(); - liveRequestMappings = new AsyncLiveExpression>>(Failable.error(MissingLiveInfoMessages.NOT_YET_COMPUTED), "Fetch request mappings for '"+getStyledName(null).getString()+"'") { + liveRequestMappings = new AsyncLiveExpression<>(Failable.error(MissingLiveInfoMessages.NOT_YET_COMPUTED), "Fetch request mappings for '"+getStyledName(null).getString()+"'") { @Override protected Failable> compute() { Set targets = actuatorUrls.getValue(); @@ -720,7 +720,7 @@ public class GenericRemoteAppElement extends WrappingBootDashElement imp synchronized (this) { if (liveEnv == null) { final LiveExpression> actuatorUrls = getActuatorUrls(); - liveEnv = new AsyncLiveExpression>(Failable.error(MissingLiveInfoMessages.NOT_YET_COMPUTED), "Fetch env for '"+getStyledName(null).getString()+"'") { + liveEnv = new AsyncLiveExpression<>(Failable.error(MissingLiveInfoMessages.NOT_YET_COMPUTED), "Fetch env for '"+getStyledName(null).getString()+"'") { @Override protected Failable compute() { Set targets = actuatorUrls.getValue(); @@ -757,7 +757,7 @@ public class GenericRemoteAppElement extends WrappingBootDashElement imp synchronized (this) { if (liveBeans == null) { LiveExpression> actuatorUrls = getActuatorUrls(); - liveBeans = new AsyncLiveExpression>(Failable.error(MissingLiveInfoMessages.NOT_YET_COMPUTED), "Fetch beans for '"+getStyledName(null).getString()+"'") { + liveBeans = new AsyncLiveExpression<>(Failable.error(MissingLiveInfoMessages.NOT_YET_COMPUTED), "Fetch beans for '"+getStyledName(null).getString()+"'") { @Override protected Failable compute() { Set targets = actuatorUrls.getValue(); @@ -787,7 +787,7 @@ public class GenericRemoteAppElement extends WrappingBootDashElement imp public CompletableFuture enableDevtools(boolean enable) { if (enable) { - return refreshTracker.runAsync("Enable Devtools Support for application '" + getStyledName(null).getString() + "'", () -> { + return refreshTracker.runAsync("Enable DevTools Support for application '" + getStyledName(null).getString() + "'", () -> { App app = getAppData(); if (app instanceof SystemPropertySupport) { SystemPropertySupport sysprops = (SystemPropertySupport) app; @@ -798,7 +798,7 @@ public class GenericRemoteAppElement extends WrappingBootDashElement imp } }); } else { - return refreshTracker.runAsync("Disable Devtools Support for application '" + getStyledName(null).getString() + "'", () -> { + return refreshTracker.runAsync("Disable DevTools Support for application '" + getStyledName(null).getString() + "'", () -> { App app = getAppData(); if (app instanceof SystemPropertySupport) { SystemPropertySupport sysprops = (SystemPropertySupport) app; diff --git a/eclipse-extensions/org.springframework.ide.eclipse.boot.launch/plugin.xml b/eclipse-extensions/org.springframework.ide.eclipse.boot.launch/plugin.xml index f1dea13e0..ed7ec551c 100644 --- a/eclipse-extensions/org.springframework.ide.eclipse.boot.launch/plugin.xml +++ b/eclipse-extensions/org.springframework.ide.eclipse.boot.launch/plugin.xml @@ -45,10 +45,10 @@ @@ -64,11 +64,11 @@ id="org.springframework.ide.eclipse.boot.devtools.client.launch"> @@ -93,7 +93,7 @@