title: Add dynamic tabs in tabbed property view of eclipse
body: <p>I am trying to create a tabbed property view as per given article : <a href="http://www.eclipse.org/articles/Article-Tabbed-Properties/tabbed_properties_view.html" rel="nofollow">The Eclipse Tabbed Properties View</a></p>
  
  <p>As per article, <code>org.eclipse.ui.views.properties.tabbed.propertyTabs</code> extension point can be used to add new tabs. </p>
  
  <pre><code>&lt;extension point="org.eclipse.ui.views.properties.tabbed.propertyTabs"&gt;
        &lt;propertyTabs contributorId="mview.views.SampleView"&gt;
           &lt;propertyTab
              category="sample"
                 id="mview.ButtonTab"
              label="Button"/&gt;
           &lt;propertyTab
              afterTab="mview.ButtonTab"
              category="sample"
                 id="mview.AdvancedTab"
              label="Advanced"/&gt;
        &lt;/propertyTabs&gt;
     &lt;/extension&gt;
  </code></pre>
  
  <p>However in my case the tabs of property view vary depending on the item selected in view. So I have to add the tabs dynamically into extension depening on the item selected. </p>
  
  <p>Please suggest how to do so.</p>
  
  <p>Update:
  One of the way to do so (I am not sure if its adviced) is using IExtensionRegistry.addContribution() method. Here I provided an inputstream object containing desired extension details. This added tabs to property view at run time. However with change in selection of item in list viewer, the property view is not updated. Please suggest if this is the right approach to do so.</p>