PyEditor save actions: auto-update module level date variable + 1 FontUtils enhancement#6
Merged
fabioz merged 3 commits intofabioz:developmentfrom Jul 30, 2013
Merged
Conversation
jamesblackburn
added a commit
to man-group/Pydev
that referenced
this pull request
Sep 18, 2017
… master * commit 'bf18028da04c8bfe9674aac3c0954eac933d050f': (239 commits) PyDev 5.9.2 Preparing for PyDev 5.9.2 Fix for #PyDev-838: PyDev.Debugger 5.9.0 and 5,9.1 crashes at startup Properly adding generated .c file to distribution. Another fix in the debugger. Updating homepage for 5.9.1 #PyDev-817: Error on autocomplete with IPython on interactive console Marking PyDev as 5.9.1 Changing path to path in conda for template. Accept ordered dict for resolving vars. #PyDev-825: Internal PyDev Error with empty f-string inside block statement Removed remainin dict_pop (which no longer exists). Adding isort support (still need to improve DocUtils auxiliary method). Done release 5.9.0 Homepage updates (for 5.9.0) Fixing build issue (referencing /icons which didn't exist), updating Bundle-Vendor. Build showing errors Signing with a proper certificate (not self-signed). Updating homepage to 5.9.0 Updated debugger (python 3.6 speedups), updated version to 5.9.0 ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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