Commit 6be1015
committed
Skip dot-folders (e.g. .git) when scanning for projects to import
Add a 'Skip folders starting with dot' checkbox (default: true) to both
the Smart Import wizard (SmartImportRootWizardPage) and the traditional
Import Existing Projects wizard (WizardProjectsImportPage).
When enabled, directories starting with '.' (such as .git, .svn, .hg)
are skipped during recursive project scanning, significantly improving
import performance for repositories with large .git folders.
The setting is persisted in dialog settings and defaults to true for
new installations.
Adds tests for both import wizards:
- ImportExistingProjectsWizardTest:
- test24: Verifies .git folder projects are skipped with default setting
- test25: Verifies .git folder projects are found when skip is disabled
- SmartImportTests:
- testSmartImportSkipsDotFolders: Integration test verifying .git
projects are not imported via the wizard
- testSmartImportJobSkipsDotFoldersInProposals: Verifies import
proposals filter out projects inside .git folders
The 'Skip dot folders' checkbox is a scanning option that affects which
folders are visited during project discovery, so it belongs before the
post-import option 'Close newly imported projects upon completion'.
Fixes #38581 parent ed75400 commit 6be1015
File tree
9 files changed
+269
-20
lines changed- bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer
- tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer
9 files changed
+269
-20
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
| 190 | + | |
189 | 191 | | |
190 | 192 | | |
191 | 193 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
347 | 348 | | |
348 | 349 | | |
349 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
350 | 354 | | |
351 | 355 | | |
352 | 356 | | |
| |||
530 | 534 | | |
531 | 535 | | |
532 | 536 | | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
533 | 549 | | |
534 | 550 | | |
535 | 551 | | |
| |||
684 | 700 | | |
685 | 701 | | |
686 | 702 | | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
687 | 706 | | |
688 | 707 | | |
689 | 708 | | |
| |||
723 | 742 | | |
724 | 743 | | |
725 | 744 | | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
726 | 761 | | |
727 | 762 | | |
728 | 763 | | |
| |||
Lines changed: 29 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
| |||
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
| 140 | + | |
138 | 141 | | |
139 | 142 | | |
140 | 143 | | |
| |||
475 | 478 | | |
476 | 479 | | |
477 | 480 | | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
478 | 494 | | |
479 | 495 | | |
480 | 496 | | |
| |||
508 | 524 | | |
509 | 525 | | |
510 | 526 | | |
511 | | - | |
512 | 527 | | |
513 | 528 | | |
514 | | - | |
| 529 | + | |
515 | 530 | | |
516 | 531 | | |
517 | 532 | | |
| |||
523 | 538 | | |
524 | 539 | | |
525 | 540 | | |
526 | | - | |
| 541 | + | |
527 | 542 | | |
528 | 543 | | |
529 | 544 | | |
| |||
825 | 840 | | |
826 | 841 | | |
827 | 842 | | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
828 | 850 | | |
829 | 851 | | |
830 | 852 | | |
| |||
956 | 978 | | |
957 | 979 | | |
958 | 980 | | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
959 | 984 | | |
960 | 985 | | |
961 | 986 | | |
| |||
969 | 994 | | |
970 | 995 | | |
971 | 996 | | |
| 997 | + | |
972 | 998 | | |
973 | 999 | | |
974 | 1000 | | |
| |||
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/SmartImportWizard.java
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| 291 | + | |
291 | 292 | | |
292 | 293 | | |
293 | 294 | | |
| |||
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
340 | | - | |
| 341 | + | |
| 342 | + | |
341 | 343 | | |
342 | 344 | | |
343 | 345 | | |
Lines changed: 59 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
| 325 | + | |
324 | 326 | | |
325 | 327 | | |
326 | 328 | | |
| |||
341 | 343 | | |
342 | 344 | | |
343 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
344 | 350 | | |
345 | 351 | | |
346 | 352 | | |
| |||
505 | 511 | | |
506 | 512 | | |
507 | 513 | | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
508 | 530 | | |
509 | 531 | | |
510 | 532 | | |
| |||
940 | 962 | | |
941 | 963 | | |
942 | 964 | | |
943 | | - | |
| 965 | + | |
944 | 966 | | |
945 | 967 | | |
946 | 968 | | |
| |||
1064 | 1086 | | |
1065 | 1087 | | |
1066 | 1088 | | |
| 1089 | + | |
| 1090 | + | |
1067 | 1091 | | |
1068 | 1092 | | |
1069 | 1093 | | |
1070 | 1094 | | |
1071 | 1095 | | |
1072 | | - | |
| 1096 | + | |
1073 | 1097 | | |
1074 | 1098 | | |
1075 | 1099 | | |
| |||
1110 | 1134 | | |
1111 | 1135 | | |
1112 | 1136 | | |
1113 | | - | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
1123 | 1148 | | |
1124 | | - | |
1125 | | - | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
1126 | 1152 | | |
| 1153 | + | |
| 1154 | + | |
1127 | 1155 | | |
1128 | 1156 | | |
1129 | 1157 | | |
| |||
1565 | 1593 | | |
1566 | 1594 | | |
1567 | 1595 | | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
1568 | 1602 | | |
1569 | 1603 | | |
1570 | 1604 | | |
| |||
1644 | 1678 | | |
1645 | 1679 | | |
1646 | 1680 | | |
| 1681 | + | |
| 1682 | + | |
1647 | 1683 | | |
1648 | 1684 | | |
1649 | 1685 | | |
| |||
1674 | 1710 | | |
1675 | 1711 | | |
1676 | 1712 | | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
1677 | 1722 | | |
1678 | 1723 | | |
1679 | 1724 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
216 | | - | |
| 217 | + | |
| 218 | + | |
0 commit comments