mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fixed endless loop, bug 100300.
This commit is contained in:
parent
a7bf4777d8
commit
7b0ae91357
1 changed files with 1 additions and 2 deletions
|
@ -337,7 +337,6 @@ public abstract class AbstractFileCreationWizardPage extends NewElementWizardPag
|
|||
IPath oldFolderPath = getSourceFolderFullPath();
|
||||
IPath newFolderPath = chooseSourceFolder(oldFolderPath);
|
||||
if (newFolderPath != null) {
|
||||
IPath filePath = getFileFullPath();
|
||||
setSourceFolderFullPath(newFolderPath, false);
|
||||
handleFieldChanged(ALL_FIELDS);
|
||||
}
|
||||
|
@ -527,7 +526,7 @@ public abstract class AbstractFileCreationWizardPage extends NewElementWizardPag
|
|||
private ICElement getSourceFolderFromPath(IPath path) {
|
||||
if (path == null)
|
||||
return null;
|
||||
while (!path.isEmpty()) {
|
||||
while (path.segmentCount() > 0) {
|
||||
IResource res = fWorkspaceRoot.findMember(path);
|
||||
if (res != null && res.exists()) {
|
||||
int resType = res.getType();
|
||||
|
|
Loading…
Add table
Reference in a new issue