コード例 #1
0
 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);
 }
コード例 #2
0
 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);
   }
 }
コード例 #3
0
 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);
     }
   }
 }
コード例 #4
0
 public void setSelected(AnActionEvent e, boolean state) {
   VcsConfiguration.getInstance(myProject).UPDATE_GROUP_BY_PACKAGES = state;
   myRoot.rebuild(VcsConfiguration.getInstance(myProject).UPDATE_GROUP_BY_PACKAGES);
 }
コード例 #5
0
 public boolean isSelected(AnActionEvent e) {
   return VcsConfiguration.getInstance(myProject).UPDATE_GROUP_BY_PACKAGES;
 }