@SuppressWarnings("restriction")
public static void zoomNewsText(boolean zoomIn, boolean reset) {
/* Retrieve Font */
ITheme theme = PlatformUI.getWorkbench().getThemeManager().getCurrentTheme();
FontRegistry registry = theme.getFontRegistry();
FontData[] oldFontDatas = registry.getFontData(NEWS_TEXT_FONT_ID);
FontData[] newFontDatas = new FontData[oldFontDatas.length];
/* Set Height */
for (int i = 0; i < oldFontDatas.length; i++) {
FontData oldFontData = oldFontDatas[i];
int oldHeight = oldFontData.getHeight();
if (reset)
newFontDatas[i] = new FontData(oldFontData.getName(), DEFAULT_NEWS_TEXT_FONT_HEIGHT, oldFontData.getStyle());
else
newFontDatas[i] = new FontData(oldFontData.getName(), zoomIn ? oldHeight + 1 : Math.max(oldHeight - 1, 0), oldFontData.getStyle());
}
registry.put(NEWS_TEXT_FONT_ID, newFontDatas);
/* Store in Preferences */
String key = org.eclipse.ui.internal.themes.ThemeElementHelper.createPreferenceKey(theme, NEWS_TEXT_FONT_ID);
String fdString = PreferenceConverter.getStoredRepresentation(newFontDatas);
String storeString = org.eclipse.ui.internal.util.PrefUtil.getInternalPreferenceStore().getString(key);