[JBoss Tools] - Confortable testing with SWTBot
by Libor Zoubek
Libor Zoubek [http://community.jboss.org/people/lzoubek%40redhat.com] created the document:
"Confortable testing with SWTBot"
To view the document, visit: http://community.jboss.org/docs/DOC-15111
--------------------------------------------------------------
There is a great option to run SWTBot tests in separate window. No more watching SWTBot "doing the work"
This can be accomplished by http://www.freedesktop.org/wiki/Software/Xephyr Xephyr. As a Xorg extension it should be available on every linux distro.
Xephyr is able to run another X session in a window in current session. The only problem is, that you cannot run multiple (gnome/xfce/kde) sessions at one time. I recommend to install some lightweight desktop manager like fluxbox, twm, enlightenement etc or run nested session under different user.
I've created simple shell script called nestedX which can do some bothering stuff for you. Just pick it, slightly edit (comment out you favorite wm) and use.
Once nestedX runs, new session in window should appear.
Eclipse with SWTBot tests and of course whatever can run inside.
When developing tests and you've started your IDE in current session, you can modify run configuration of your SWTBot test and define environment variable DISPLAY with value of new display (nestedX script tells it).
There is also an option to pass a program as an argument to script. Program will be executed few seconds after starting window manager in nested session.
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-15111]
Create a new document in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
15 years, 7 months
ClassCastException in jBPM Graphical Process Designer
by Bender Heri
Hello
Just installed the new dev-Studio (3.0.0 GA) and try to understand the todolist tutorial example of the seam reference (http://www.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/5....)
I created the file todo.jpdl.xml in the root of my todoList project (ear-Project) and copied the content of the tutorial page into it. Opening this this file with the "jBPM Graphical Process Designer" ("open with...") produces following exception:
java.lang.ClassCastException: org.eclipse.core.internal.resources.Project cannot be cast to org.eclipse.core.resources.IFolder
at org.jbpm.gd.common.editor.Editor.checkReadOnly(Editor.java:339)
at org.jbpm.gd.common.editor.Editor.createPages(Editor.java:95)
at org.jbpm.gd.jpdl.editor.JpdlEditor.createPages(JpdlEditor.java:132)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:357)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:662)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:462)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:271)
at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1417)
at org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:942)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3506)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$28.runWithException(Workbench.java:1384)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3506)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
What's going wrong? Am I missing something?
Thanks for help
Heri Bender
15 years, 7 months