Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Drag&Drop to Editor Area, Javascript error(Possible bug or wrong usage)
Drag&Drop to Editor Area, Javascript error [message #757620] Sun, 20 November 2011 09:24 Go to next message
M. Herrmann is currently offline M. Herrmann
Messages: 17
Registered: March 2010
Junior Member
Hi,

I am creating an RAP Application that supports dragging from a TableViewer to the editor area to open that object in an editor.

It works fine except when dragging over another TableViewer in an Editor.
Moving the mouse over a TableViewer in an editor (while dragging an object) gives me this error (in all browsers I tested):


Javascript error occurred:

Error: TypeError: a._rowContainer is undefined

fileName: (url)?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H650592485
lineNumber: 172
Debug: off


This happens when:


  • an editorAreaTransfer is set up
  • the editor contains a TableViewer (have not testes other viewers)
  • the user drags the item over the TableViewer in the editor (even without dropping it)
  • RAP-Version: 1.5.0 (have not tested other versions), Browsers: All


This might either be a bug or i am not using it correctly.
Whatever it is, there should not be a JavaScript error.

I have attached a sample RAP application project that demonstrates the error.
There are two actions on the toolbar to open two different types of editors, both containing TableViewers. Just drag something from the left view over the editor area while there is an editor open.


Could someone have a look at it please?
Thanks in advance


Markus
  • Attachment: DndTest.zip
    (Size: 77.59KB, Downloaded 23 times)
Re: Drag&Drop to Editor Area, Javascript error [message #757904 is a reply to message #757620] Sun, 20 November 2011 10:39 Go to previous message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1421
Registered: July 2009
Senior Member
Hi Markus,
all JavaScript errors a definitely a bug in RAP. Please open a bugzilla
and attach the snippet there.
Thanks,
Ivan

On 11/20/2011 4:24 PM, M. Herrmann wrote:
> Hi,
>
> I am creating an RAP Application that supports dragging from a TableViewer to the editor area to open that object in an editor.
>
> It works fine except when dragging over another TableViewer in an Editor.
> Moving the mouse over a TableViewer in an editor (while dragging an object) gives me this error (in all browsers I tested):
>
>
> Javascript error occurred:
>
> Error: TypeError: a._rowContainer is undefined
>
> fileName: (url)?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H650592485
> lineNumber: 172
> Debug: off
>
>
> This happens when:
>
>
> an editorAreaTransfer is set up
> the editor contains a TableViewer (have not testes other viewers)
> the user drags the item over the TableViewer in the editor (even without dropping it)
> RAP-Version: 1.5.0 (have not tested other versions), Browsers: All
>
>
> This might either be a bug or i am not using it correctly.
> Whatever it is, there should not be a JavaScript error.
>
> I have attached a sample RAP application project that demonstrates the error.
> There are two actions on the toolbar to open two different types of editors, both containing TableViewers. Just drag something from the left view over the editor area while there is an editor open.
>
>
> Could someone have a look at it please?
> Thanks in advance
>
>
> Markus
Previous Topic:migration rich text editor in RCP to RAP
Next Topic:About Eclipse debug plugin in RAP
Goto Forum:
  


Current Time: Wed May 22 00:21:50 EDT 2013

Powered by FUDForum. Page generated in 0.01515 seconds