<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Brett Johnson &#187; troubleshooting</title>
	<atom:link href="http://mrscripter.com/tag/troubleshooting/feed" rel="self" type="application/rss+xml" />
	<link>http://mrscripter.com</link>
	<description>Technical writing and web development</description>
	<lastBuildDate>Sun, 22 Jan 2012 21:19:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Quick tips for troubleshooting plugins in an Eclipse help system</title>
		<link>http://mrscripter.com/2010/01/quick-tips-for-troubleshooting-plugins-in-an-eclipse-help-system/eclipse-help-system</link>
		<comments>http://mrscripter.com/2010/01/quick-tips-for-troubleshooting-plugins-in-an-eclipse-help-system/eclipse-help-system#comments</comments>
		<pubDate>Mon, 01 Feb 2010 02:32:18 +0000</pubDate>
		<dc:creator>brett</dc:creator>
				<category><![CDATA[eclipse-help-system]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugin.xml]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://mrscripter.com/?p=183</guid>
		<description><![CDATA[The Eclipse help system is an extremely valuable tool that seems to intimidate new users.   This post is intended to cover some of the very basics about how to troubleshoot your plugins in an Eclipse help system. Some basics first: &#8230; <a href="http://mrscripter.com/2010/01/quick-tips-for-troubleshooting-plugins-in-an-eclipse-help-system/eclipse-help-system">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fmrscripter.com%2F2010%2F01%2Fquick-tips-for-troubleshooting-plugins-in-an-eclipse-help-system%2Feclipse-help-system"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fmrscripter.com%2F2010%2F01%2Fquick-tips-for-troubleshooting-plugins-in-an-eclipse-help-system%2Feclipse-help-system&amp;source=mrscripter&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The Eclipse help system is an extremely valuable tool that seems to intimidate new users.   This post is intended to cover some of the very basics about how to troubleshoot your plugins in an Eclipse help system.<span id="more-183"></span></p>
<p>Some basics first:</p>
<ul>
<li>A plugin is a folder or JAR file that provides instructions to Eclipse for how to process.</li>
<li>Those instructions are given in the plugin.xml (extensions) and in the manifest file (prereqs, dependencies, etc).</li>
</ul>
<h2>Ensure the plugins are in the correct directory</h2>
<p>While that might sound obvious, I have seen forum posts where the distinction between the workspace and plugins directories were causing problems. The workspace can be considered the directory where your source projects are stored for editing. That location is not processed by the Eclipse framework. You need to ensure that you store your plugins in the eclipse/plugins folder and in the correct format.</p>
<p>After you&#8217;ve checked that your plugins are in the correct location, verify that the contain the necessary files.</p>
<h2>Plugins are formatted correctly and contain manifest/plugin.xml files</h2>
<p>Open up your eclipse/plugins/my.plugin.folderorjar and check to ensure the plugin.xml is in the root of that folder or archive. You might optionally also have a META-INF/manifest.mf file.</p>
<h2>Determine if Eclipse is picking up your plugin</h2>
<p>Launch your help system or infocenter. If you are launching the help (Help-&gt;Help contents), you will want to open it with an external browser rather than the built-in browser. You can either change your preferences or you can just copy a TOC link address and paste it into a different browser. The port that the webserver for the Eclipse help system changes with each restart so you&#8217;ll need to determine that:</p>
<p>Your help URL will probably look something like http://127.0.0.1:3578/help/&#8230;. Once you have that, change the URL to http://127.0.0.1:xxxx/help/topic/my.plugin.folderorjar/plugin.xml.</p>
<h3>If you get a topic not found or broken link</h3>
<p>Then Eclipse did not pick up your plugin, which means something is likely wrong with your plugin.xml or manifest.</p>
<p>This could be a malformed XML file due to an XML markup error in your plugin.xml. Check that all tags are closed (&lt;/myclosetag&gt;). Also, check for character encoding problems. XML is pretty strict when it comes to special characters and the most common problematic character is the ampersand (&amp;). The ampersand in XML or XHTML (especially in links) should be represented in the file as: <span style="font-family: courier new,courier;">&amp;amp;</span></p>
<p>Also, check that you are using the correct URL for your plugin. Eclipse uses the plugin ID in the path rather than the folder name or JAR file name.</p>
<h3>If your plugin.xml file displays correctly</h3>
<p>Then Eclipse found and registered your plugin. If this does not solve your problem, I am guessing you are wondering why your contents do not show up in the navigation. For your navigation file to be picked up, you have to register the TOC XML  file with the Eclipse org.eclipse.help.toc extension point in the plugin.xml.</p>
<p>If you want your toc to appear as a first level container, then you need to set primary=&#8221;true&#8221; for that TOC file:</p>
<p>&lt;extension point=&#8221;org.eclipse.help.toc&#8221;&gt;<br />
&lt;toc file=&#8221;toc.xml&#8221; primary=&#8221;true&#8221; /&gt;<br />
&lt;/extension&gt;</p>
<p>If you want this TOC file to be a child to another TOC, then you would set primary=&#8221;false&#8221; and link the maps together using a link_to (navref in Dita source) element or anchor/anchor_to (anchor &amp; anchorref in Dita source).</p>
<h2>You updated a plugin and the changes are not displayed</h2>
<p>This is likely due to caching that Eclipse performs. You can either start Eclipse with the -clean parameter passed to the executable or you can manually clean the cache.</p>
<p>To manually clean the cache: stop Eclipse, find your Eclipse installation directory. Within the configuration subfolder, delete all of the contents <strong>except </strong>for the config.ini file and the org.eclipse.update directory.</p>
<h2>Other issues?</h2>
<p>Post your Eclipse help issues  as a comment and I&#8217;ll try to address them here also.</p>
]]></content:encoded>
			<wfw:commentRss>http://mrscripter.com/2010/01/quick-tips-for-troubleshooting-plugins-in-an-eclipse-help-system/eclipse-help-system/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

