MVC Question [message #188721] |
Fri, 22 July 2005 10:47  |
Eclipse User |
|
|
|
Here's a simple MVC question.
I have a GEF editor. When you select a figure, there is an associated
property page with it. If the user modifies a property, do I change the
model or do I tell the EditPart which changes the model?
Thanks,
Josh
|
|
|
|
|
|
|
|
Re: MVC Question [message #189105 is a reply to message #188882] |
Mon, 25 July 2005 14:36  |
Eclipse User |
|
|
|
I'll convert it over to using Commands down the road. I'm not even to
the point of using edit policies or anything like that yet. I've just
been working on getting the viewing working properly and a few other
experiments.
Thanks,
Josh
Randy Hudson wrote:
> You need to make it undoable or you may run into consistency problems when
> the user undoes the stuff that is undoable/redoable.
>
> "Josh Reed" <jareed@iastate.edu> wrote in message
> news:dbrdo6$9gh$1@news.eclipse.org...
>
>>Yeah, I have a custom property page. I made the updates directly on the
>>model. The EditPart gets notified of the changes via
>>PropertyChangeListeners and updates the Figure accordingly.
>>
>>Thanks,
>>Josh
>>
>>Randy Hudson wrote:
>>
>>>Are you talking about the properties view? If not, your custom property
>>>page is the "controller" and should execute commands directly on the
>>>model.
>>>
>>>"Josh Reed" <jareed@iastate.edu> wrote in message
>>>news:dbr0u4$pm4$1@news.eclipse.org...
>>>
>>>
>>>>Here's a simple MVC question.
>>>>
>>>>I have a GEF editor. When you select a figure, there is an associated
>>>>property page with it. If the user modifies a property, do I change the
>>>>model or do I tell the EditPart which changes the model?
>>>>
>>>>Thanks,
>>>>Josh
>>>
>>>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04358 seconds