At my recent Oracle CodeOne talk on Hacking the NetBeans IDE, I promised to publish the screenshots of my code with some comments.
I am working to finish debug and testing and hope to push the code to the NetBeans GitHub repository very soon. Please feel free to post in comments or contact me on twitter at @markee174.
Improving NetBeans local history
I wish NetBeans had a feature like this allowing multiple selections of files and a combined history view. Sadly it does not…..
Modules affected
We can make this happen by editing just 3 modules – Datasystems API, Local History, VersioningUI. NetBeans build system is needed as the ‘holder’ modules which allow you to run NetBeans IDE from source code.
Local History module changes
This method is called to determine if multiple file selection is allowed. It is now….
We need a new command
And we create the action code using an existing command as a starting template
DataSystems API
A very hacky way to pass the data between my new code instances (which I promise I will fix). Please do as I say, not as I do….
VersioningUI
This is the actual table display. We need a new column.
And a splash of colour
Which we display in the JTable
Merging the values with this code
For this new column
And lastly, we change the panel title.