title: Dynamically creating a part when clicking the last part(Tab) in eclipse e4
body: <p>I have created 2 parts in partstack. All parts uses same contribution uri. I need a 3rd part say "Add new part" (or tab) when clicked on, it has to create a new part dynamically and get arranged after the first 2 parts and then again the part "Add New Part" has to come at the end. So whenever "add New Part" is clicked it has to create new part.
  The following code is added for the "Add New Part" part.</p>
  
  <pre><code>MPart part = partService.createPart("com.abc.xyz.project.partDescriptor.DynamicPart");
  MPartStack stack = (MPartStack)modelService.find("com.abc.xyz.project.partstack.2", application);
       stack.getChildren().add(part);
              part.setLabel("New Dynamic Part");
      part.setVisible(true);
      part.setCloseable(true);
      partService.showPart(part, PartState.ACTIVATE);
  </code></pre>
  
  <p>Can any one please suggest me some ideas ?</p>
  
  <p>Thanks in advance</p>