1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-03 22:35:43 +02:00

launchbar: hook up connect/disconnect state for target selector

Change-Id: I93240fa2385053454fe9f84279eddc1518290d4f
This commit is contained in:
Alena Laskavaia 2015-05-04 13:44:16 -04:00
parent 3c33b772b8
commit 3e548fced4
3 changed files with 6 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

View file

@ -83,8 +83,12 @@ public class TargetSelector extends CSelector {
@Override
public Image getImage(Object element) {
if (element instanceof IRemoteConnection) {
//IRemoteConnection target = (IRemoteConnection) element;
// TODO need to get icon form ui service
IRemoteConnection target = (IRemoteConnection) element;
if (target.isOpen()) {
return Activator.getDefault().getImage("icons/connected.png");
} else {
return Activator.getDefault().getImage("icons/disconnected.png");
}
}
return super.getImage(element);
}