/**
   * Creates the content.
   *
   * @param parent the parent
   * @param factory the factory
   * @return the composite
   */
  @Override
  public Composite createContent(Composite parent, TabbedPropertySheetWidgetFactory factory) {
    super.createContent(parent, factory);

    // Replace label and content providers in treeViewers
    treeViewer.setContentProvider(new ProfileElementWithDisplayContentProvider(diagramElement));
    treeViewer.setLabelProvider(new ProfileElementWithDisplayLabelProvider());

    refresh();
    return this;
  }