private void createTabs() {
   for (int i = 0; i < TAB_LABELS.length; i++) {
     CTabItem item = new CTabItem(fTabFolder, SWT.NULL);
     item.setText(TAB_LABELS[i]);
     item.setImage(
         PDEPlugin.getDefault().getLabelProvider().get(PDEPluginImages.DESC_OPERATING_SYSTEM_OBJ));
   }
   fLastTab = 0;
   fTabFolder.setSelection(fLastTab);
 }
  // TabViews Functions
  public void addTabView(UISWTViewCore view) {
    if (view == null || tabFolder == null) {
      return;
    }

    triggerTabViewDataSourceChanged(view);

    CTabItem item = new CTabItem(tabFolder, SWT.NULL);
    item.setData("IView", view);
    Messages.setLanguageText(item, view.getTitleID());
    view.initialize(tabFolder);
    item.setControl(view.getComposite());
    tabViews.add(view);
  }
  public UISWTViewCore getActiveSubView() {
    if (!tv.isTabViewsEnabled()
        || tabFolder == null
        || tabFolder.isDisposed()
        || tabFolder.getMinimized()) {
      return null;
    }

    CTabItem item = tabFolder.getSelection();
    if (item != null) {
      return (UISWTViewCore) item.getData("IView");
    }

    return null;
  }
 public void createContents() {
   if (!contentCreated) {
     Control sashForm = createSashForm();
     item.setControl(sashForm);
     initColors();
     createExampleControls(exmplComp);
     createStyleControls(styleComp);
     exmplComp.layout();
     styleComp.layout();
     contentCreated = true;
   }
 }
 public ExampleTab(final CTabFolder parent, final String title) {
   folder = parent;
   controls = new ArrayList();
   item = new CTabItem(folder, SWT.NONE);
   item.setText(title + " ");
 }