/** * Implements the singleton pattern to ensure that there is just one * OVTK2Desktop instance * * @return every time the same OVTK2Desktop instance */ public synchronized static OVTK2Desktop getInstance() { if (instance == null) { new OVTK2Desktop(); } return instance; }