title: Adding a custom renderer to different parts
body: <p>I would like some parts to use a different renderer. In some cases I would like to remove the <code>Detach</code> option when right clicking and this is a solution according to a comment on my question <a href="https://stackoverflow.com/questions/53205912/stop-parts-from-being-detachable">here</a>.</p>
  
  <p>I've been following <a href="http://www.vogella.com/tutorials/Eclipse4Renderer/article.html" rel="nofollow noreferrer">this</a> tutorial as to how this can be done.    </p>
  
  <p>I've created two classes. <code>UndetachableStackRenderer</code> and <code>UndetachableStackRendererFactory</code>. </p>
  
  <p>If I add <code>UndetachableStackRendererFactory</code> to the <code>plugin.xml</code> it successfully removes the option to detach from <strong>ALL</strong> part stacks.      </p>
  
  <pre><code>&lt;property
      name="rendererFactoryUri"
      value="bundleclass://com.example.loc/com.example.loc.UndetachableStackRendererFactory"&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>I would instead like to change the renderer for one part stack. According to the tutorial I can add <code>CUSTOM_RENDERER_URI</code> to the <code>Persisted State</code> of the part stack. </p>
  
  <p>Key:</p>
  
  <pre><code>CUSTOM_RENDERER_URI
  </code></pre>
  
  <p>Value:</p>
  
  <p><code>bundleclass://com.example.loc/com.example.loc.UndetachableStackRenderer</code></p>
  
  <p>I've tried this and it does nothing. If I enter an incorrect location it doesn't come up with any errors either so it seems as though <code>CUSTOM_RENDERER_URI</code> isn't being seen.      </p>
  
  <p>What could be the cause of this?     </p>