コード例 #1
0
 @Override
 public void dispose() {
   controller.removeListener(this);
   for (IView view : views) {
     view.dispose();
   }
 }
コード例 #2
0
 @Override
 public void reset() {
   folder.setRedraw(false);
   for (final CTabItem tab : folder.getItems()) {
     tab.dispose();
   }
   // TODO: Is this enough cleanup?
   for (final IView v : views) {
     v.dispose();
   }
   names.clear();
   views.clear();
   folder.setRedraw(true);
   folder.redraw();
 }