Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Drop a Part into a Part!
Drop a Part into a Part! [message #1403140] Mon, 21 July 2014 16:15 Go to next message
Bastien Bart is currently offline Bastien BartFriend
Messages: 21
Registered: May 2014
Junior Member
Hi,

I would need to drag a Part from a partStack and drop it to a tabPane contained into an other part...


Do u think that's possible? What would be the best way to go?

Thx
Re: Drop a Part into a Part! [message #1403253 is a reply to message #1403140] Tue, 22 July 2014 16:21 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
----------
This was sent already today in the morning but the nntp newsgroup sync has eaten is. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=440142
----------

So your maintain the tabPane inside the part yourself?

The problem in this case is that until I get my Tab DnD into upstream
(target is u40) you can not detect the drop.

But I have another idea for you which is most likely available inside
the nightly (although your use case has not been tested).

You could use MCompositePart and your structure would look like this:

<MCompositePart>
<MPartStack>
<MPart />
<MPart />
<MPart />
</MPartStack>
</MCompositePart>

This way the default DnD handler currently implemented inside our
rendering framework would handle DnD for you.

Please note that to create MCompositePart you need the latest build of
the e4 tools!

Tom
Re: Drop a Part into a Part! [message #1403284 is a reply to message #1403140] Tue, 22 July 2014 07:30 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
So your maintain the tabPane inside the part yourself?

The problem in this case is that until I get my Tab DnD into upstream
(target is u40) you can not detect the drop.

But I have another idea for you which is most likely available inside
the nightly (although your use case has not been tested).

You could use MCompositePart and your structure would look like this:

<MCompositePart>
<MPartStack>
<MPart />
<MPart />
<MPart />
</MPartStack>
</MCompositePart>

This way the default DnD handler currently implemented inside our
rendering framework would handle DnD for you.

Please note that to create MCompositePart you need the latest build of
the e4 tools!

Tom

On 21.07.14 18:15, Bastien Bart wrote:
> Hi,
>
> I would need to drag a Part from a partStack and drop it to a tabPane
> contained into an other part...
>
>
> Do u think that's possible? What would be the best way to go?
>
> Thx
Re: Drop a Part into a Part! [message #1403357 is a reply to message #1403284] Wed, 23 July 2014 08:10 Go to previous messageGo to next message
Bastien Bart is currently offline Bastien BartFriend
Messages: 21
Registered: May 2014
Junior Member
I'm sorrt but i'm not an expert with e4...

For declaring my Parts I use PartDescriptor in the e4xmi and to open them i call the createPart method of EPartService.

How do i force it to use a MCompositePart instead of a MPart?

I use the efx ide (nighty build) and the efx target definition (nightly build too)

Thanks a lot for your help
Re: Drop a Part into a Part! [message #1403359 is a reply to message #1403357] Wed, 23 July 2014 08:18 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Unfortunately there's no descriptor for MCompositePart!

You'd have to:
a) construct it via code
b) create a Snippet and clone that snippet

The Snippet system works similar to the MPartDescriptor one with the
difference that it is more flexible.

Tom

On 23.07.14 10:10, Bastien Bart wrote:
> I'm sorrt but i'm not an expert with e4...
>
> For declaring my Parts I use PartDescriptor in the e4xmi and to open
> them i call the createPart method of EPartService.
>
> How do i force it to use a MCompositePart instead of a MPart?
> I use the efx ide (nighty build) and the efx target definition (nightly
> build too)
>
> Thanks a lot for your help
Previous Topic:e(fx)clipse and android
Next Topic:Strange issue with e(fx)clipse 0.9.0
Goto Forum:
  


Current Time: Wed Apr 24 13:59:53 GMT 2024

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

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

Back to the top