Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Torregrosa Paez2015-08-05 10:14:45 +0000
committerPablo Torregrosa Paez2015-08-05 10:14:45 +0000
commit4d1dd8ec7c3076c0e82193d2e3b6cedd9ecf8293 (patch)
tree50edae35fe32ac34c8b5b0be095c912dbe80a794
parent3b2aca8bd0940fd668ffe6a83d8fd1eb2334169f (diff)
downloadorg.eclipse.tcf-4d1dd8ec7c3076c0e82193d2e3b6cedd9ecf8293.tar.gz
org.eclipse.tcf-4d1dd8ec7c3076c0e82193d2e3b6cedd9ecf8293.tar.xz
org.eclipse.tcf-4d1dd8ec7c3076c0e82193d2e3b6cedd9ecf8293.zip
Target Explorer: Customized tooltip uses warning color like toolbar.
Change-Id: If300d7780c4a586df76f8af2f06443b6c9f755b3 Signed-off-by: Pablo Torregrosa Paez <pablo.torregrosa@windriver.com>
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/handler/DefaultContextSelectorToolbarContribution.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/handler/DefaultContextSelectorToolbarContribution.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/handler/DefaultContextSelectorToolbarContribution.java
index 4780f8a83..9c6809176 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/handler/DefaultContextSelectorToolbarContribution.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/handler/DefaultContextSelectorToolbarContribution.java
@@ -203,17 +203,18 @@ implements IWorkbenchContribution, IEventListener, IPeerModelListener, IProperty
// Customized tooltip
Display display = PlatformUI.getWorkbench().getDisplay();
customTooltipShell = new Shell(display, SWT.ON_TOP | SWT.NO_FOCUS | SWT.TOOL);
- customTooltipShell.setBackground(lightYellowColor);
- customTooltipShell.setLayout(new GridLayout());
+ GridLayout customTooltipShellLayout = new GridLayout();
+ customTooltipShellLayout.marginWidth = 0; customTooltipShellLayout.marginHeight = 0;
+ customTooltipShellLayout.verticalSpacing = 0; customTooltipShellLayout.horizontalSpacing = 0;
+ customTooltipShell.setLayout(customTooltipShellLayout);
customTooltipShell.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
customTooltipComposite = new Composite(customTooltipShell, SWT.NONE);
-
customTooltipComposite.setLayout(new GridLayout());
- customTooltipComposite.setBackground(lightYellowColor);
+ customTooltipComposite.setBackground(warningBackgroundColor);
customTooltipText = new FormText(customTooltipComposite, SWT.NO_FOCUS);
- customTooltipText.setBackground(lightYellowColor);
+ customTooltipText.setBackground(warningBackgroundColor);
customTooltipText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
customTooltipText.addHyperlinkListener(this);
customTooltipText.addMouseTrackListener(new MouseTrackListener() {
@@ -434,6 +435,8 @@ implements IWorkbenchContribution, IEventListener, IPeerModelListener, IProperty
} else if (pStyle.equals(PanelStyle.WARNING)) {
labelPanel.setBackground(warningBackgroundColor);
text.setForeground(PlatformUI.getWorkbench().getDisplay().getSystemColor(SWT.COLOR_BLACK));
+ customTooltipComposite.setBackground(warningBackgroundColor);
+ customTooltipText.setBackground(warningBackgroundColor);
}
}
}

Back to the top