Skip to main content



      Home
Home » Eclipse Projects » GEF » Multiple content panes possible??
Multiple content panes possible?? [message #164756] Thu, 20 January 2005 13:23 Go to next message
Eclipse UserFriend
Hi!

Is there a way to set more than one content pane for an EditPart?
Depentend on the childs class, the appropriate pane should be selected.
Or can this be done an other way?

(Sorry for the bad English)
Re: Multiple content panes possible?? [message #164789 is a reply to message #164756] Thu, 20 January 2005 13:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

For now, you need to override addChildVisual and just find the correct
content pane. Also, override:

public void setLayoutConstraint(EditPart child, IFigure childFigure, Object
constraint) {
childFigure.getParent().setConstraint(childFigure, constraint);
}

in Abstract GraphicaEditPart

"Roger VIllars" <roger.villars@mimacom.ch> wrote in message
news:csosvc$n80$1@www.eclipse.org...
>
> Hi!
>
> Is there a way to set more than one content pane for an EditPart?
> Depentend on the childs class, the appropriate pane should be selected. Or
> can this be done an other way?
>
> (Sorry for the bad English)
>
>
>
Re: Multiple content panes possible?? [message #164901 is a reply to message #164789] Fri, 21 January 2005 01:20 Go to previous message
Eclipse UserFriend
Hey, that worked! Too easy... ;-)

Thank you very much!


Randy Hudson wrote:

> For now, you need to override addChildVisual and just find the correct
> content pane. Also, override:

> public void setLayoutConstraint(EditPart child, IFigure childFigure, Object
> constraint) {
> childFigure.getParent().setConstraint(childFigure, constraint);
> }

> in Abstract GraphicaEditPart

> "Roger VIllars" <roger.villars@mimacom.ch> wrote in message
> news:csosvc$n80$1@www.eclipse.org...
>>
>> Hi!
>>
>> Is there a way to set more than one content pane for an EditPart?
>> Depentend on the childs class, the appropriate pane should be selected. Or
>> can this be done an other way?
>>
>> (Sorry for the bad English)
>>
>>
>>
Previous Topic:Problems with CreationTool and disabled cursor
Next Topic:Connections as container for EditParts?
Goto Forum:
  


Current Time: Thu May 01 11:36:03 EDT 2025

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

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

Back to the top