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.

IDRsolutions develop a Java PDF Viewer and SDK, an Adobe forms to HTML5 forms converter, a PDF to HTML5 converter and a Java ImageIO replacement. On the blog our team post anything interesting they learn about.

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.

Oracle CodeOne series index

What is CodeOne? Every year Oracle organises a technical conference in San Francisco with lots of technical talks. Each year we send 2 of...
Madalena
40 sec read

Leave a Reply

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

IDRsolutions Ltd 2019. All rights reserved.