mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
create patch from committed changes now works only for 1 list at a time: IDEA-88458 "Create patch..." command on repository revisions treeview doesn't working
This commit is contained in:
+4
-3
@@ -120,9 +120,10 @@ public class CreatePatchFromChangesAction extends AnAction implements DumbAware
|
||||
|
||||
public void update(final AnActionEvent e) {
|
||||
final Boolean haveSelectedChanges = e.getData(VcsDataKeys.HAVE_SELECTED_CHANGES);
|
||||
ChangeList[] changeLists = e.getData(VcsDataKeys.CHANGE_LISTS);
|
||||
final String presetMessage = e.getData(VcsDataKeys.PRESET_COMMIT_MESSAGE);
|
||||
Change[] changes;
|
||||
ChangeList[] lists;
|
||||
e.getPresentation().setEnabled(Boolean.TRUE.equals(haveSelectedChanges) &&
|
||||
((changeLists == null || changeLists.length == 1)) || (presetMessage != null));
|
||||
((lists = e.getData(VcsDataKeys.CHANGE_LISTS)) != null && lists.length == 1) &&
|
||||
((changes = e.getData(VcsDataKeys.CHANGES)) != null && changes.length > 0));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user