예제 #1
0
 @Override
 public void windowStateChanged(final WindowEvent e) {
   if (e.getNewState() == Frame.ICONIFIED) {
     Logger.debug("Window Iconified");
     windowIconifiedEvent();
   } else if (e.getNewState() != Frame.ICONIFIED) {
     Logger.debug("Window Deiconified");
     windowDeiconifiedEvent();
   }
 }
예제 #2
0
 /**
  * Creates and starts a new repository transaction
  *
  * @param repository
  * @param listeners
  */
 public RepositoryTransaction(
     final IRepository repository, final Collection<IRepositoryListener> listeners) {
   this.repository = repository;
   this.listeners = listeners;
   this.pending = true;
   Logger.debug("Creating new repository transaction: ", new DateTime().toString());
 }
예제 #3
0
 /** Called when transaction is finished */
 @Override
 public void finishTransaction() {
   if (this.listeners != null) {
     for (IRepositoryListener listener : this.listeners) {
       listener.repositoryChanged(this.repository);
     }
   }
   this.pending = false;
   Logger.debug("Finished repository transaction: ", new DateTime().toString());
 }