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.

Do you need to process or display PDF files?

Find out why you should be using IDRSolutions software

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.



Our software libraries allow you to

Convert PDF files to HTML
Use PDF Forms in a web browser
Convert PDF Documents to an image
Work with PDF Documents in Java
Read and write HEIC and other Image formats in Java
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.