Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: Oliver F. on February 20, 2008, 08:35:20 pm

Title: (825) No Drag and Drop from project browser
Post by: Oliver F. on February 20, 2008, 08:35:20 pm
Suddenly drag and drop from to a diagram stopped working.
In fact I am unable to take elements, packages and other features and drag/drop  them onto a diagram, regardless the lock state.
I can see the cursor change when moving the element (with the + symbol), I can drop it but nothing happens afterwards. EA just simply returns without showing anything or giving any feedback.
On rather few occasions a dropped element is appearing but I would say this is one out of 20 attempts. From the toolbox I can drag and drop new elements without any problems.

Some days ago it used to work normally. I noticed this behavior with several different projects, be it database driven or from file system.

This is a serious issue, anybody noticed this or is it just me having overlooked something ?

[Update]: No issue with 818 so it is a bug related to 825. I will file this one.

Oliver
Title: Re:  (825) No Drag and Drop from project browser
Post by: «Midnight» on February 20, 2008, 11:34:47 pm
Sounds real to me Oliver,

Did you file one this via the beta bug report?

David
Title: Re:  (825) No Drag and Drop from project browser
Post by: «Midnight» on February 20, 2008, 11:37:09 pm
And while I'm thinking about it, what about d&d from the Resource View? I can drag a pattern successfully, but this could be something triggered in your project configuration.
Title: Re:  (825) No Drag and Drop from project browser
Post by: Oliver F. on February 21, 2008, 02:04:20 am
Quote
And while I'm thinking about it, what about d&d from the Resource View? I can drag a pattern successfully, but this could be something triggered in your project configuration.

I don´t think it is project related as I tried it with several projects and even created a completely new one.

I filed a bug report for 818 as I did not find the beta bug page and marked it explicitely as being 825. I assume Sparx is smart enough to filter that appropriately (though I will do better next time *sigh*).

Oliver
Title: Re:  (825) No Drag and Drop from project browser
Post by: thomaskilian on February 21, 2008, 03:02:04 am
As posted in the other thread I had it non-reproducible. With some clicks to other elements and changing the focus it worked again after a while. Also it seems that the behavior has stopped and it's working normally now. :-?
Title: Re:  (825) No Drag and Drop from project browser
Post by: «Midnight» on February 21, 2008, 10:28:25 am
Quote
...
I filed a bug report for 818 as I did not find the beta bug page and marked it explicitely as being 825. I assume Sparx is smart enough to filter that appropriately (though I will do better next time *sigh*)...
It's on the beta download page Oliver. It was not there for the first few days, so you would not have seen it if you downloaded early.

David
Title: Re:  (825) No Drag and Drop from project brow
Post by: mrf on February 21, 2008, 10:36:31 am
Hi Everyone,

I'm currently looking into this problem for Oliver but have not been able to reproduce it. If anyone can get it into a reproducable state, please feel free to send the EAP file through to  [email protected] marked for my attention.

PS: Any details regarding what plugins/technologies you have installed would also be a great help.
Title: Re:  (825) No Drag and Drop from project browser
Post by: thomaskilian on February 21, 2008, 06:08:16 pm
I'm using Parallels on my Mac. What happens regularly is a similar behavior: I drag something from the browser and when I drop it on the diagram, nothing happens. BUT: when I hover back over the browser the element is now hooked and with another click I can drop it on the diagram. That has been the case already with former releases. This new behavior has only started with the beta.
Title: Re:  (825) No Drag and Drop from project browser
Post by: Oliver F. on February 22, 2008, 12:10:40 am
Quote
BUT: when I hover back over the browser the element is now hooked and with another click I can drop it on the diagram. That has been the case already with former releases. This new behavior has only started with the beta.

That one, unfortunately, is different.
Just reinstalled 825 over 818 and it is here again.

Oliver
Title: Re:  (825) No Drag and Drop from project browser
Post by: thomaskilian on February 22, 2008, 01:14:27 am
Does that mean you are also using Parallels?
Title: Catched it...
Post by: Oliver F. on February 22, 2008, 03:00:18 am
Quote
Suddenly drag and drop from to a diagram stopped working.

Folks, can you please do me a favor and verify the following in 825: Drop an element in the left 3rd/half of a diagram. It seems that everything dropped to the left is just omitted. I did not notice this because people having the project window at the left side tend to drop more in the left part, a browser to the right leads to not noticing this if the problem is on the left side of the diagram panel only.

This does not affect patterns dropped from the resource view, only project browser (thanks for the hint, David).

So if someone can verify this, I´d be glad.

Oliver
Title: Re:  (825) No Drag and Drop from project browser
Post by: «Midnight» on February 22, 2008, 03:15:21 am
Well, I've tried it. No problem no matter where I drop things.

David
Title: Re:  (825) No Drag and Drop from project browser
Post by: «Midnight» on February 22, 2008, 03:23:10 am
Oliver,

OK - I got one to fail!

I created a new project in 825 - just in case; I don't think this is structural. Note that my EABase has been edited, so there are no views by default.

