<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-1557780184357927241.post8412958758749086055..comments</id><updated>2009-09-29T09:31:57.695+05:30</updated><title type='text'>Comments on Eclipse Tips: Remember the State</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.eclipse-tips.com/feeds/8412958758749086055/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/8412958758749086055/comments/default'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/08/remember-state.html'/><author><name>Prakash G.R.</name><uri>http://www.blogger.com/profile/13046268367318873066</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-6648638256648290353</id><published>2009-09-29T02:15:16.457+05:30</published><updated>2009-09-29T02:15:16.457+05:30</updated><title type='text'>saveState(IMemento) is about saving view state acr...</title><content type='html'>saveState(IMemento) is about saving view state across sessions. The user shuts down eclipse, and the user expects to see his views when he restarts eclipse. The workbench uses saveState(*)/restoreState(*) for that.&lt;br /&gt;&lt;br /&gt;When a user closes a view, he deliberatly closed it. It&amp;#39;s gone. When the user shows the view again, it comes up in it&amp;#39;s default state.&lt;br /&gt;&lt;br /&gt;You have 2 options. Option 1 is to implement ISaveablePart, and when the view is closed it will get its methods like isDirty() and doSave(*) called. Of course if you mark your view as dirty, a little &amp;#39;*&amp;#39; appears in the tab title in 3.2.&lt;br /&gt;&lt;br /&gt;Option 2 is to use DialogSettings to persist view information.&lt;br /&gt;&lt;br /&gt;Save your view information in the plugin state location.&lt;br /&gt;&lt;br /&gt;You want to create your DialogSettings object, fill it with information, and then save it ... there&amp;#39;s a #save(Writer) method.&lt;br /&gt;&lt;br /&gt;You can persist the DialogSettings file in your plugin state location ... start from Plugin#getStateLocation().</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/8412958758749086055/comments/default/6648638256648290353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/8412958758749086055/comments/default/6648638256648290353'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/08/remember-state.html?showComment=1254170716457#c6648638256648290353' title=''/><author><name>Alfredo</name><uri>http://www.blogger.com/profile/13892851633373070096</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2009/08/remember-state.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-8412958758749086055' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/8412958758749086055' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-1248242742064430866</id><published>2009-08-10T12:53:10.267+05:30</published><updated>2009-08-10T12:53:10.267+05:30</updated><title type='text'>Maybe important to note, that the IMemento approac...</title><content type='html'>Maybe important to note, that the IMemento approach cannot be used to save state during the session. So when you open and close your view, its save method is not called. Maybe a custom part listener could add this behaviour.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/8412958758749086055/comments/default/1248242742064430866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/8412958758749086055/comments/default/1248242742064430866'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/08/remember-state.html?showComment=1249888990267#c1248242742064430866' title=''/><author><name>Philipp Kursawe</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2009/08/remember-state.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-8412958758749086055' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/8412958758749086055' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-6703669625019613477</id><published>2009-08-07T17:50:21.390+05:30</published><updated>2009-08-07T17:50:21.390+05:30</updated><title type='text'>@Anonymous,
     In the Dependencies tab of your M...</title><content type='html'>@Anonymous,&lt;br /&gt;     In the Dependencies tab of your Manifest editor, use the Dependency Analysis-&amp;gt;Find unused dependencies and remove them. HTH.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/8412958758749086055/comments/default/6703669625019613477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/8412958758749086055/comments/default/6703669625019613477'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/08/remember-state.html?showComment=1249647621390#c6703669625019613477' title=''/><author><name>Prakash G.R.</name><uri>http://www.blogger.com/profile/13046268367318873066</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08225524632456251201'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2009/08/remember-state.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-8412958758749086055' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/8412958758749086055' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-371974500690386549</id><published>2009-08-07T17:03:11.890+05:30</published><updated>2009-08-07T17:03:11.890+05:30</updated><title type='text'>Thanks for this tip , I was making a choice betwee...</title><content type='html'>Thanks for this tip , I was making a choice between extending IDE or creating own RCP . It is good to know that with RCP also its just one line to enable saving of current perspective . I like to know is there any easy way through which I can identify the plugin required for my RCP project. Right now I am bundling entire Platform binaries just to avoid build erroes</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/8412958758749086055/comments/default/371974500690386549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/8412958758749086055/comments/default/371974500690386549'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/08/remember-state.html?showComment=1249644791890#c371974500690386549' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2009/08/remember-state.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-8412958758749086055' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/8412958758749086055' type='text/html'/></entry></feed>