Author: dgolovin
Date: 2012-08-21 14:20:48 -0400 (Tue, 21 Aug 2012)
New Revision: 43134
Modified:
trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/test/util/ResourcesUtils.java
Log:
fixed error related to missing workbench window in core eclipse tests. Now it uses
ImportOperation without context set to current workbench shell. Context is required to let
import operation request for user assistance, which is irrelevant for tests execution.
org.jboss.tools.test now can be used in ani core test to import projects into workspace.
Modified:
trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/test/util/ResourcesUtils.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/test/util/ResourcesUtils.java 2012-08-21
14:27:29 UTC (rev 43133)
+++
trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/test/util/ResourcesUtils.java 2012-08-21
18:20:48 UTC (rev 43134)
@@ -218,7 +218,7 @@
if (member != null) {
try {
member.getProject().delete(true, true, null);
- } catch (Exception e) {
+ } catch (CoreException e) {
// Ignore any exceptions here (mostly because ResourceException rising is possible
here)
// But we cannot break tearDown() procedures in test cases which widely use this
method
// So, just print an exception stacktrace to see it in console log
@@ -316,8 +316,6 @@
// import files just to project folder ( without old structure )
importOp.setCreateContainerStructure(false);
- importOp.setContext(PlatformUI.getWorkbench()
- .getActiveWorkbenchWindow().getShell());
// run import
importOp.run(null);
project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, null);
Show replies by date