From 981c1604adfdc7daf722bda33a63a20130fc3fed Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Wed, 3 Jun 2015 13:31:34 +0200 Subject: Target Explorer: Improve visibility of warning icon overlay --- .../org.eclipse.tcf.te.tcf.ui/icons/ovr16/warning_ovr.gif | Bin 0 -> 173 bytes .../src/org/eclipse/tcf/te/tcf/ui/activator/UIPlugin.java | 4 +++- .../org/eclipse/tcf/te/tcf/ui/internal/ImageConsts.java | 7 ++++++- .../tcf/ui/navigator/images/PeerNodeImageDescriptor.java | 4 ++-- 4 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/icons/ovr16/warning_ovr.gif diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/icons/ovr16/warning_ovr.gif b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/icons/ovr16/warning_ovr.gif new file mode 100644 index 000000000..ee2dac4a9 Binary files /dev/null and b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/icons/ovr16/warning_ovr.gif differ diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/activator/UIPlugin.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/activator/UIPlugin.java index b200bb226..cfef674dc 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/activator/UIPlugin.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/activator/UIPlugin.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2014 Wind River Systems, Inc. and others. All rights reserved. + * Copyright (c) 2011, 2015 Wind River Systems, Inc. and others. All rights reserved. * This program and the accompanying materials are made available under the terms * of the Eclipse Public License v1.0 which accompanies this distribution, and is * available at http://www.eclipse.org/legal/epl-v10.html @@ -265,6 +265,8 @@ public class UIPlugin extends AbstractUIPlugin { registry.put(ImageConsts.BUSY_OVR, ImageDescriptor.createFromURL(url)); url = UIPlugin.getDefault().getBundle().getEntry(ImageConsts.IMAGE_DIR_ROOT + ImageConsts.IMAGE_DIR_OVR + "gold_ovr.gif"); //$NON-NLS-1$ registry.put(ImageConsts.GOLD_OVR, ImageDescriptor.createFromURL(url)); + url = UIPlugin.getDefault().getBundle().getEntry(ImageConsts.IMAGE_DIR_ROOT + ImageConsts.IMAGE_DIR_OVR + "warning_ovr.gif"); //$NON-NLS-1$ + registry.put(ImageConsts.WARNING_OVR, ImageDescriptor.createFromURL(url)); url = UIPlugin.getDefault().getBundle().getEntry(ImageConsts.IMAGE_DIR_ROOT + ImageConsts.IMAGE_DIR_OVR + "green_ovr.gif"); //$NON-NLS-1$ registry.put(ImageConsts.GREEN_OVR, ImageDescriptor.createFromURL(url)); url = UIPlugin.getDefault().getBundle().getEntry(ImageConsts.IMAGE_DIR_ROOT + ImageConsts.IMAGE_DIR_OVR + "grey_ovr.gif"); //$NON-NLS-1$ diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/internal/ImageConsts.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/internal/ImageConsts.java index 62c78bcff..43b621c75 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/internal/ImageConsts.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/internal/ImageConsts.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2014 Wind River Systems, Inc. and others. All rights reserved. + * Copyright (c) 2011, 2015 Wind River Systems, Inc. and others. All rights reserved. * This program and the accompanying materials are made available under the terms * of the Eclipse Public License v1.0 which accompanies this distribution, and is * available at http://www.eclipse.org/legal/epl-v10.html @@ -105,6 +105,11 @@ public interface ImageConsts { */ public static final String GOLD_OVR = "GoldOverlay"; //$NON-NLS-1$ + /** + * The key to access the peer object warning overlay image. + */ + public static final String WARNING_OVR = "WarningOverlay"; //$NON-NLS-1$ + /** * The key to access the peer object green overlay image. */ diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/navigator/images/PeerNodeImageDescriptor.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/navigator/images/PeerNodeImageDescriptor.java index d95b237fd..94e8f3f7c 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/navigator/images/PeerNodeImageDescriptor.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/navigator/images/PeerNodeImageDescriptor.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2014 Wind River Systems, Inc. and others. All rights reserved. + * Copyright (c) 2011, 2015 Wind River Systems, Inc. and others. All rights reserved. * This program and the accompanying materials are made available under the terms * of the Eclipse Public License v1.0 which accompanies this distribution, and is * available at http://www.eclipse.org/legal/epl-v10.html @@ -106,7 +106,7 @@ public class PeerNodeImageDescriptor extends AbstractImageDescriptor { if (connectState == IConnectable.STATE_CONNECTED) { if (warning) { - drawBottomRight(ImageConsts.GOLD_OVR); + drawBottomRight(ImageConsts.WARNING_OVR); } else { drawBottomRight(ImageConsts.GREEN_OVR); -- cgit v1.2.3