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:
parent
3c33b772b8
commit
3e548fced4
3 changed files with 6 additions and 2 deletions
BIN
bundles/org.eclipse.launchbar.ui/icons/connected.png
Normal file
BIN
bundles/org.eclipse.launchbar.ui/icons/connected.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 266 B |
BIN
bundles/org.eclipse.launchbar.ui/icons/disconnected.png
Normal file
BIN
bundles/org.eclipse.launchbar.ui/icons/disconnected.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 239 B |
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue