Summary: | Change font size with Ctrl+ +/- in Java stack trace console view | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Noopur Gupta <noopur_gupta> |
Component: | Text | Assignee: | Platform-Text-Inbox <platform-text-inbox> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | daniel_megert, mistria |
Version: | 4.6 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Bug Depends on: | 483921, 476037 | ||
Bug Blocks: |
Description
Noopur Gupta
2015-12-08 03:55:41 EST
See also bug 483472. Leaving in Platform Text for now. The font for console (more precisely for org.eclipse.ui.console.TextConsolePage) is the IConsoleConstants.P_FONT constant. I didn't find a way to access that font in a generic way, using the APIs that are allowed in the handler. Without way to access the font definition name, we cannot get the zoom to work. I believe this highlights the need for a new interface such as IFontPropertyConsumer that we could hook on multiple text-related parts and pages (Console, compare or whatever consumes a font property). Then the handler would simply check whether the current part or page is and IFontPropertyConsumer and call its "getFontName()" method. (In reply to Mickael Istria from comment #2) > The font for console (more precisely for > org.eclipse.ui.console.TextConsolePage) is the IConsoleConstants.P_FONT > constant. I didn't find a way to access that font in a generic way, using > the APIs that are allowed in the handler. > Without way to access the font definition name, we cannot get the zoom to > work. > > I believe this highlights the need for a new interface such as > IFontPropertyConsumer that we could hook on multiple text-related parts and > pages (Console, compare or whatever consumes a font property). Then the > handler would simply check whether the current part or page is and > IFontPropertyConsumer and call its "getFontName()" method. I agree, but don't like the name ;-). Please file a bug report for M5 and cc me. |