[
https://jira.jboss.org/jira/browse/JBIDE-2504?page=com.atlassian.jira.plu...
]
Snjezana Peco commented on JBIDE-2504:
--------------------------------------
The problem happens because the uiJob and visualRefresfJob jobs are called when executing
some long operation (undo, redo, format) and come into conflict.
The attached patch fixes this problem.
Problems with VPE refresh when CTRL+Z(Y) hotkeys used.
------------------------------------------------------
Key: JBIDE-2504
URL:
https://jira.jboss.org/jira/browse/JBIDE-2504
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Visual Page Editor
Affects Versions: 3.0.0.alpha
Environment: WindowsXP SP2
JBoss Developer Studio
Version: 3.0.0.Alpha
Build id: 200807071935-nightly
Build date: 07/07/2008 19:41
JDK 1.5_08
Reporter: Aliaksey Nis
Priority: Minor
Fix For: 3.0.0.beta1
EXECUTE: Create jsf kickstart project.
EXECUTE: Create Xhtml page with template FaceletBlank (FaceletBlank.xhtml).
EXECUTE: Create Xhtml page with template FaceletCommon (FaceletCommon.xhtml).
EXECUTE: Open FaceletBlank.xhtml.
EXECUTE: Drag n Drop FaceletCommon.xhtml to <ui:composition template="".
EXECUTE: Save file(press CTRL+S).
EXECUTE: Press Ctrl+Z, Ctrl +Y few times("/FaceletCommon.xhtml"
appear/disappear), until VPE part become empty.
FAILURE: Click in random spots in VPE part - Event Handling Error thrown in error log.
After pressing "Refresh" button in VPE part all works fine.
Exception:
Event Handling Error
org.mozilla.xpcom.XPCOMException: The function "collapse" returned an error
condition (0xc1f30001)
at org.mozilla.xpcom.internal.XPCOMJavaProxy.callXPCOMMethod(Native Method)
at org.mozilla.xpcom.internal.XPCOMJavaProxy.invoke(XPCOMJavaProxy.java:143)
at $Proxy16.collapse(Unknown Source)
at
org.jboss.tools.vpe.editor.VpeSelectionBuilder.getInnerDragInfo(VpeSelectionBuilder.java:1246)
at org.jboss.tools.vpe.editor.VpeController.canInnerDrag(VpeController.java:2452)
at org.jboss.tools.vpe.editor.VpeController.dragGesture(VpeController.java:1342)
at
org.jboss.tools.vpe.editor.mozilla.MozillaDomEventListener.handleEvent(MozillaDomEventListener.java:167)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2370)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3418)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:112)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
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:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira