mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge branch 'python-fixes'
This commit is contained in:
@@ -109,10 +109,12 @@ public class ImportFromExistingAction implements QuestionAction {
|
||||
|
||||
final Runnable runnable = new Runnable() {
|
||||
public void run() {
|
||||
int index = list.getSelectedIndex();
|
||||
if (index < 0) return;
|
||||
PsiDocumentManager.getInstance(myTarget.getProject()).commitAllDocuments();
|
||||
doWriteAction(mySources.get(index));
|
||||
final Object selected = list.getSelectedValue();
|
||||
if (selected instanceof ImportCandidateHolder) {
|
||||
final ImportCandidateHolder item = (ImportCandidateHolder)selected;
|
||||
PsiDocumentManager.getInstance(myTarget.getProject()).commitAllDocuments();
|
||||
doWriteAction(item);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user