Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » could one EditPart have two ContentPane?
could one EditPart have two ContentPane? [message #160500] Mon, 06 December 2004 12:29 Go to next message
Eclipse UserFriend
Originally posted by: lin_tower.hotmail.com

When drawing UML class diagram, the diagram will have two contentPane, one
for putting attributes, the othe for operations. Could one EditPart have
two contentpane and put different model type into the contentpane?How to
implement like that class diagram?
Thanks.
lee
Re: could one EditPart have two ContentPane? [message #160507 is a reply to message #160500] Mon, 06 December 2004 13:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: usenet.jevopi.de

> When drawing UML class diagram, the diagram will have two contentPane, one
> for putting attributes, the othe for operations. Could one EditPart have
> two contentpane and put different model type into the contentpane?How to
> implement like that class diagram?
>

As far as I know, an EditPart could have only one figure and thus only
one contentpane.
In your case, use children:

Class
--> NameCompartment
--> AttributeCompartment
--> OperationCompartment

Jens
Re: could one EditPart have two ContentPane? [message #160515 is a reply to message #160500] Mon, 06 December 2004 14:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

lee wrote:
> When drawing UML class diagram, the diagram will have two contentPane, one
> for putting attributes, the othe for operations. Could one EditPart have
> two contentpane and put different model type into the contentpane?How to
> implement like that class diagram?
> Thanks.
> lee
>
>
>

Probably the most GEF friendly way would be for the UML class to have
its own editpart. And the UML class will contain 2 children editparts.
The UML class editpart will layout those children appropriately. 1
child would be an editpart that contained a attribute model, the other
child would be an editpart that contained a operations model.

That is how I would do it for the most compatibility with GEF. But
certainly if you want to create a new figure type, that is an option.
Especially if it will _always_ look the same it would probably be
simpler in the long run.

--
Respectfully,


CL Gilbert

"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber."

GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D

For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
Re: could one EditPart have two ContentPane? [message #160586 is a reply to message #160500] Mon, 06 December 2004 17:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

There is a class EditPart in the new ediagram example. You can load this
example from CVS, and it requires EMF. See the GEF FAQ for info on loading
from CVS.

The solution we use is to create 2 children "feature parts" for both the
operations and attributes features. They have the same model as the parent
editpart. The feature panes are *not* selectable, only their children are.

"lee" <lin_tower@hotmail.com> wrote in message
news:cp1j3a$knt$1@www.eclipse.org...
> When drawing UML class diagram, the diagram will have two contentPane, one
> for putting attributes, the othe for operations. Could one EditPart have
> two contentpane and put different model type into the contentpane?How to
> implement like that class diagram?
> Thanks.
> lee
>
>
>
Re: could one EditPart have two ContentPane? [message #160714 is a reply to message #160500] Tue, 07 December 2004 01:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lin_tower.hotmail.com

Thanks all of your help. It's very kind of you.

best regards,
lee

lee wrote:

> When drawing UML class diagram, the diagram will have two contentPane, one
> for putting attributes, the othe for operations. Could one EditPart have
> two contentpane and put different model type into the contentpane?How to
> implement like that class diagram?
> Thanks.
> lee
Re: could one EditPart have two ContentPane? [message #160719 is a reply to message #160586] Tue, 07 December 2004 03:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lin_tower.hotmail.com

I have got the org.eclipse.gef.examples.ediagram project from CVS, but it
can't compile with GEF 3.0.1. is that project depended on GEF 3.1?

Randy Hudson wrote:

> There is a class EditPart in the new ediagram example. You can load this
> example from CVS, and it requires EMF. See the GEF FAQ for info on loading
> from CVS.

> The solution we use is to create 2 children "feature parts" for both the
> operations and attributes features. They have the same model as the parent
> editpart. The feature panes are *not* selectable, only their children are.

> "lee" <lin_tower@hotmail.com> wrote in message
> news:cp1j3a$knt$1@www.eclipse.org...
>> When drawing UML class diagram, the diagram will have two contentPane, one
>> for putting attributes, the othe for operations. Could one EditPart have
>> two contentpane and put different model type into the contentpane?How to
>> implement like that class diagram?
>> Thanks.
>> lee
>>
>>
>>
Re: could one EditPart have two ContentPane? [message #160826 is a reply to message #160719] Tue, 07 December 2004 16:19 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Please remove the bogus color references manually. It will be fixed
shortly.

"lee" <lin_tower@hotmail.com> wrote in message
news:cp36nn$mlu$1@www.eclipse.org...
> I have got the org.eclipse.gef.examples.ediagram project from CVS, but it
> can't compile with GEF 3.0.1. is that project depended on GEF 3.1?
>
> Randy Hudson wrote:
>
> > There is a class EditPart in the new ediagram example. You can load
this
> > example from CVS, and it requires EMF. See the GEF FAQ for info on
loading
> > from CVS.
>
> > The solution we use is to create 2 children "feature parts" for both the
> > operations and attributes features. They have the same model as the
parent
> > editpart. The feature panes are *not* selectable, only their children
are.
>
> > "lee" <lin_tower@hotmail.com> wrote in message
> > news:cp1j3a$knt$1@www.eclipse.org...
> >> When drawing UML class diagram, the diagram will have two contentPane,
one
> >> for putting attributes, the othe for operations. Could one EditPart
have
> >> two contentpane and put different model type into the contentpane?How
to
> >> implement like that class diagram?
> >> Thanks.
> >> lee
> >>
> >>
> >>
>
>
Previous Topic:No Display.getCurrent() when opening Swing Component
Next Topic:Inter-communication Between Plugins
Goto Forum:
  


Current Time: Fri Apr 26 03:55:45 GMT 2024

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

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

Back to the top