Skip to content

Instantly share code, notes, and snippets.

@nigjo
nigjo / SimpleDocumentListener.java
Last active March 3, 2020 13:53
A DocumentListener as a functional interface. This interface aggregates all default methods of a DocumentListener to a single method. This is usefull if you don't care about the type of change in a JTextComponent.
//
// Attribution 4.0 International (CC BY 4.0)
// https://creativecommons.org/licenses/by/4.0/
//
// Original location:
// https://gist.github.com/nigjo/d14a29eab90a0a55f62228c2c71ecb03
//
package com.github.gist.nigjo;
import javax.swing.event.DocumentEvent;
@nigjo
nigjo / brainstorm_nb_ant.md
Last active June 9, 2018 11:51
A brainstorming to introduce Ant extension-points to the NetBeans platform build system

The aim is to introduce <extension-point/> elements to the NetBeans Ant build scripts. [Extension points][manual_extensions] are introduced to Apache Ant in version 1.8. This is the minimum version to perform the build of the NetBeans Platform itself.

Analyze build

The build of a NetBeans Platform Module and a NetBeans Platform based module with Ant is a little bit different. The Platform itself uses the nbbuild-folder, the RCP Modules are using the harness folder. There is one script file, common.xml, which both have in common. The other files are in nbbuild or in apisupport.harness/release. Both build should work after the introduction of entry points.

@nigjo
nigjo / _update_local_mirror.cmd
Last active April 9, 2018 14:57
Create a local mirror of the Apache NetBeans Binary repository
@echo off
REM
REM Copyright 2018 Jens Hofschröer <[email protected]>
REM Licensed under the Apache License, Version 2.0 (the "License");
REM you may not use this file except in compliance with the License.
REM You may obtain a copy of the License at
REM http://www.apache.org/licenses/LICENSE-2.0

Keybase proof

I hereby claim:

  • I am nigjo on github.
  • I am nigjo (https://keybase.io/nigjo) on keybase.
  • I have a public key whose fingerprint is 96DE C878 B069 8B31 89F0 66A4 61C7 C437 3D3F 1DC3

To claim this, I am signing this object: