1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 18:05:33 +02:00

Patch from Bala Torati to [Bug 184390] [Template Engine] Hellow World templates should allow specifying the project source location

This commit is contained in:
Mikhail Sennikovsky 2007-05-11 11:44:50 +00:00
parent 67c64bf326
commit d6dee0e045

View file

@ -35,6 +35,7 @@ import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Path;
/** /**
@ -99,6 +100,8 @@ public class CreateSourceFolder extends ProcessRunner {
ICSourceEntry[] entries = config.getSourceEntries(); ICSourceEntry[] entries = config.getSourceEntries();
Set set = new HashSet(); Set set = new HashSet();
for (int j=0; j < entries.length; j++) { for (int j=0; j < entries.length; j++) {
if(new Path(entries[j].getValue()).segmentCount() == 1)
continue;
set.add(entries[j]); set.add(entries[j]);
} }
set.add(newEntry); set.add(newEntry);