Esempio n. 1
0
  public static synchronized EntityPallet getInstance() {

    if (myInstance == null) {
      myInstance = new EntityPallet();
      myInstance.updateTree();
    }

    return myInstance;
  }
Esempio n. 2
0
 /** Disposes the only instance of the entity pallet */
 public static synchronized void clear() {
   if (myInstance != null) {
     myInstance.dispose();
     myInstance = null;
   }
 }