Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 174981 Details for
Bug 319986
CA pop-up unreadable: background from system but not foreground
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch for dltk
319986.txt (text/plain), 2.67 KB, created by
Zhongwei Zhao
on 2010-07-22 10:18:20 EDT
(
hide
)
Description:
patch for dltk
Filename:
MIME Type:
Creator:
Zhongwei Zhao
Created:
2010-07-22 10:18:20 EDT
Size:
2.67 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.dltk.ui >Index: src/org/eclipse/dltk/ui/text/HTMLUtils.java >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.dltk/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/text/HTMLUtils.java,v >retrieving revision 1.1 >diff -u -r1.1 HTMLUtils.java >--- src/org/eclipse/dltk/ui/text/HTMLUtils.java 18 Sep 2008 05:35:04 -0000 1.1 >+++ src/org/eclipse/dltk/ui/text/HTMLUtils.java 22 Jul 2010 14:17:17 -0000 >@@ -19,7 +19,7 @@ > public class HTMLUtils { > > private static RGB BG_COLOR_RGB = null; >- >+ private static RGB FG_COLOR_RGB= new RGB(0, 0, 0); // RGB value of info fg color on WindowsXP > static { > final Display display = Display.getDefault(); > if (display != null && !display.isDisposed()) { >@@ -31,6 +31,8 @@ > public void run() { > BG_COLOR_RGB = display.getSystemColor( > SWT.COLOR_INFO_BACKGROUND).getRGB(); >+ FG_COLOR_RGB = display.getSystemColor( >+ SWT.COLOR_INFO_FOREGROUND).getRGB(); > } > }); > } catch (SWTError err) { >@@ -50,4 +52,7 @@ > } > } > >+ public static RGB getFgColor() { >+ return FG_COLOR_RGB; >+ } > } >Index: src/org/eclipse/dltk/ui/text/completion/HTMLPrinter.java >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.dltk/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/text/completion/HTMLPrinter.java,v >retrieving revision 1.6 >diff -u -r1.6 HTMLPrinter.java >--- src/org/eclipse/dltk/ui/text/completion/HTMLPrinter.java 18 Sep 2008 05:37:58 -0000 1.6 >+++ src/org/eclipse/dltk/ui/text/completion/HTMLPrinter.java 22 Jul 2010 14:17:17 -0000 >@@ -57,7 +57,7 @@ > } > > public static void insertPageProlog(StringBuffer buffer, int position, >- RGB bgRGB, String styleSheet) { >+ RGB bgRGB, RGB fgRGB, String styleSheet) { > > if (bgRGB == null) > insertPageProlog(buffer, position, styleSheet); >@@ -68,7 +68,9 @@ > > appendStyleSheet(pageProlog, styleSheet); > >- pageProlog.append("<body text=\"#000000\" bgcolor=\""); //$NON-NLS-1$ >+ pageProlog.append("<body text=\""); //$NON-NLS-1$ >+ appendColor(pageProlog, fgRGB); >+ pageProlog.append("\" bgcolor=\""); //$NON-NLS-1$ > appendColor(pageProlog, bgRGB); > pageProlog.append("\">"); //$NON-NLS-1$ > >@@ -130,7 +132,7 @@ > > public static void insertPageProlog(StringBuffer buffer, int position, > String styleSheet) { >- insertPageProlog(buffer, position, HTMLUtils.getBgColor(), styleSheet); >+ insertPageProlog(buffer, position, HTMLUtils.getBgColor(), HTMLUtils.getFgColor(), styleSheet); > } > > public static void addPageProlog(StringBuffer buffer) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 319986
:
174957
| 174981