Author: dgolovin
Date: 2008-06-13 22:35:40 -0400 (Fri, 13 Jun 2008)
New Revision: 8768
Modified:
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ResourcesUtils.java
Log:
method added
public static IProject createEclipseProject(Bundle bundle, String templateLocation)
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-06-14
01:06:48 UTC (rev 8767)
+++
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ResourcesUtils.java 2008-06-14
02:35:40 UTC (rev 8768)
@@ -65,14 +65,20 @@
Arrays.asList(new File(tplPrjLcStr).listFiles()));
op.setCreateContainerStructure(false);
- if( Display.getCurrent() == null || Display.getCurrent().getActiveShell() == null )
+ if( Display.getCurrent() == null || Display.getCurrent().getActiveShell() == null ) {
op.setContext(new Shell());
- else
+ } else {
op.setContext(Display.getCurrent().getActiveShell());
+ }
op.run(monitor);
return importedPrj;
}
+ public static IProject importProject(
+ Bundle bundle, String templLocation) throws IOException, CoreException,
InvocationTargetException, InterruptedException {
+ return importProject(bundle, templLocation, new NullProgressMonitor());
+ }
+
public static IProject createEclipseProject(String projectName,
IProgressMonitor monitor) throws CoreException {
@@ -104,6 +110,13 @@
return project;
}
+ public static IProject createEclipseProject(Bundle bundle,
+ String templateLocation)
+ throws CoreException, IOException {
+
+ return createEclipseProject(bundle,templateLocation, new NullProgressMonitor());
+ }
+
public static IProject createEclipseProject(String bundle,
String templateLocation, IProgressMonitor monitor)
throws CoreException, IOException {
Show replies by date