Author: vrubezhny
Date: 2007-09-07 15:21:44 -0400 (Fri, 07 Sep 2007)
New Revision: 3496
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/WtpUtils.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-825 Seam projects shold know what version and seam
home library they are using
Create source folder method is fixed
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/WtpUtils.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/WtpUtils.java 2007-09-07
18:31:25 UTC (rev 3495)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/WtpUtils.java 2007-09-07
19:21:44 UTC (rev 3496)
@@ -171,6 +171,8 @@
return null;
}
} catch (CoreException e) {
+ // Ignore if we cannot check that the file exists.
+ // Assume that it doesn't
}
}
}
@@ -194,7 +196,7 @@
if (projectEntryIndex != -1) {
newEntries.set(projectEntryIndex, newEntry);
} else {
- IClasspathEntry entry= JavaCore.newSourceEntry(path);
+ IClasspathEntry entry= JavaCore.newSourceEntry(newSourceFolderPath);
insertClasspathEntry(entry, newEntries);
}
@@ -216,7 +218,7 @@
IFolder newSourceFolder= javaProject.getProject().getFolder(newSourceFolderPath);
if (!newSourceFolder.exists()) {
- CoreUtility.createFolder(newSourceFolder, true, true, new SubProgressMonitor(new
NullProgressMonitor(), 1));
+ CoreUtility.createFolder(newSourceFolder, true, true, null);
}
javaProject.setRawClasspath(newClasspathEntries, newOutputLocation, new
NullProgressMonitor());