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

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

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