1
0
Fork 0
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:
Markus Schorn 2006-05-10 11:26:32 +00:00
parent a7bf4777d8
commit 7b0ae91357

View file

@ -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();