Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318964 - The preload message shows in system tray is not readable
Summary: The preload message shows in system tray is not readable
Status: CLOSED DUPLICATE of bug 309907
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.5.1   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 319070 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-06 04:15 EDT by yyliuyan CLA
Modified: 2010-07-14 22:05 EDT (History)
7 users (show)

See Also:


Attachments
Program examples (61.33 KB, application/octet-stream)
2010-07-06 04:58 EDT, yyliuyan CLA
no flags Details
results (11.61 KB, image/x-png)
2010-07-06 05:03 EDT, yyliuyan CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description yyliuyan CLA 2010-07-06 04:15:29 EDT
Build Identifier: M20090211-1700

Tray tray = Display.getDefault().getSystemTray();
TrayItem item = new TrayItem(tray, SWT.NONE);
item.setText("rcpϵͳ");
item.setToolTipText("rcpϵͳ");
final ToolTip tip = new ToolTip(getShell(), SWT.BALLOON| SWT.ICON_INFORMATION);
tip.setAutoHide(true);
item.setToolTip(tip);
URL url = null;
try {
   url = new URL(				"file:\\D:\\IBM\\workstation\\menu\\UnbuntuTray\\icons\\alt_window_32.gif");
} catch (MalformedURLException e) {
   e.printStackTrace();
}
ImageDescriptor imageDesc = ImageDescriptor.createFromURL(url);
Image image = imageDesc.createImage();
item.setImage(image);
tip.setMessage("ϵͳÍÐÅÌÕýÔÚÔËÐÐ");
tip.setVisible(true);
item.addSelectionListener(this);
item.addListener(SWT.MenuDetect, this);
menu = new Menu(getShell(), SWT.POP_UP);

Reproducible: Always

Steps to Reproduce:
1. Launch eclipse application .
2. The preload message shows in system tray is not readable
Comment 1 yyliuyan CLA 2010-07-06 04:58:04 EDT
Created attachment 173512 [details]
Program examples
Comment 2 yyliuyan CLA 2010-07-06 05:03:26 EDT
Created attachment 173513 [details]
results
Comment 3 yyliuyan CLA 2010-07-06 05:51:39 EDT
(In reply to comment #0)
> Build Identifier: M20090211-1700
> Tray tray = Display.getDefault().getSystemTray();
> TrayItem item = new TrayItem(tray, SWT.NONE);
> item.setText("rcp System");
> item.setToolTipText("rcp System");
> final ToolTip tip = new ToolTip(getShell(), SWT.BALLOON| SWT.ICON_INFORMATION);
> tip.setAutoHide(true);
> item.setToolTip(tip);
> URL url = null;
> try {
>    url = new URL(               
> "file:\\D:\\IBM\\workstation\\menu\\UnbuntuTray\\icons\\alt_window_32.gif");
> } catch (MalformedURLException e) {
>    e.printStackTrace();
> }
> ImageDescriptor imageDesc = ImageDescriptor.createFromURL(url);
> Image image = imageDesc.createImage();
> item.setImage(image);
> tip.setMessage("System tray is running");
> tip.setVisible(true);
> item.addSelectionListener(this);
> item.addListener(SWT.MenuDetect, this);
> menu = new Menu(getShell(), SWT.POP_UP);
> Reproducible: Always
> Steps to Reproduce:
> 1. Launch eclipse application .
> 2. The preload message shows in system tray is not readable
Comment 4 yyliuyan CLA 2010-07-06 05:52:50 EDT
(In reply to comment #0)
> Build Identifier: M20090211-1700
> Tray tray = Display.getDefault().getSystemTray();
> TrayItem item = new TrayItem(tray, SWT.NONE);
> item.setText("rcp System ");
> item.setToolTipText("rcp System ");
> final ToolTip tip = new ToolTip(getShell(), SWT.BALLOON| SWT.ICON_INFORMATION);
> tip.setAutoHide(true);
> item.setToolTip(tip);
> URL url = null;
> try {
>    url = new URL(               
> "file:\\D:\\IBM\\workstation\\menu\\UnbuntuTray\\icons\\alt_window_32.gif");
> } catch (MalformedURLException e) {
>    e.printStackTrace();
> }
> ImageDescriptor imageDesc = ImageDescriptor.createFromURL(url);
> Image image = imageDesc.createImage();
> item.setImage(image);
> tip.setMessage("System tray is running");
> tip.setVisible(true);
> item.addSelectionListener(this);
> item.addListener(SWT.MenuDetect, this);
> menu = new Menu(getShell(), SWT.POP_UP);
> Reproducible: Always
> Steps to Reproduce:
> 1. Launch eclipse application .
> 2. The preload message shows in system tray is not readable
Comment 5 yyliuyan CLA 2010-07-06 05:56:05 EDT
Build Identifier: M20090211-1700
Tray tray = Display.getDefault().getSystemTray();
TrayItem item = new TrayItem(tray, SWT.NONE);
item.setText("rcp System ");
item.setToolTipText("rcp System ");
 final ToolTip tip = new ToolTip(getShell(), SWT.BALLOON| SWT.ICON_INFORMATION);
tip.setAutoHide(true);
 item.setToolTip(tip);
URL url = null;
 try {
   url = new URL(               
"file:\\D:\\IBM\\workstation\\menu\\UnbuntuTray\\icons\\alt_window_32.gif");
 } catch (MalformedURLException e) {
   e.printStackTrace();
 }
ImageDescriptor imageDesc = ImageDescriptor.createFromURL(url);
Image image = imageDesc.createImage();
item.setImage(image);
tip.setMessage("System tray is running");
tip.setVisible(true);
item.addSelectionListener(this);
item.addListener(SWT.MenuDetect, this);
menu = new Menu(getShell(), SWT.POP_UP);
Reproducible: Always
Steps to Reproduce:
Comment 6 Remy Suen CLA 2010-07-06 21:50:14 EDT
Did you try changing your OS's tooltip colour preferences?
Comment 7 Darin Wright CLA 2010-07-12 15:45:09 EDT
*** Bug 319070 has been marked as a duplicate of this bug. ***
Comment 8 yyliuyan CLA 2010-07-13 22:39:14 EDT
(In reply to comment #6)
> Did you try changing your OS's tooltip colour preferences?

Yes,problems still exist.
Comment 9 Felipe Heidrich CLA 2010-07-14 08:51:14 EDT

*** This bug has been marked as a duplicate of bug 309907 ***
Comment 10 yyliuyan CLA 2010-07-14 22:05:17 EDT
(In reply to comment #6)
> Did you try changing your OS's tooltip colour preferences?

(In reply to comment #8)
> (In reply to comment #6)
> > Did you try changing your OS's tooltip colour preferences?
> Yes,problems still exist.

Changing OS's tooltip,restart os.This problem does not exist.