I added a view, package, and class diagram (each nested). I use the New Element (control-M) dialog to add several new classes to the package (but not the diagram.

Then I randomly dragged several of the classes onto the diagram surface. The problem occurred once.

What seems to happen is that the mouse click to select the element in the browser fails somehow. You'll notice this before the drop failure. In the browser tree the 'selected' element is not highlighted, but appears dimmed out. As mentioned in an earlier post this can be corrected by a keystroke (escape seems to work), leaving the element selected normally, after which it can be dropped.

David
Title: Re:  (825) No Drag and Drop from project browser
Post by: «Midnight» on February 22, 2008, 03:30:06 am
Better yet, I've been able to reproduce the problem.

I've sent an email with the project to Michael.

David
Title: Re:  (825) No Drag and Drop from project browser
Post by: Oliver F. on February 22, 2008, 03:32:46 am
Quote
What seems to happen is that the mouse click to select the element in the browser fails somehow. You'll notice this before the drop failure. In the browser tree the 'selected' element is not highlighted, but appears dimmed out. As mentioned in an earlier post this can be corrected by a keystroke (escape seems to work), leaving the element selected normally, after which it can be dropped.

Nope, sorry. Mine is different, as I get the selection and the cursor changes to the dragging icon.

Interesting: The coordinates on which it refuses to drop things are absolute. I just enlarged the project browser to 2/3 of the screen and I can drop items on the left side of the diagrams (because the left edge is now starting beyond the half of the display, note my project browser is left).

Oliver
Title: Re:  (825) No Drag and Drop from project browser
Post by: «Midnight» on February 22, 2008, 03:40:17 am
I get the 'ghost' selection and my cursor changes. Still, I cannot drop.

These may be different problems, but perhaps have common elements (pun intended!).

BTW: I got an error message when I actually attempted the drop (without the escape keystroke). Something about a bad argument or parameter, but I forgot to take a screen shot.
Title: Re:  (825) No Drag and Drop from project brow
Post by: mrf on February 22, 2008, 09:11:29 am
Thanks I got both of your emails:

David: The problem you describe is one we're currently aware of and are working to fix (as time permits).

Oliver: Still can't replicate your problem. Any time the plus (+) mouse cursor comes up I am able to drag.

Just out of curiousity, does it make a difference if you wait for another half a second when you select the item before you begin dragging it. It maybe that there's some delay in the focus settling to the new selection.
Title: Re:  (825) No Drag and Drop from project brow
Post by: Oliver F. on February 22, 2008, 07:30:36 pm
OK, one step further. It works again, at least mostly.
Just for reproducability reasons what I did between not working and working state:

I decided to change the screen resolution from 1280x1024 to 1024x768.
This did not make a difference.
I then opened the hierarchy view, then the element view after which I switched back resolution.
Afterwards I then switched to the model views browser and moved a package from the project browser to one of the model views which immediately succeeded. That was the point when I tried again to drop  a use case to the non-working part of the screen and voila- here it was.
I am now able to drop objects again to the diagrams, except a small area to the right which looks highly suspicient in position and size to the area where the project browser has been when switching resolution.

So conclusion: I believe that changing resolution might have caused an inconsistency with the project browsers size and position so EAs event engine got stuck with a wrong size of the project browser area.
Changing resolution occurs here on my laptop from time to time when using beamers in the various meeting rooms.

I will keep you updated if that happens again but in case somebody else notices this, try changing resolution back and forth.

Oliver
Title: Re:  (825) No Drag and Drop from project brow
Post by: Oliver F. on February 22, 2008, 09:03:49 pm
Quote
I will keep you updated if that happens again but in case somebody else notices this, try changing resolution back and forth.

Well, that did not take long. Here it is again after a while of working with EA. My resolution theory is also broken as I did not change resolution in between and it did not cure anything, but...

The model view browser definitely has something to do with that.
Opening the model views, I can drag and drop elements from an arbitrary view at any place in the diagram (the browser being docked to the right of the project browser, left edge of the screen).
I can even drop elements from the project browser in the diagram at any place (crossing the model view in between) and when I close the model views dialog I can drop all elements from the project except at the location where the model view had been docked.

If I now undock the project browser all locations in the diagram are availabe for dropping.

So here something is wrong with docking/floating dialogs, size and drop position events.

Oliver
Title: Re:  (825) No Drag and Drop from project browser
Post by: mrf on February 25, 2008, 11:24:11 am
Thanks Oliver, I can reproduce that now. I'll have a look into it ASAP.
Title: Re:  (825) No Drag and Drop from project browser
Post by: mrf on February 25, 2008, 11:45:48 am
Just a quick note to advise that the problem has been resolved and should appear in the next release of Enterprise Architect.
Title: Re:  (825) No Drag and Drop from project browser
Post by: thomas.kilian on February 26, 2008, 08:13:46 pm
Does that mean beta02 or the next beta03?
Title: Re:  (825) No Drag and Drop from project browser
Post by: «Midnight» on February 26, 2008, 11:00:17 pm
Or 7.1 production?

Or 7.5?
Title: Re:  (825) No Drag and Drop from project browser
Post by: Oliver F. on February 27, 2008, 12:37:50 am
Quote
Or 7.1 production?

Or 7.5?

Hmm, Michael mentioned the word "Release" which smells a lot like 7.1 production.
Now that I have a workaround I can almost live with it, though I really want to have that fix (despite your sig, David :) )

Oliver
Title: Re:  (825) No Drag and Drop from project browser
Post by: mrf on February 27, 2008, 09:05:13 am
It should be in the next build (build 827). Whether that is Beta 03 or 7.1 production hasn't been communicated yet.