private void refreshTree() {
   myRoot = new UpdateRootNode(myUpdatedFiles, myProject, myRootName, myActionInfo);
   myRoot.rebuild(VcsConfiguration.getInstance(myProject).UPDATE_GROUP_BY_PACKAGES);
   myTreeModel = new DefaultTreeModel(myRoot);
   myRoot.setTreeModel(myTreeModel);
   myTree.setModel(myTreeModel);
   myRoot.setTree(myTree);
 }
 public void setSelected(AnActionEvent e, boolean state) {
   myGroupByChangeList = state;
   VcsConfiguration.getInstance(myProject).UPDATE_GROUP_BY_CHANGELIST = myGroupByChangeList;
   final CardLayout cardLayout = (CardLayout) myCenterPanel.getLayout();
   if (!myGroupByChangeList) {
     cardLayout.show(myCenterPanel, CARD_STATUS);
   } else {
     cardLayout.show(myCenterPanel, CARD_CHANGES);
   }
 }
 public void setCanGroupByChangeList(final boolean canGroupByChangeList) {
   myCanGroupByChangeList = canGroupByChangeList;
   if (myCanGroupByChangeList) {
     myLoadingChangeListsLabel = new JLabel(VcsBundle.message("update.info.loading.changelists"));
     add(myLoadingChangeListsLabel, BorderLayout.SOUTH);
     myGroupByChangeList = VcsConfiguration.getInstance(myProject).UPDATE_GROUP_BY_CHANGELIST;
     if (myGroupByChangeList) {
       final CardLayout cardLayout = (CardLayout) myCenterPanel.getLayout();
       cardLayout.show(myCenterPanel, CARD_CHANGES);
     }
   }
 }
 public void setSelected(AnActionEvent e, boolean state) {
   VcsConfiguration.getInstance(myProject).UPDATE_GROUP_BY_PACKAGES = state;
   myRoot.rebuild(VcsConfiguration.getInstance(myProject).UPDATE_GROUP_BY_PACKAGES);
 }
 public boolean isSelected(AnActionEvent e) {
   return VcsConfiguration.getInstance(myProject).UPDATE_GROUP_BY_PACKAGES;
 }