Author: scabanovich
Date: 2010-10-18 05:53:22 -0400 (Mon, 18 Oct 2010)
New Revision: 25892
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java
Log:
JBIDE-7348
https://jira.jboss.org/browse/JBIDE-7348
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java 2010-10-18
09:06:25 UTC (rev 25891)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java 2010-10-18
09:53:22 UTC (rev 25892)
@@ -372,24 +372,21 @@
}
try{
- boolean saveAutoBuild = ResourcesUtils.setBuildAutomatically(false);
- JobUtils.waitForIdle();
classFile.delete(true, new NullProgressMonitor());
- project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
JobUtils.waitForIdle();
- project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, new
NullProgressMonitor());
- JobUtils.waitForIdle();
- ResourcesUtils.setBuildAutomatically(saveAutoBuild);
- JobUtils.waitForIdle();
}catch(Exception ex){
JUnitUtils.fail("Cannot delete file JavaSource/demo/Person.java", ex);
}
-
+// refreshProject(project);
component = sp.getComponent("beatles.Pall");
for (int i = 0; i < 100; i++) {
if(component == null) break;
System.out.println("beatles.Pall not removed yet " + i + " " +
classFile.exists() + " " + component.getAllDeclarations().size() + " "
+ component.getJavaDeclaration());
try {
+ project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, new
NullProgressMonitor());
+ JobUtils.waitForIdle();
+ } catch (CoreException e) {}
+ try {
Thread.sleep(1000);
} catch (InterruptedException e) {}
}
@@ -401,8 +398,6 @@
assertFalse("beatles".equals(p.getName()));
}
-// refreshProject(project);
-
navigator.getCommonViewer().refresh(true);
navigator.getCommonViewer().expandAll();