mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56: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 oldFolderPath = getSourceFolderFullPath();
|
||||||
IPath newFolderPath = chooseSourceFolder(oldFolderPath);
|
IPath newFolderPath = chooseSourceFolder(oldFolderPath);
|
||||||
if (newFolderPath != null) {
|
if (newFolderPath != null) {
|
||||||
IPath filePath = getFileFullPath();
|
|
||||||
setSourceFolderFullPath(newFolderPath, false);
|
setSourceFolderFullPath(newFolderPath, false);
|
||||||
handleFieldChanged(ALL_FIELDS);
|
handleFieldChanged(ALL_FIELDS);
|
||||||
}
|
}
|
||||||
|
@ -527,7 +526,7 @@ public abstract class AbstractFileCreationWizardPage extends NewElementWizardPag
|
||||||
private ICElement getSourceFolderFromPath(IPath path) {
|
private ICElement getSourceFolderFromPath(IPath path) {
|
||||||
if (path == null)
|
if (path == null)
|
||||||
return null;
|
return null;
|
||||||
while (!path.isEmpty()) {
|
while (path.segmentCount() > 0) {
|
||||||
IResource res = fWorkspaceRoot.findMember(path);
|
IResource res = fWorkspaceRoot.findMember(path);
|
||||||
if (res != null && res.exists()) {
|
if (res != null && res.exists()) {
|
||||||
int resType = res.getType();
|
int resType = res.getType();
|
||||||
|
|
Loading…
Add table
Reference in a new issue