Author: dgolovin
Date: 2007-09-21 03:50:58 -0400 (Fri, 21 Sep 2007)
New Revision: 3749
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/WtpUtils.java
Log:
fix compilation problems
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-21
03:07:18 UTC (rev 3748)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/WtpUtils.java 2007-09-21
07:50:58 UTC (rev 3749)
@@ -240,5 +240,23 @@
break;
}
}
+
+ /**
+ * @param project
+ * @param monitor
+ * @throws JavaModelException
+ */
+ public static void setClasspathEntryAsExported(final IProject project,IPath path,
+ IProgressMonitor monitor) throws JavaModelException {
+ IJavaProject jProject = JavaCore.create(project);
+ IClasspathEntry[] cps = jProject.getRawClasspath();
+ for (int i=0;i<cps.length;i++) {
+ if(cps[i].getEntryKind()==IClasspathEntry.CPE_CONTAINER
+ && cps[i].getPath().equals(path)) {
+ cps[i]=JavaCore.newContainerEntry(cps[i].getPath(),true);
+ }
+ }
+ jProject.setRawClasspath(cps, monitor);
+ }
}
Show replies by date