Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.CTabFolder


  private final CTabFolder tabFolder;
 
  public TabPanel(SplitDockPanel parent, int style) {
    super(parent, style);
    setLayout(new FillLayout());
    tabFolder = new CTabFolder(this, SWT.NONE);
    tabFolder.setBorderVisible(true);
  }
View Full Code Here


   
    if (item == null) {
      return null;
    }
   
    CTabFolder folder = item.getParent();
   
    if (folder == null) {
      return null;
    }
   
    ViewGroup vg = (ViewGroup )folder.getParent();
    return vg;
  }
View Full Code Here

   
    if (item == null) {
      return -1;
    }
   
    CTabFolder folder = item.getParent();
   
    if (folder == null) {
      return -1;
    }
   
    int index = folder.indexOf(item);
   
    if (vs.getPosition() == TAB_AFTER) {
      index++;
    }
   
View Full Code Here

  private final CTabFolder tabPanel;

  public ViewGroup(SplitDock parent, int style) {
    super(parent, style);
    setLayout(new FillLayout());
    tabPanel = new CTabFolder(this, style);
    tabPanel.setBorderVisible(true);
    bindActivationListeners();
  }
View Full Code Here

    }

    componentEditorTabs = componentEditorTabsList.toArray(new ComponentEditorTab[componentEditorTabsList.size()]);
    htmlWodTabs = htmlWodTabsList.toArray(new HtmlWodTab[htmlWodTabsList.size()]);
   
    CTabFolder tabFolder = (CTabFolder) this.getContainer();
    tabFolder.addSelectionListener(new SelectionListener() {

      public void widgetSelected(SelectionEvent e) {
        ComponentEditorPart.this.updateOutline();
      }
View Full Code Here

        initializeDragAndDrop(templateSourceEditor.getViewer());
      }
      _dragAndDropInitialized = true;
    }
   
    CTabFolder ctf = (CTabFolder)getContainer();
    ctf.setBorderVisible(false);
    if (getPageCount() <= 1) {
      ctf.setTabHeight(0);
    }
  }
View Full Code Here

    } catch (PartInitException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

    CTabFolder ctf = (CTabFolder)getContainer();
    ctf.setBorderVisible(false);
    ctf.setTabPosition(SWT.TOP);
    if (getPageCount() <= 1) {
      ctf.setTabHeight(0);
    }
  }
View Full Code Here

        addPage(new CreatePage(this, "Create"));
      }
    } catch (PartInitException e) {
      ApieditorPlugin.getDefault().debug(e);
    }
    CTabFolder ctf = (CTabFolder)getContainer();
      ctf.setTabPosition(SWT.TOP);
    ctf.setBorderVisible(false);
    if (getPageCount() <= 1) {
      ctf.setTabHeight(0);
    }
  }
View Full Code Here

    public void createPartControl(Composite parent) {
        GridLayout gridLayout = new GridLayout();
        gridLayout.numColumns = 1;
        parent.setLayout(gridLayout);

        tabFolder = new CTabFolder(parent, SWT.CLOSE);
        tabFolder.setBorderVisible(true);
        GridData gridData = new GridData();
        gridData.grabExcessVerticalSpace = true;
        gridData.grabExcessHorizontalSpace = true;
        gridData.horizontalAlignment = GridData.FILL;
View Full Code Here

  private void createTabFolder(Composite parent) {
    if (fTabFolder == null) {
      ColorRegistry reg = JFaceResources.getColorRegistry();
      Color c1 = reg.get("org.eclipse.ui.workbench.ACTIVE_TAB_BG_START"), //$NON-NLS-1$
          c2 = reg.get("org.eclipse.ui.workbench.ACTIVE_TAB_BG_END"); //$NON-NLS-1$
      fTabFolder = new CTabFolder(parent, SWT.NO_REDRAW_RESIZE | SWT.NO_TRIM | SWT.FLAT);
      GridData gd = new GridData(GridData.FILL_BOTH);
      gd.horizontalSpan = 2;
      fTabFolder.setSelectionBackground(new Color[] {c1, c2}new int[] {100}, true);
      fTabFolder.setSelectionForeground(reg.get("org.eclipse.ui.workbench.ACTIVE_TAB_TEXT_COLOR")); //$NON-NLS-1$
      fTabFolder.setSimple(PlatformUI.getPreferenceStore().getBoolean(IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS));
View Full Code Here

TOP

Related Classes of org.eclipse.swt.custom.CTabFolder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.