Example #1
0
 public void dispose() {
   games_.clear();
   collection_.removeListener(listener_);
   // コンテキストを全て破棄する。
   for (RootGameTree rgt : collection_) {
     Yukinoshita.context(rgt).clearCurrent();
   }
   Yukinoshita.context(collection_).clearCurrent();
 }
 /*
  * @see org.unitarou.yukinoshita.view.jface.act.ContextListeningAction#attributeChanged(java.util.Set)
  */
 @Override
 protected void attributeChanged(Set<String> keySet) {
   boolean enableDb =
       Yukinoshita.context(null).getAttribute(DatabaseManager.ENABLE_DB).booleanValue();
   setEnabled(enableDb);
 }