<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://dotneteers.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>LearnVSXNow! #17 - Creating a simple custom editor — under pressure</title><link>http://dotneteers.net/blogs/divedeeper/archive/2008/03/17/LearnVSXNowPart17.aspx</link><description>If you are a new reader of the LearnVSXNow! series, you are just in the middle of a three-part topic about custom editors. This part itself will not give you valuable information without reading Part #15 and #16, so, please, first look at them... As I</description><dc:language>en</dc:language><generator>CommunityServer 2008 (Build: 30417.1769)</generator><item><title>re: LearnVSXNow! #17 - Creating a simple custom editor — under pressure</title><link>http://dotneteers.net/blogs/divedeeper/archive/2008/03/17/LearnVSXNowPart17.aspx#945</link><pubDate>Mon, 29 Jun 2009 06:32:55 GMT</pubDate><guid isPermaLink="false">74e06254-0e07-4c08-8611-9f55b924f030:945</guid><dc:creator>inovak</dc:creator><description>&lt;p&gt;Hey GA30,&lt;/p&gt;
&lt;p&gt;What you have found is rather a bug (or feature &amp;nbsp;:-) than intention. Thanks for finding it. If you would try to modify the VSXtra source and correct this bug and check it, I would be very happy. If you have the modifications done, you can upload them to CodePlex as a patch.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://dotneteers.net/aggbug.aspx?PostID=945" width="1" height="1"&gt;</description></item><item><title>re: LearnVSXNow! #17 - Creating a simple custom editor — under pressure</title><link>http://dotneteers.net/blogs/divedeeper/archive/2008/03/17/LearnVSXNowPart17.aspx#943</link><pubDate>Sun, 28 Jun 2009 21:56:50 GMT</pubDate><guid isPermaLink="false">74e06254-0e07-4c08-8611-9f55b924f030:943</guid><dc:creator>GA30</dc:creator><description>&lt;p&gt;Inovak,&lt;/p&gt;
&lt;p&gt;I am using VSExtra as the framework for a custom editor I am working on. I have a question for you regarding EditorPaneBase. In here you are storing the path to the editor file in the _FileName field. But I see this field is not being updated in IVsPersistDocData.RenameDocData when the file is renamed. So when I save the file after having renamed it the save is saved to its old file name. I changed this method and am now updating the _FileName field to the new file name resulting from the rename operation. Is there a reason you are not updating this field? &lt;/p&gt;
&lt;p&gt;Thank you for your knowledge (and publishing of it) in the VSX area! I&amp;#39;m new to VSX and I&amp;#39;ve gotta say it&amp;#39;s probably the more challending type of development I&amp;#39;ve faced recently more so because of the lack of documentation in this area relative to other areas.&lt;/p&gt;
&lt;p&gt;// --------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;/// &amp;lt;summary&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;/// Renames the document data.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;/// &amp;lt;/summary&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;/// &amp;lt;param name=&amp;quot;grfAttribs&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;/// File attribute of the document data to be renamed. See the data type &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;/// __VSRDTATTRIB.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;/// &amp;lt;/param&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;/// &amp;lt;param name=&amp;quot;pHierNew&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;/// Pointer to the IVsHierarchy interface of the document being renamed.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;/// &amp;lt;/param&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;/// &amp;lt;param name=&amp;quot;itemidNew&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;/// Item identifier of the document being renamed. See the data type VSITEMID.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;/// &amp;lt;/param&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;/// &amp;lt;param name=&amp;quot;pszMkDocumentNew&amp;quot;&amp;gt;Path to the document being renamed.&amp;lt;/param&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;/// &amp;lt;returns&amp;gt;S_OK if the method succeeds.&amp;lt;/returns&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;// --------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;int IVsPersistDocData.RenameDocData(uint grfAttribs, IVsHierarchy pHierNew,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;uint itemidNew, string pszMkDocumentNew)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;return VSConstants.S_OK;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://dotneteers.net/aggbug.aspx?PostID=943" width="1" height="1"&gt;</description></item></channel></rss>