Bug 102987 - [preferences] Provide UI for overriding the default style sheets used in Javadoc View and tool tip
Summary: [preferences] Provide UI for overriding the default style sheets used in Java...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 145541 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-07 05:07 EDT by Stanimir Stamenkov CLA
Modified: 2011-10-10 05:43 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stanimir Stamenkov CLA 2005-07-07 05:07:51 EDT
Currently there are "JavadocViewStyleSheet.css" and "JavadocHoverStyleSheet.css"
in the JDT UI plugin which control the appearance of the Javadoc View and
tooltip. It is inconvenient to hack the plugin JAR to change these.

I think the easiest and most flexible way would be to provide fields to specify
user created stylesheets. The more CSS independent but not such flexible would
be to provide separate options like: "base font", "colors", etc.

I've noticed there are some style rules (like 'body { font-size: x-small }'?)
applied with higher priority, which don't present in the above mentioned
stylesheets. I think such should not be forced over the user stylesheets. They
could be set as defaults but should not override the user styles.
Comment 1 Dani Megert CLA 2006-06-06 10:35:21 EDT
*** Bug 145541 has been marked as a duplicate of this bug. ***
Comment 2 Tom Hofmann CLA 2006-07-26 04:50:33 EDT
I believe the main problem (font size) of this request has been fixed with bug 142698. Do you think that overriding the entire style sheet is still required?
Comment 3 Stanimir Stamenkov CLA 2006-07-26 09:26:41 EDT
It would be nice (still I would like) to have an option to override the used stylesheets through some INI file properties pointing to custom stylesheets, but as this is probably not a usability problem anymore - it depends if others would demand it.
Comment 4 Dani Megert CLA 2006-07-31 07:53:17 EDT
The font can now be set. No plans to work on this PR.
Comment 5 Dani Megert CLA 2007-06-22 09:59:25 EDT
Get rid of deprecated state.
Comment 6 Michael Piefel CLA 2009-09-17 09:38:12 EDT
This is with 3.5 under Windows 7 now.

I still cannot set the font used for fixed width in Javadoc: The font is taken from Internet Explorer’s preferences.
Comment 7 Raksha Vasisht CLA 2011-10-09 11:24:50 EDT
(In reply to comment #6)
> This is with 3.5 under Windows 7 now.
> 
> I still cannot set the font used for fixed width in Javadoc: The font is taken
> from Internet Explorer’s preferences.


I cannot reproduce this with 3.8 M2 on windows 7. Since the request to be able to set font size has been fixed,  and it is not a usability problem anymore, I would remove the keyword and mark this as fixed. Dani?
Comment 8 Dani Megert CLA 2011-10-10 05:43:42 EDT
(In reply to comment #7)
> (In reply to comment #6)
> > This is with 3.5 under Windows 7 now.
> > 
> > I still cannot set the font used for fixed width in Javadoc: The font is taken
> > from Internet Explorer’s preferences.
> 
> 
> I cannot reproduce this with 3.8 M2 on windows 7.
Same here.

> Since the request to be able
> to set font size has been fixed,  and it is not a usability problem anymore, I
> would remove the keyword
Done.

> and mark this as fixed. Dani?
The original request to allow configuring the style sheet is still valid, so let's keep this bug open.