@NbBundle.Messages({
"MSG_ShelveAction.noModifications.text=There are no local modifications to shelve.",
"LBL_ShelveAction.noModifications.title=No Local Modifications"
})
public void shelve (File repository, File[] roots) {
if (Git.getInstance().getFileStatusCache().listFiles(roots,
FileInformation.STATUS_MODIFIED_HEAD_VS_WORKING).length == 0) {
// no local changes found
EventQueue.invokeLater(new Runnable() {
@Override
public void run () {
JOptionPane.showMessageDialog(WindowManager.getDefault().getMainWindow(),
Bundle.MSG_ShelveAction_noModifications_text(),
Bundle.LBL_ShelveAction_noModifications_title(),
JOptionPane.INFORMATION_MESSAGE);
}
});
return;
}
GitShelveChangesSupport supp = new GitShelveChangesSupport(repository);
if (supp.open()) {
RequestProcessor rp = Git.getInstance().getRequestProcessor(repository);
supp.startAsync(rp, repository, roots);
}
}
ShelveChangesAction.java 文件源码
java
阅读 36
收藏 0
点赞 0
评论 0
项目:incubator-netbeans
作者:
评论列表
文章目录