DnD: UI freezes when after drop [message #95128] |
Tue, 23 September 2003 17:47  |
Eclipse User |
|
|
|
Originally posted by: dlemmermann.rcn.com
Hi there,
I have a problem with drag and drop in GEF. I am just getting started on GEF
and I managed to create a graphical viewer with some edit parts and figures
inside of it. All I am trying to do now is add a drop listener to the viewer
and print out some message that tells me that a drop has occurred.
Unfortunately I don't even get this to work. After dragging a file (or
anything else) from the Navigator to the editor the UI just hangs and I need
to kill the runtime workbench process in order to continue working. My code
is nothing more than this:
protected void initializeGraphicalViewer() {
GraphicalViewer viewer = getGraphicalViewer();
viewer.setContents(myModel); // PSEUDO
viewer.addDropTargetListener(new MyDropListener(viewer));
}
class MyDropListener extends AbstractTransferDropListener {
public MyDropListener(GraphicalViewer viewer) {
super(viewer);
}
protected void updateTargetRequest() {
System.out.println("Updating request....");
}
}
Am I missing something? Any help much appreciated.....
Dirk
P.S.: the main thread seems to be hanging in a native method call to
COM.DoDragDrop. All other threads are either in sleep() or in wait().
|
|
|
|
|
|
Re: UI freezes when after drop [message #95303 is a reply to message #95289] |
Wed, 24 September 2003 16:51   |
Eclipse User |
|
|
|
How can I find out which plugins get activated? I tried activating the
GEF.debug methods but it doesn't even get to the point where those debug
infos get printed.
I'll invest this problem a little bit more. I don't think that I can provide
any meaningful input to bugzilla (at this point in time) that would allow
you to recreate this problem.
I'll be back!
Dirk
On 9/24/03 10:19 PM, in article bksu6b$g62$1@eclipse.org, "Randy Hudson"
<none@us.ibm.com> wrote:
> Actually, I was hoping you were using something less stable, like 3.0. We
> have not seen this problem before. Are any plugins being activated during
> the DND process?
>
> Can you open a bugzilla with steps to reproduce. Platform/window manager is
> also important info.
>
> "Dirk Lemmermann" <dirk@dlsc.com> wrote in message
> news:BB979FD9.18BB%dirk@dlsc.com...
>> Yes, version information would help, I guess :-) .... Sorry about that!
>>
>> Eclipse 2.1.1
>> SWT 2.1.1
>> GEF 2.1.1
>>
>> Dirk
>>
>>
>>
>>
>> On 9/24/03 3:46 AM, in article bkqsvc$g1a$1@eclipse.org, "Randy Hudson"
>> <none@us.ibm.com> wrote:
>>
>>> Which version of Eclpise/SWT are you using?
>>>
>>> "Dirk Lemmermann" <dlemmermann@rcn.com> wrote in message
>>> news:BB968C1B.1645%dlemmermann@rcn.com...
>>>> Hi there,
>>>>
>>>> I have a problem with drag and drop in GEF. I am just getting started
> on
>>> GEF
>>>> and I managed to create a graphical viewer with some edit parts and
>>> figures
>>>> inside of it. All I am trying to do now is add a drop listener to the
>>> viewer
>>>> and print out some message that tells me that a drop has occurred.
>>>> Unfortunately I don't even get this to work. After dragging a file (or
>>>> anything else) from the Navigator to the editor the UI just hangs and I
>>> need
>>>> to kill the runtime workbench process in order to continue working. My
>>> code
>>>> is nothing more than this:
>>>>
>>>> protected void initializeGraphicalViewer() {
>>>> GraphicalViewer viewer = getGraphicalViewer();
>>>> viewer.setContents(myModel); // PSEUDO
>>>> viewer.addDropTargetListener(new MyDropListener(viewer));
>>>> }
>>>>
>>>> class MyDropListener extends AbstractTransferDropListener {
>>>> public MyDropListener(GraphicalViewer viewer) {
>>>> super(viewer);
>>>> }
>>>>
>>>> protected void updateTargetRequest() {
>>>> System.out.println("Updating request....");
>>>> }
>>>> }
>>>>
>>>> Am I missing something? Any help much appreciated.....
>>>>
>>>> Dirk
>>>>
>>>> P.S.: the main thread seems to be hanging in a native method call to
>>>> COM.DoDragDrop. All other threads are either in sleep() or in wait().
>>>>
>>>>
>>>>
>>>
>>>
>>
>
>
|
|
|
|
|
|
|
|
|
Re: DnD: UI freezes when after drop [message #95509 is a reply to message #95128] |
Fri, 26 September 2003 10:57  |
Eclipse User |
|
|
|
I opened a bug for this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=43746
Dirk Lemmermann wrote:
> Hi there,
>
> I have a problem with drag and drop in GEF. I am just getting started on GEF
> and I managed to create a graphical viewer with some edit parts and figures
> inside of it. All I am trying to do now is add a drop listener to the viewer
> and print out some message that tells me that a drop has occurred.
> Unfortunately I don't even get this to work. After dragging a file (or
> anything else) from the Navigator to the editor the UI just hangs and I need
> to kill the runtime workbench process in order to continue working. My code
> is nothing more than this:
>
> protected void initializeGraphicalViewer() {
> GraphicalViewer viewer = getGraphicalViewer();
> viewer.setContents(myModel); // PSEUDO
> viewer.addDropTargetListener(new MyDropListener(viewer));
> }
>
> class MyDropListener extends AbstractTransferDropListener {
> public MyDropListener(GraphicalViewer viewer) {
> super(viewer);
> }
>
> protected void updateTargetRequest() {
> System.out.println("Updating request....");
> }
> }
>
> Am I missing something? Any help much appreciated.....
>
> Dirk
>
> P.S.: the main thread seems to be hanging in a native method call to
> COM.DoDragDrop. All other threads are either in sleep() or in wait().
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.68703 seconds