mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-21 21:52:10 +02:00
Bug 549697: Mark update font methods in Terminal as deprecated
There are two ways of specifying fonts in the terminal, one via font definitions, and one via the font directly. The method via the font directly was already deprecated in the public API, this commit follows that deprecation chain through to make it easier to identify which code paths are not likely relevant anymore. These methods could simply be removed as part of the major version bump. Change-Id: I05d746c429c4e6c3ced5ee7bb7a6172e0a255c2d
This commit is contained in:
parent
167ce562b2
commit
3201a07fc3
4 changed files with 12 additions and 0 deletions
|
@ -29,7 +29,9 @@ public interface ILinelRenderer {
|
|||
|
||||
/**
|
||||
* Update for a font change from the global JFace Registry.
|
||||
* @deprecated Use {@link #updateFont(String)}
|
||||
*/
|
||||
@Deprecated
|
||||
void onFontChange();
|
||||
|
||||
/**
|
||||
|
|
|
@ -206,6 +206,10 @@ public class StyleMap {
|
|||
return fCharSize.y;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #updateFont(String)}
|
||||
*/
|
||||
@Deprecated
|
||||
public void updateFont() {
|
||||
updateFont(ITerminalConstants.FONT_DEFINITION);
|
||||
}
|
||||
|
|
|
@ -473,7 +473,9 @@ public class TextCanvas extends GridCanvas {
|
|||
|
||||
/**
|
||||
* Notify about a change of the global Font Preference.
|
||||
* @deprecated Use {@link #updateFont(String)}
|
||||
*/
|
||||
@Deprecated
|
||||
public void onFontChange() {
|
||||
fCellRenderer.onFontChange();
|
||||
setCellWidth(fCellRenderer.getCellWidth());
|
||||
|
|
|
@ -169,6 +169,10 @@ public class TextLineRenderer implements ILinelRenderer {
|
|||
return fModel.getTerminalText();
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #updateFont(String)}
|
||||
*/
|
||||
@Deprecated
|
||||
@Override
|
||||
public void onFontChange() {
|
||||
fStyleMap.updateFont();
|
||||
|
|
Loading…
Add table
Reference in a new issue