mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-10 10:35:23 +02:00
launchbar: when there is no descriptors show all connections
- when you bring IDE in new workspace all drops downs are empty, so you create new connection from target drop down, but its still remain empty after connection is created which is quite confusing. So its better to show all connection when descriptor is null (i.e. no descriptor at all) Change-Id: Idef1b676baef4978f8327135691e485ca287d7fe
This commit is contained in:
parent
4b6a04fac1
commit
806ae521c6
1 changed files with 5 additions and 5 deletions
|
@ -643,7 +643,7 @@ public class LaunchBarManager implements ILaunchBarManager, IRemoteConnectionCha
|
|||
|
||||
public List<IRemoteConnection> getLaunchTargets(ILaunchDescriptor descriptor) throws CoreException {
|
||||
if (descriptor == null)
|
||||
return Collections.emptyList();
|
||||
return remoteServicesManager.getAllRemoteConnections();
|
||||
|
||||
List<IRemoteConnection> targets = new ArrayList<>();
|
||||
for (IRemoteConnection target : remoteServicesManager.getAllRemoteConnections()) {
|
||||
|
@ -889,7 +889,7 @@ public class LaunchBarManager implements ILaunchBarManager, IRemoteConnectionCha
|
|||
return;
|
||||
fireLaunchTargetsChanged();
|
||||
// if we added new target we probably want to use it
|
||||
if (activeLaunchDesc != null && supportsTarget(activeLaunchDesc, target)) {
|
||||
if (activeLaunchDesc == null || supportsTarget(activeLaunchDesc, target)) {
|
||||
setActiveLaunchTarget(target);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue