Bug 219757 - Allow to set programatically the font of TextMergeViewer subclasses
Summary: Allow to set programatically the font of TextMergeViewer subclasses
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Compare (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Compare-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-21 05:36 EST by Teddy Walker CLA
Modified: 2019-09-06 15:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Teddy Walker CLA 2008-02-21 05:36:52 EST
At moment, the symbolic font name is always set to the class name of the instance. This is very inflexible.

Proposal (easy and non-breaking), add a method:

protected String getSymbolicFontName() {
  getClass().getName();
}

and call it in the constructor instead of the fix initialisation.
So we can simply overwrite this method and use the font we want to use.
Comment 1 Eclipse Webmaster CLA 2019-09-06 15:37:02 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.