Author: dgolovin
Date: 2008-01-09 03:02:43 -0500 (Wed, 09 Jan 2008)
New Revision: 5539
Modified:
trunk/tests/tests/org.jboss.tools.test/META-INF/MANIFEST.MF
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ResourcesUtils.java
Log:
Test errors were fixed
Modified: trunk/tests/tests/org.jboss.tools.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/tests/tests/org.jboss.tools.test/META-INF/MANIFEST.MF 2008-01-09 08:02:39 UTC
(rev 5538)
+++ trunk/tests/tests/org.jboss.tools.test/META-INF/MANIFEST.MF 2008-01-09 08:02:43 UTC
(rev 5539)
@@ -12,5 +12,6 @@
Provide-Package: org.jboss.ide.tests.util
Eclipse-LazyStart: true
Export-Package: org.jboss.tools.test.util,
+ org.jboss.tools.test.util.xpl,
org.jboss.tools.tests
Bundle-ClassPath: tools-tests.jar
Modified:
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ResourcesUtils.java
===================================================================
---
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ResourcesUtils.java 2008-01-09
08:02:39 UTC (rev 5538)
+++
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ResourcesUtils.java 2008-01-09
08:02:43 UTC (rev 5539)
@@ -31,6 +31,7 @@
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.swt.widgets.Display;
@@ -113,6 +114,13 @@
return project;
}
+ public static IProject createEclipseProject(String bundle,
+ String templateLocation, IProgressMonitor monitor)
+ throws CoreException, IOException {
+ return createEclipseProject(
+ Platform.getBundle(bundle), templateLocation, monitor);
+ }
+
public static boolean findLineInFile(IFile file, String pattern) throws CoreException,
IOException {
InputStream content = file.getContents(true);
LineNumberReader contentReader = new LineNumberReader(new InputStreamReader(content));
@@ -126,4 +134,20 @@
} while (line != null && !patternIsFound);
return patternIsFound;
}
+
+ /**
+ * @param string
+ * @param string2
+ * @param nullProgressMonitor
+ * @return
+ * @throws InterruptedException
+ * @throws InvocationTargetException
+ * @throws CoreException
+ * @throws IOException
+ */
+ public static IProject importProject(String bundleName, String templatePath,
+ NullProgressMonitor monitor) throws IOException, CoreException,
InvocationTargetException, InterruptedException {
+ // TODO Auto-generated method stub
+ return importProject(Platform.getBundle(bundleName), templatePath, monitor);
+ }
}
Show replies by date