title: Eclipse e4 Extending a Perspective
body: <p>I am starting a new eclipse plug-in project and trying to evaluate what is the best approach.</p>
  
  <p>What is the goal: I want to create a plug-in that adds a View/Editor stacked on the Editor of the C/C++ perspective from the CDT plug-in. Similar to XML editors that have highlighted text editor view and a view that contains a form to be filled and automatically creates xml code.</p>
  
  <p>The best way would probably be to extend the existing C/C++ perspective from the CDT plug-in. How this is done wtih the 3.X API is explained here<a href="http://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fworkbench_advext_perspectiveExtension.htm" rel="nofollow"> [1</a>,<a href="http://udig.refractions.net/files/docs/latest/1.3.2-SNAPSHOT/developer/extending_an_existing_perspective_example.html" rel="nofollow">2]</a>. Basically you use the <code>org.eclipse.ui.perspectiveExtensions</code> extension point to add views realtive to the views in the perspective. </p>
  
  <p>But how can this be done with the e4 API and the model fragment? Is this possible with compatibility layer?</p>
  
  <p>I think another possibility would be to add views contained in the C/C++ perspective through the combability layer to my own perspective like the package explorer. This has the adavantage that already existing 3.X views (like the package explorer) can be used but also have the advantages of the e4 API.</p>
  
  <p>Or would it even be the best to create a pure 3.X plug-in because my plug-in is mainly based on another perspective/plug-in?</p>
  
  <p>Hope somebody can help me here :)</p>