Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

Hacking the NetBeans IDE

48 sec read

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.

Did you know...

IDRsolutions offers a whole range of online file converters to convert PDF and Microsoft Excel, Word and Office Documents to HTML5, SVG or image formats?

It is free to use for single file conversions and also includes Developer links if you want to use our commercial software for bulk conversions. Find out more on this page

Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

Dawscon 2020 Software Conference in Pictures

The latest Dawscon software conference took place today at Dawson College, Montreal. Attendance was free and there were 2 tracks with topics including JavaScript,...
Mark Stephens
17 sec read

DevFest 2019 in Pictures

Mark Stephens
29 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *

IDRsolutions Ltd 2020. All rights reserved.