We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSEditor.setDescriptionText(String text) is creating a new Font on every call.
private void setDescriptionText(String text) { Font font = descriptionText.getFont(); FontData[] fontData = font.getFontData(); .... descriptionText.setFont(new Font(font.getDevice(), fontData)); descriptionText.setText(description); }
We should probably use BIRTS FontManager or the backing JFaceResources.getFontRegistry() directly instead.
The text was updated successfully, but these errors were encountered:
Yes. good catch. In this case, something like this can also work.
Font font = new Font(font.getDevice(), fontData); descriptionText.setFont(font); descriptionText.addListener(SWT.Dispose, e-> font.dispose());
Sorry, something went wrong.
JSEditor is leaking fonts eclipse-birt#734
29137df
No longer generating fonts for this label, but using the FontRegistry to access JFace default fonts.
Merge pull request #748 from claesrosell/JSEditor_is_leaking_Fonts_#734
2a94776
JSEditor is leaking fonts #734
Successfully merging a pull request may close this issue.
JSEditor.setDescriptionText(String text) is creating a new Font on every call.
We should probably use BIRTS FontManager or the backing JFaceResources.getFontRegistry() directly instead.
The text was updated successfully, but these errors were encountered: