[jbosstools-issues] [JBoss JIRA] (JBIDE-8701) VPE editor row lock on Visual/Source page

Denis Maliarevich (JIRA) jira-events at lists.jboss.org
Mon Jan 23 10:58:19 EST 2012


    [ https://issues.jboss.org/browse/JBIDE-8701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661198#comment-12661198 ] 

Denis Maliarevich edited comment on JBIDE-8701 at 1/23/12 10:57 AM:
--------------------------------------------------------------------

Removing scroll event listeners works only for source listener.
For visual listener (xulrunner interface) -- events seem to be handled asynchronously. After visual listener has been removed and added once again it catches the same source scroll event. I suppose it's the result of display events queue processing.

So in order to detach event's influence on each other -- two flags were added. Boolean sourceScrollEvent and visualScrollEvent flags indicate that the scrolling is performed programmatically by VPE.

But there is another issue: that listeners react to any content change event. For instance setSelection(). So this behavior should be carefully checked.
                
      was (Author: dmaliarevich):
    Removing scroll event listeners works only for source listener.
For visual listener (xulrunner interface) -- events seem to be handled asynchronously. After visual listener has been removed and added once again it cathes the same source scroll event. I suppose it's the result of display events queue processing.

So in order to detach event's influence on each other -- two flags were added. Boolean sourceScrollEvent and visualScrollEvent flags indicates that the scrolling is performed programmatically.

But there is another issue: that listeners react to any content change event. For instance setSelection(). So this behavior should be carefully checked.
                  
> VPE editor row lock on Visual/Source page
> -----------------------------------------
>
>                 Key: JBIDE-8701
>                 URL: https://issues.jboss.org/browse/JBIDE-8701
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: Visual Page Editor core
>    Affects Versions: 3.2.0.Final
>            Reporter: Jiri Peterka
>            Assignee: Denis Maliarevich
>             Fix For: 3.3.0.Beta1
>
>         Attachments: JBIDE8701-Source-Scroll-2.patch, JBIDE8701-Source-Scroll-3.patch, JBIDE8701-Source-Scroll.patch
>
>
> When Horizontal splitting with the Source Editor is set it would be nice to have switch to have row locked to keep the corresponding visual element on the same row as in the source part and vice versa.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list