Save As and PageBookView [message #130786] |
Wed, 05 May 2004 15:20 |
Eclipse User |
|
|
|
Originally posted by: phil.williams.toadmail.com
I am not sure if this is the proper place or not to post this question,
but here goes.
I have an editor that is based on the LogicEditor and have updated it
with the modifications to get Save As working properly found in CVS. I
am running on 2.1.2, so I couldn't do a wholesale copy and paste, but
did grab the relavent parts (performSaveAs, ResourceTracker, doSave,
setInput). I also have a PageBookView that displays other parts of the
model that can not be represented graphically. When I do a Save As...
it seems that the model is updated and changes that get made to the
editor are properly saved, however, changes made to the PageBookView are
not updated and it seems that the view has a handle to the stale model.
How should the view be notified that the old Page should be disposed and
a new page be created?
Thanks in advance,
Phil
|
|
|
Re: Save As and PageBookView [message #130865 is a reply to message #130786] |
Wed, 05 May 2004 17:48 |
Pratik Shah Messages: 1077 Registered: July 2009 |
Senior Member |
|
|
The logic example saves a reference to the outline page and updates the
contents of its viewer when the input is changed. You can do the same: save
a reference to the page and update its handle to the new model when
necessary.
"Phil Williams" <phil.williams@toadmail.com> wrote in message
news:c7b0au$d2u$1@eclipse.org...
> I am not sure if this is the proper place or not to post this question,
> but here goes.
>
> I have an editor that is based on the LogicEditor and have updated it
> with the modifications to get Save As working properly found in CVS. I
> am running on 2.1.2, so I couldn't do a wholesale copy and paste, but
> did grab the relavent parts (performSaveAs, ResourceTracker, doSave,
> setInput). I also have a PageBookView that displays other parts of the
> model that can not be represented graphically. When I do a Save As...
> it seems that the model is updated and changes that get made to the
> editor are properly saved, however, changes made to the PageBookView are
> not updated and it seems that the view has a handle to the stale model.
> How should the view be notified that the old Page should be disposed and
> a new page be created?
>
> Thanks in advance,
> Phil
|
|
|
Re: Save As and PageBookView [message #130880 is a reply to message #130865] |
Wed, 05 May 2004 16:50 |
Eclipse User |
|
|
|
Originally posted by: phil.williams.toadmail.com
This is a multi-part message in MIME format.
--------------080703000601030103060505
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Thanks. That is exactly what I ended up doing. I was just wondering if
I was missing some event that a part listener should hear or I was not
firing.
Phil
Pratik Shah wrote:
>The logic example saves a reference to the outline page and updates the
>contents of its viewer when the input is changed. You can do the same: save
>a reference to the page and update its handle to the new model when
>necessary.
>
>"Phil Williams" <phil.williams@toadmail.com> wrote in message
>news:c7b0au$d2u$1@eclipse.org...
>
>
>>I am not sure if this is the proper place or not to post this question,
>>but here goes.
>>
>>I have an editor that is based on the LogicEditor and have updated it
>>with the modifications to get Save As working properly found in CVS. I
>>am running on 2.1.2, so I couldn't do a wholesale copy and paste, but
>>did grab the relavent parts (performSaveAs, ResourceTracker, doSave,
>>setInput). I also have a PageBookView that displays other parts of the
>>model that can not be represented graphically. When I do a Save As...
>>it seems that the model is updated and changes that get made to the
>>editor are properly saved, however, changes made to the PageBookView are
>>not updated and it seems that the view has a handle to the stale model.
>>
>>
>
>
>
>>How should the view be notified that the old Page should be disposed and
>>a new page be created?
>>
>>Thanks in advance,
>>Phil
>>
>>
>
>
>
>
--------------080703000601030103060505
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body>
Thanks. That is exactly what I ended up doing. I was just wondering
if I was missing some event that a part listener should hear or I was
not firing.<br>
<br>
Phil<br>
<br>
<br>
Pratik Shah wrote:<br>
<blockquote cite="midc7b5gf$jva$1@eclipse.org" type="cite">
<pre wrap="">The logic example saves a reference to the outline page and updates the
contents of its viewer when the input is changed. You can do the same: save
a reference to the page and update its handle to the new model when
necessary.
"Phil Williams" <a class="moz-txt-link-rfc2396E" href="mailto:phil.williams@toadmail.com"><phil.williams@toadmail.com></a> wrote in message
<a class="moz-txt-link-freetext" href="news:c7b0au$d2u$1@eclipse.org">news:c7b0au$d2u$1@eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">I am not sure if this is the proper place or not to post this question,
but here goes.
I have an editor that is based on the LogicEditor and have updated it
with the modifications to get Save As working properly found in CVS. I
am running on 2.1.2, so I couldn't do a wholesale copy and paste, but
did grab the relavent parts (performSaveAs, ResourceTracker, doSave,
setInput). I also have a PageBookView that displays other parts of the
model that can not be represented graphically. When I do a Save As...
it seems that the model is updated and changes that get made to the
editor are properly saved, however, changes made to the PageBookView are
not updated and it seems that the view has a handle to the stale model.
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">How should the view be notified that the old Page should be disposed and
a new page be created?
Thanks in advance,
Phil
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>
--------------080703000601030103060505--
|
|
|
Powered by
FUDForum. Page generated in 0.02993 seconds