Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[atf-dev] about DOMEvent hook

Dear developers,
 
I am working on an eclipse plugin project, which has an editor like browserEditor in atf. Selecting and clipping html elements are the main additional functions.
It has been worked well in common swt shell program, while it cannot work as an editor of a plugin!
I think it cannot be classpath or classLoader problem for I am checked about it,  and it cannot be a plugin configuration problem because it is working well except that the browser cannot hook any mouse or key event.
I read the source code of atf, but nothing extraordinary was found.
Would you please figure out what's wrong about it?
 
Some details:
The browser is mainly the same with browserEditor of atf. It unhooks message when the document is about to change, while hooks message when change is finished. The listeners of  hooked messages, "mouseover" for instance, will highlight the html element. This function is worked well in common swt shell program. But it doesn't work as a editor in a plugin, and it seems like listeners registered in nsIDOMTarget cannot receive any message.
The code is very similar to the package in atf named org.eclipse.atf.mozilla.ide.ui.browser, so I don't attach them here.
 
Thanks.
 
regards
 
Gavin

Back to the top