Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Save As and PageBookView
Save As and PageBookView [message #130786] Wed, 05 May 2004 15:20 Go to next message
Eclipse UserFriend
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 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
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 Go to previous message
Eclipse UserFriend
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.&nbsp; That is exactly what I ended up doing.&nbsp; 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">&lt;phil.williams@toadmail.com&gt;</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--
Previous Topic:Gray polyline connections
Next Topic:Creating an Image
Goto Forum:
  


Current Time: Fri Apr 26 06:38:58 GMT 2024

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

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

Back to the top