/**
   * Constructor for a TabbedPropertyComposite
   *
   * @param parent the parent widget.
   * @param factory the widget factory.
   * @param displayTitle if <code>true</code>, then the title bar will be displayed.
   */
  public TalendTabbedPropertyComposite(
      Composite parent,
      TabbedPropertySheetWidgetFactory factory,
      boolean displayTitle,
      boolean displayCompactToolbar) {
    super(parent, SWT.NO_FOCUS);
    this.factory = factory;
    this.displayTitle = displayTitle;
    this.displayCompactToolbar = displayCompactToolbar;

    createMainComposite();
    // CSS
    CoreUIPlugin.setCSSClass(this, this.getClass().getSimpleName());
  }
 /**
  * Constructor.
  *
  * @param parent
  * @param style
  */
 public ContextNebulaGridComposite(Composite parent, IContextModelManager manager) {
   super(parent, SWT.NONE);
   modelManager = manager;
   buttonList = new ArrayList<Button>();
   this.helper = new ContextManagerHelper(manager.getContextManager());
   this.setLayout(GridLayoutFactory.swtDefaults().spacing(0, 0).create());
   initializeUI();
   // for bug TDI-32674 to set different bgColor of ContextView and RepositoryContextComposite.
   if (modelManager instanceof ContextComposite
       && ((ContextComposite) modelManager).isRepositoryContext()) {
     this.setBackground(parent.getBackground());
   } else {
     // CSS
     CoreUIPlugin.setCSSClass(this, this.getClass().getSimpleName());
   }
 }