Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to add edit parts to an edit part?
How to add edit parts to an edit part? [message #239234] Fri, 12 October 2007 17:17 Go to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
I would like to be able to add a resizeable "container" type edit part /
figure to my root edit part in a graphical viewer. Then I would like to
drag objects from the viewer's palette to add child edit parts to this
container part. In other words edit parts within an edit part.

But I just cant work out what type of Figure and layout to use -
FreeformViewport? Or? Any tips would be great.

Cheers,

PB
Re: How to add edit parts to an edit part? [message #239238 is a reply to message #239234] Sat, 13 October 2007 17:06 Go to previous message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
Phillip Beauvoir wrote:
> I would like to be able to add a resizeable "container" type edit part /
> figure to my root edit part in a graphical viewer. Then I would like to
> drag objects from the viewer's palette to add child edit parts to this
> container part. In other words edit parts within an edit part.
>
> But I just cant work out what type of Figure and layout to use -
> FreeformViewport? Or? Any tips would be great.
>
> Cheers,
>
> PB

I have it figured it out.

- Use a normal Figure with XYLayout
- Put this Figure inside a ScrollPane
- Put this ScrollPane in a parent Figure
- Ensure the associated Edit Part returns the first Figure for
getContentPane()

PB
Previous Topic:Displating a Hyperlink in Properties view
Next Topic:GEF/GMF: choice criteria
Goto Forum:
  


Current Time: Thu Apr 25 01:46:13 GMT 2024

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

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

Back to the top