Home » Eclipse Projects » GEF » View & Model separation (Logic example)
View & Model separation (Logic example) [message #118469] |
Thu, 19 February 2004 18:29 |
Eclipse User |
|
|
|
Originally posted by: bharath.starthis.com
Hi Devs,
In the GEF Logic example, is the class "LogicDiagram" created in order to
separate the view logic from the business logic?
I am trying to separate model information from view information (I have
them in the same package, like the WORKFLOW example). I know this is an
EMF based question, I'm asking it here because its a part GEF Logic
example which people here seem to be very familiar with.
Thanks much!
Bharath.
|
|
|
Re: View & Model separation (Logic example) [message #118479 is a reply to message #118469] |
Thu, 19 February 2004 19:42 |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
Bharath wrote:
> Hi Devs,
>
> In the GEF Logic example, is the class "LogicDiagram" created in order to
> separate the view logic from the business logic?
>
Logicdiagram class really contains no logic. Its just the model which
represents what is to be shown. The so called view logic you refer to
is closest matched by the LogicDiagramEditPart.
The closest example of a 'business logic' class could be LEDEditPolicy.
> I am trying to separate model information from view information (I have
What do you mean model 'information' from view 'information?' There is
only 1 information. So called view-information I presume is info used
to display your model data, but that can be created at runtime and is
only involved with presentation? I think the EditPart is the home of
this, and the EditPolicy is one means of making it more dynamic.
> them in the same package, like the WORKFLOW example). I know this is an
> EMF based question, I'm asking it here because its a part GEF Logic
> example which people here seem to be very familiar with.
>
> Thanks much!
>
> Bharath.
>
--
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." John 10:1
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: View & Model separation (Logic example) [message #118503 is a reply to message #118479] |
Thu, 19 February 2004 23:27 |
Eclipse User |
|
|
|
Originally posted by: bharath.starthis.com
Hi Gilbert,
I thought so too. I am trying to change my model design by isoating view
information from business logic but I'm having several problems. Thanks
for your comments, I know that I'm thinking on the right lines now.
Cheers.
CL [dnoyeb] Gilbert wrote:
> Bharath wrote:
> > Hi Devs,
> >
> > In the GEF Logic example, is the class "LogicDiagram" created in order to
> > separate the view logic from the business logic?
> >
> Logicdiagram class really contains no logic. Its just the model which
> represents what is to be shown. The so called view logic you refer to
> is closest matched by the LogicDiagramEditPart.
> The closest example of a 'business logic' class could be LEDEditPolicy.
> > I am trying to separate model information from view information (I have
> What do you mean model 'information' from view 'information?' There is
> only 1 information. So called view-information I presume is info used
> to display your model data, but that can be created at runtime and is
> only involved with presentation? I think the EditPart is the home of
> this, and the EditPolicy is one means of making it more dynamic.
> > them in the same package, like the WORKFLOW example). I know this is an
> > EMF based question, I'm asking it here because its a part GEF Logic
> > example which people here seem to be very familiar with.
> >
> > Thanks much!
> >
> > Bharath.
> >
|
|
|
Re: View & Model separation (Logic example) [message #118508 is a reply to message #118503] |
Fri, 20 February 2004 03:32 |
Eclipse User |
|
|
|
Originally posted by: phil.williams.toadmail.com
This is a multi-part message in MIME format.
--------------090603070700080107000008
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
There is a thread from 1/27/04 entitled "separate view model and
business model" that discusses this further. You might want to check it
out.
Phil
Bharath wrote:
>Hi Gilbert,
>
>I thought so too. I am trying to change my model design by isoating view
>information from business logic but I'm having several problems. Thanks
>for your comments, I know that I'm thinking on the right lines now.
>
>Cheers.
>
>CL [dnoyeb] Gilbert wrote:
>
>
>
>>Bharath wrote:
>>
>>
>>>Hi Devs,
>>>
>>>In the GEF Logic example, is the class "LogicDiagram" created in order to
>>>separate the view logic from the business logic?
>>>
>>>
>>>
>
>
>
>>Logicdiagram class really contains no logic. Its just the model which
>>represents what is to be shown. The so called view logic you refer to
>>is closest matched by the LogicDiagramEditPart.
>>
>>
>
>
>
>>The closest example of a 'business logic' class could be LEDEditPolicy.
>>
>>
>
>
>
>
>>>I am trying to separate model information from view information (I have
>>>
>>>
>
>
>
>>What do you mean model 'information' from view 'information?' There is
>>only 1 information. So called view-information I presume is info used
>>to display your model data, but that can be created at runtime and is
>>only involved with presentation? I think the EditPart is the home of
>>this, and the EditPolicy is one means of making it more dynamic.
>>
>>
>
>
>
>
>>>them in the same package, like the WORKFLOW example). I know this is an
>>>EMF based question, I'm asking it here because its a part GEF Logic
>>>example which people here seem to be very familiar with.
>>>
>>>Thanks much!
>>>
>>>Bharath.
>>>
>>>
>>>
>
>
>
>
>
>
--------------090603070700080107000008
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html;charset=ISO-8859-15">
<title></title>
</head>
<body>
There is a thread from 1/27/04 entitled "separate view model and
business model" that discusses this further.
|
|
|
Re: View & Model separation (Logic example) [message #118573 is a reply to message #118508] |
Fri, 20 February 2004 15:57 |
Eclipse User |
|
|
|
Originally posted by: bharath.starthis.com
Hi Phil,
For some strange reason, I could not find the thread for that date. I
shall however keep looking. Anyway, my understanding is that, to separate
view information, I should have a class called "Logic Diagram" in a
separate model which extends "LogicSubPart" (the corresponding business
model). Once I generate code for this view model, I should see
"LogicDiagramFactory" class which will help me create diagram objects.
The strange thing is, in "LogicSubPart", I find the attributes "location"
and "size". This simply means that the view information is still not
isolated from the model, right? Why do I need the "LogicDiagram" class in
that case?
Please correct me if I am thinking on the wrong lines & Thanks for your
help!
Bharath.
Phil Williams wrote:
> There is a thread from 1/27/04 entitled "separate view model and
> business model" that discusses this further. You might want to check it
> out.
> Phil
> Bharath wrote:
> >Hi Gilbert,
> >
> >I thought so too. I am trying to change my model design by isoating view
> >information from business logic but I'm having several problems. Thanks
> >for your comments, I know that I'm thinking on the right lines now.
> >
> >Cheers.
> >
> >CL [dnoyeb] Gilbert wrote:
> >
> >
> >
> >>Bharath wrote:
> >>
> >>
> >>>Hi Devs,
> >>>
> >>>In the GEF Logic example, is the class "LogicDiagram" created in order to
> >>>separate the view logic from the business logic?
> >>>
> >>>
> >>>
> >
> >
> >
> >>Logicdiagram class really contains no logic. Its just the model which
> >>represents what is to be shown. The so called view logic you refer to
> >>is closest matched by the LogicDiagramEditPart.
> >>
> >>
> >
> >
> >
> >>The closest example of a 'business logic' class could be LEDEditPolicy.
> >>
> >>
> >
> >
> >
> >
> >>>I am trying to separate model information from view information (I have
> >>>
> >>>
> >
> >
> >
> >>What do you mean model 'information' from view 'information?' There is
> >>only 1 information. So called view-information I presume is info used
> >>to display your model data, but that can be created at runtime and is
> >>only involved with presentation? I think the EditPart is the home of
> >>this, and the EditPolicy is one means of making it more dynamic.
> >>
> >>
> >
> >
> >
> >
> >>>them in the same package, like the WORKFLOW example). I know this is an
> >>>EMF based question, I'm asking it here because its a part GEF Logic
> >>>example which people here seem to be very familiar with.
> >>>
> >>>Thanks much!
> >>>
> >>>Bharath.
> >>>
> >>>
> >>>
> >
> >
> >
> >
> >
> >
|
|
|
Re: View & Model separation (Logic example) [message #118696 is a reply to message #118573] |
Fri, 20 February 2004 20:44 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
If you want stuff split into business and diagram models, you need to do all
of this in your model. There are no GEF concepts which map directly onto
this problem. Read the GEF tutorial which talks about split models,
specifically class diagrams.
"Bharath" <bharath@starthis.com> wrote in message
news:c15app$64h$1@eclipse.org...
> Hi Phil,
>
> For some strange reason, I could not find the thread for that date. I
> shall however keep looking. Anyway, my understanding is that, to separate
> view information, I should have a class called "Logic Diagram" in a
> separate model which extends "LogicSubPart" (the corresponding business
> model). Once I generate code for this view model, I should see
> "LogicDiagramFactory" class which will help me create diagram objects.
>
> The strange thing is, in "LogicSubPart", I find the attributes "location"
> and "size". This simply means that the view information is still not
> isolated from the model, right? Why do I need the "LogicDiagram" class in
> that case?
>
> Please correct me if I am thinking on the wrong lines & Thanks for your
> help!
>
|
|
|
Goto Forum:
Current Time: Fri Nov 08 22:00:02 GMT 2024
Powered by FUDForum. Page generated in 0.03094 seconds
|