Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » DNDAddon Trouble
DNDAddon Trouble [message #915395] Mon, 17 September 2012 07:46 Go to next message
Jürgen Weinberger is currently offline Jürgen WeinbergerFriend
Messages: 42
Registered: August 2012
Member
Hi! I am currently playing around with eclipse 4.2 to get a feeling how much effort it would be to port our current 3.7 RCP Application to Juno. I ran into some strange behaviour of the DNDAddon and just wanted to know if this is a bug or if i am doing something wrong.

I have a plain Application Model with just a

Trimmed Window
-> Perspective Stack
--> Perspective
---> Part Stack (which is empty)

Now i add via a MenuItem new Parts to the Part Stack dynamically which works fine (got the source from lars vogels tutorial [not allowed to paste the link]).

When i enable DnD via the DragAndDrop- and the CleanUp-Addon also everything works fine as long as i keep one Part in the Part Stack. I can drag and drop the rest of my Parts where ever i want.
Now my Problem is when i move the last Part remaining in the Main-Window (so that this window would be empty) out of it. The new "part-Window" and all the others disapear and as i can see in the live-editor also the Part Stack is gone. This also happens if i only create one part and drag it out.

Maybe somebody has some advice what i am doing wrong or if this is a bug.
Thx in advance and
regards weinma
Re: DNDAddon Trouble [message #915401 is a reply to message #915395] Mon, 17 September 2012 07:59 Go to previous messageGo to next message
Eclipse UserFriend
Hi, can you attach your sample project so we can reproduce?
Re: DNDAddon Trouble [message #915444 is a reply to message #915401] Mon, 17 September 2012 09:31 Go to previous messageGo to next message
Jürgen Weinberger is currently offline Jürgen WeinbergerFriend
Messages: 42
Registered: August 2012
Member
Sure here is my simple test Application Smile
regards weinma
Re: DNDAddon Trouble [message #915570 is a reply to message #915395] Mon, 17 September 2012 14:46 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
The problem is that by default Stacks are collapsed if there's no child
anymore (the only exception in 3.x was the editor stack in this respect)
and the cleanup addon is present (well in fact that's its sole job).

If you don't want the stack to collapse you can tag it with
IPresentationEngine.NO_AUTO_COLLAPSE and it will stay as an empty one.


Tom

Am 17.09.12 09:46, schrieb Jürgen Weinberger:
> Hi! I am currently playing around with eclipse 4.2 to get a feeling how
> much effort it would be to port our current 3.7 RCP Application to Juno.
> I ran into some strange behaviour of the DNDAddon and just wanted to
> know if this is a bug or if i am doing something wrong.
>
> I have a plain Application Model with just a
> Trimmed Window -> Perspective Stack
> --> Perspective
> ---> Part Stack (which is empty)
>
> Now i add via a MenuItem new Parts to the Part Stack dynamically which
> works fine (got the source from lars vogels tutorial [not allowed to
> paste the link]).
>
> When i enable DnD via the DragAndDrop- and the CleanUp-Addon also
> everything works fine as long as i keep one Part in the Part Stack. I
> can drag and drop the rest of my Parts where ever i want.
> Now my Problem is when i move the last Part remaining in the Main-Window
> (so that this window would be empty) out of it. The new "part-Window"
> and all the others disapear and as i can see in the live-editor also the
> Part Stack is gone. This also happens if i only create one part and drag
> it out.
>
> Maybe somebody has some advice what i am doing wrong or if this is a bug.
> Thx in advance and
> regards weinma
Re: DNDAddon Trouble [message #915884 is a reply to message #915570] Tue, 18 September 2012 06:43 Go to previous messageGo to next message
Jürgen Weinberger is currently offline Jürgen WeinbergerFriend
Messages: 42
Registered: August 2012
Member
Hey!
Thanks a lot.. Now the partStack stays if i just close the tab.
But it doesn't solve the problem that all the windows(parts) that i dragged out of the main window disappear (also the partStack again) when i move the last tab(part) out of the main window.

best regards
weinma

[Updated on: Tue, 18 September 2012 06:52]

Report message to a moderator

Re: DNDAddon Trouble [message #919381 is a reply to message #915884] Sat, 22 September 2012 00:05 Go to previous message
Eclipse UserFriend
Please file a bug for this issue and report it back here for reference. Thanks.
Previous Topic:Howto contribute a perspective to a perspective stack?
Next Topic:Application error
Goto Forum:
  


Current Time: Thu Apr 25 01:02:38 GMT 2024

Powered by FUDForum. Page generated in 0.03404 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top