Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » object creation policies
object creation policies [message #40235] Wed, 06 November 2002 16:01 Go to next message
Dag Rende is currently offline Dag RendeFriend
Messages: 17
Registered: July 2009
Junior Member
Hi!

I'm building a specialized UML diagram editor with gef. I like the intention
in gef to separate model and view handling.
The gef docs says that a ContainerEditPolicy in CONTAINER_ROLE handling
model aspects should cooperate with a LayoutEditPolicy in LAYOUT_ROLE
handling view aspects.
When creating a diagram object, I assume that I let my ContainerEditPolicy
create a command that creates the object in my UML repository and have my
LayoutEditPolicy create a command to set the figure position for this object
in my diagram view.

Ok, I implement getCreateCommand in my ContainerEditPolicy to make a model
object creator.
But how should I set the view object position in my LayoutEditPolicy? I
can't find any method call to LayoutEditPolicy that could do this in a
natural way.

Now I check with the logic editor example, of course, and find that it
doesn't follow the gef doc guidelines.
The LogicContainerEditPolicy doesn't do anything about model object
creation, but LogicXYLayoutEditPolicy.getCreateCommand returns a
CreateCommand that handles both view aspects and model aspects.

Should I do this too in my tool?

Regards,
Dag Rende
Re: object creation policies [message #40247 is a reply to message #40235] Wed, 06 November 2002 16:12 Go to previous messageGo to next message
Ozgur Kurt is currently offline Ozgur KurtFriend
Messages: 70
Registered: July 2009
Member
have a look at the answers to my post on 05.11.2002 with title "interaction
between refreshvisuals, containerEP, layoutEP"

"Dag Rende" <dag.rende@applied.se> wrote in message
news:aqbcg8$f4f$1@rogue.oti.com...
> Hi!
>
> I'm building a specialized UML diagram editor with gef. I like the
intention
> in gef to separate model and view handling.
> The gef docs says that a ContainerEditPolicy in CONTAINER_ROLE handling
> model aspects should cooperate with a LayoutEditPolicy in LAYOUT_ROLE
> handling view aspects.
> When creating a diagram object, I assume that I let my ContainerEditPolicy
> create a command that creates the object in my UML repository and have my
> LayoutEditPolicy create a command to set the figure position for this
object
> in my diagram view.
>
> Ok, I implement getCreateCommand in my ContainerEditPolicy to make a model
> object creator.
> But how should I set the view object position in my LayoutEditPolicy? I
> can't find any method call to LayoutEditPolicy that could do this in a
> natural way.
>
> Now I check with the logic editor example, of course, and find that it
> doesn't follow the gef doc guidelines.
> The LogicContainerEditPolicy doesn't do anything about model object
> creation, but LogicXYLayoutEditPolicy.getCreateCommand returns a
> CreateCommand that handles both view aspects and model aspects.
>
> Should I do this too in my tool?
>
> Regards,
> Dag Rende
>
>
>
>
Re: object creation policies [message #40398 is a reply to message #40247] Wed, 06 November 2002 23:12 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Ozgur Kurt wrote:
> have a look at the answers to my post on 05.11.2002 with title "interaction
> between refreshvisuals, containerEP, layoutEP"
>
> "Dag Rende" <dag.rende@applied.se> wrote in message
> news:aqbcg8$f4f$1@rogue.oti.com...
>
>>Hi!
>>
>>I'm building a specialized UML diagram editor with gef. I like the
>
> intention
>
>>in gef to separate model and view handling.
>>The gef docs says that a ContainerEditPolicy in CONTAINER_ROLE handling
>>model aspects should cooperate with a LayoutEditPolicy in LAYOUT_ROLE
>>handling view aspects.
>>When creating a diagram object, I assume that I let my ContainerEditPolicy
>>create a command that creates the object in my UML repository and have my
>>LayoutEditPolicy create a command to set the figure position for this
>
> object
>
>>in my diagram view.
>>
>>Ok, I implement getCreateCommand in my ContainerEditPolicy to make a model
>>object creator.
>>But how should I set the view object position in my LayoutEditPolicy? I
>>can't find any method call to LayoutEditPolicy that could do this in a
>>natural way.
>>
>>Now I check with the logic editor example, of course, and find that it
>>doesn't follow the gef doc guidelines.
>>The LogicContainerEditPolicy doesn't do anything about model object
>>creation, but LogicXYLayoutEditPolicy.getCreateCommand returns a
>>CreateCommand that handles both view aspects and model aspects.
>>
>>Should I do this too in my tool?
>>
>>Regards,
>>Dag Rende
>>
>>
>>
>>
>
>
>
Hello world !
Enjoy modeling with EclipseUml Free Edition (Omondo company) and use the
best technology such as GEF, EMF, SVG for free.
Cheers,
Re: object creation policies [message #40459 is a reply to message #40398] Thu, 07 November 2002 02:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hudsonr.us.eye-bee-em.com

"V.VARNICA" <varnica@omondo.com> wrote in message
news:aqc5n5$u2n$1@rogue.oti.com...
> Ozgur Kurt wrote:
> > have a look at the answers to my post on 05.11.2002 with title
"interaction
> > between refreshvisuals, containerEP, layoutEP"
> >
> > "Dag Rende" <dag.rende@applied.se> wrote in message
> > news:aqbcg8$f4f$1@rogue.oti.com...
> >
> >>Hi!
> >>
> >>I'm building a specialized UML diagram editor with gef. I like the
> >
> > intention
> >
> >>in gef to separate model and view handling.
> >>The gef docs says that a ContainerEditPolicy in CONTAINER_ROLE handling
> >>model aspects should cooperate with a LayoutEditPolicy in LAYOUT_ROLE
> >>handling view aspects.
> >>When creating a diagram object, I assume that I let my
ContainerEditPolicy
> >>create a command that creates the object in my UML repository and have
my
> >>LayoutEditPolicy create a command to set the figure position for this
> >
> > object
> >
> >>in my diagram view.
> >>
> >>Ok, I implement getCreateCommand in my ContainerEditPolicy to make a
model
> >>object creator.
> >>But how should I set the view object position in my LayoutEditPolicy? I
> >>can't find any method call to LayoutEditPolicy that could do this in a
> >>natural way.
> >>
> >>Now I check with the logic editor example, of course, and find that it
> >>doesn't follow the gef doc guidelines.
> >>The LogicContainerEditPolicy doesn't do anything about model object
> >>creation, but LogicXYLayoutEditPolicy.getCreateCommand returns a
> >>CreateCommand that handles both view aspects and model aspects.
> >>
> >>Should I do this too in my tool?
> >>
> >>Regards,
> >>Dag Rende
> >>
> >>
> >>
> >>
> >
> >
> >
> Hello world !
> Enjoy modeling with EclipseUml Free Edition (Omondo company) and use the
> best technology such as GEF, EMF, SVG for free.
> Cheers,

.... and drink more Ovaltine
Re: object creation policies [message #40817 is a reply to message #40398] Fri, 08 November 2002 14:29 Go to previous message
Dag Rende is currently offline Dag RendeFriend
Messages: 17
Registered: July 2009
Junior Member
I would be interested if it was open source.

/Dag

"V.VARNICA" <varnica@omondo.com> skrev i meddelandet
news:aqc5n5$u2n$1@rogue.oti.com...
> Ozgur Kurt wrote:
> > have a look at the answers to my post on 05.11.2002 with title
"interaction
> > between refreshvisuals, containerEP, layoutEP"
> >
> > "Dag Rende" <dag.rende@applied.se> wrote in message
> > news:aqbcg8$f4f$1@rogue.oti.com...
> >
> >>Hi!
> >>
> >>I'm building a specialized UML diagram editor with gef. I like the
> >
> > intention
> >
> >>in gef to separate model and view handling.
> >>The gef docs says that a ContainerEditPolicy in CONTAINER_ROLE handling
> >>model aspects should cooperate with a LayoutEditPolicy in LAYOUT_ROLE
> >>handling view aspects.
> >>When creating a diagram object, I assume that I let my
ContainerEditPolicy
> >>create a command that creates the object in my UML repository and have
my
> >>LayoutEditPolicy create a command to set the figure position for this
> >
> > object
> >
> >>in my diagram view.
> >>
> >>Ok, I implement getCreateCommand in my ContainerEditPolicy to make a
model
> >>object creator.
> >>But how should I set the view object position in my LayoutEditPolicy? I
> >>can't find any method call to LayoutEditPolicy that could do this in a
> >>natural way.
> >>
> >>Now I check with the logic editor example, of course, and find that it
> >>doesn't follow the gef doc guidelines.
> >>The LogicContainerEditPolicy doesn't do anything about model object
> >>creation, but LogicXYLayoutEditPolicy.getCreateCommand returns a
> >>CreateCommand that handles both view aspects and model aspects.
> >>
> >>Should I do this too in my tool?
> >>
> >>Regards,
> >>Dag Rende
> >>
> >>
> >>
> >>
> >
> >
> >
> Hello world !
> Enjoy modeling with EclipseUml Free Edition (Omondo company) and use the
> best technology such as GEF, EMF, SVG for free.
> Cheers,
>
Previous Topic:Placing a Label on a different layer than the connection
Next Topic:Connection in the background
Goto Forum:
  


Current Time: Sun Oct 06 14:18:41 GMT 2024

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

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

Back to the top