PyEditor save actions: auto-update module level date variable + 1 FontUtils enhancement #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New feature: PyEditor save actions. First action updates a module level date field.
I first did this with a Jython onSave action but realizing that onSave fires after the buffer was already saved and since I needed to change the buffer (this can trigger an endless save loop if not careful) I opted to actually whip this up in Java. Added bonus: its own prefs page for easy on/off toggle.
Screenshots showcasing the save actions can be found on my changelog wiki entry.
Enhancement: I added a getFontData method that gives the caller the freedom to ask for font data with a style mask other than SWT.BOLD. Previously the only available getFontData method would always return SWT.BOLD masked font data. I also retained the unchanged getFontData method so nothing in existing code breaks.
(this change in part actually was because of a bug fix pull request for Aptana's Pydev version with their Aptana Theme scopes Pydev prefs section where it had the unreadable font size problem on OS X again because FontUtils and IFontUsage weren't used.).
Thusly: FontUtils version bumped to 0.2