Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.TabFolder


    public Control createDialogArea(Composite parent) {
        GridLayout layout = new GridLayout();
        parent.setLayout(layout);
        layout.numColumns = 1;
        tabFolder = new TabFolder(parent, SWT.NONE);
        GridData gd = new GridData();
        gd.grabExcessHorizontalSpace = true;
        gd.grabExcessVerticalSpace = true;
        gd.verticalAlignment = GridData.FILL;
        gd.horizontalAlignment = GridData.FILL;
View Full Code Here


    public Control createDialogArea(Composite parent) {
        GridLayout layout = new GridLayout();
        parent.setLayout(layout);
        layout.numColumns = 1;
        tabFolder = new TabFolder(parent, SWT.NONE);
        GridData gd = new GridData();
        gd.grabExcessHorizontalSpace = true;
        gd.grabExcessVerticalSpace = true;
        gd.verticalAlignment = GridData.FILL;
        gd.horizontalAlignment = GridData.FILL;
View Full Code Here

    public void addTab(String text)
    {
        if (folder == null)
        {
            // initialize tab folder
            folder = new TabFolder(super.getFieldEditorParent(), SWT.NONE);
            folder.setLayoutData(new GridData(GridData.FILL_BOTH));
        }

        TabItem item = new TabItem(folder, SWT.NONE);
        item.setText(text);
View Full Code Here

    gridData.horizontalIndent = 20;

        Font textFont = JFaceResources.getFontRegistry().get(
            getFontPropertyPreferenceKey());
       
        tabFolder = new TabFolder(parent, SWT.BORDER);
        // Inititalize SourceViewers
        for(int i = 0; i < sourceViewers.length; i++) {
            sourceViewers[i] = new SourceViewer(tabFolder, null, SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL);
            sourceViewers[i].setEditable(false);
            sourceViewers[i].getTextWidget().setFont(textFont);
View Full Code Here

  }

  public void createControl(Composite parent) {
    Composite c = new Composite(parent, SWT.NONE);
    c.setLayout(new FillLayout());
    folder = new TabFolder(c, SWT.TOP);
    simpleItem = new TabItem(folder, SWT.NONE);
    simpleItem.setText(Messages.DefaultConnectionWizardPage_Simple);
    simpleItem.setControl(createSimpleConnectionPage(folder));

    advancedItem = new TabItem(folder, SWT.NONE);
View Full Code Here

  @Override protected void doCreateContents(Composite parent) {
    btnCompileProtoFiles = new Button(parent, SWT.CHECK);
    btnCompileProtoFiles.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 2, 1));
    btnCompileProtoFiles.setText(compileOnSave);

    tabFolder = new TabFolder(parent, SWT.NONE);
    tabFolder.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));

    tbtmMain = new TabItem(tabFolder, SWT.NONE);
    tbtmMain.setText(tabMain);
View Full Code Here

    l
        .setText("Check the resource files and values below to select which strings will be sent for translation");

    createFileListTable(composite);

    TabFolder tabFolder = new TabFolder(composite, SWT.NONE);
    TabItem tabTranslateStringsItem = new TabItem(tabFolder, SWT.NULL);
    tabTranslateStringsItem.setText("Translate Strings");

    TabItem tabIgnoreStringsItem = new TabItem(tabFolder, SWT.NULL);
    tabIgnoreStringsItem.setText("Ignore Strings");

    Group translateGroup = createStringListTable(tabFolder,
        AndrolateApplication.STRINGLIST_TABLE_MODE_TRANSLATE);
    tabTranslateStringsItem.setControl(translateGroup);

    Group ignoreGroup = createStringListTable(tabFolder,
        AndrolateApplication.STRINGLIST_TABLE_MODE_IGNORE);
    tabIgnoreStringsItem.setControl(ignoreGroup);

    tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH));
    ((GridData) tabFolder.getLayoutData()).horizontalSpan = 2;

    setControl(composite);

    loadResources();
  }
View Full Code Here

        sShell.setText("Transition Test 1");
        sShell.setSize(new Point(800, 600));
        sShell.setLocation(0, 0);
        sShell.setLayout(new FillLayout());
       
        TabFolder tf = new TabFolder(sShell, SWT.NONE);
       
        TabItem tbi1 = new TabItem(tf, SWT.NONE);
        tbi1.setText("Tab Item 1");
        tbi1.setControl(getComp1(tf));
       
View Full Code Here

    private void addTabs(Composite parent) {
        GridData data = new GridData(GridData.FILL_BOTH);
        data.heightHint = TAB_HEIGHT_HINT;
        data.widthHint = WIDTH_HINT;

        TabFolder folder = new TabFolder(parent, SWT.NONE);
        folder.setLayoutData(data);

        TabItem item = new TabItem(folder, SWT.NULL);
        item.setText(DEVICE_LIST_LABEL);
        DeviceSelectionList deviceSelectionList =
                new DeviceSelectionList(folder, SWT.NONE, project);
View Full Code Here

            columnSectionDetails = initializeAttributeList(
                    "format-column-attributes-view.xml"); //$NON-NLS-1$
        }
        viewer = new Composite(parent, SWT.NONE);

        tabFolder = new TabFolder(viewer, SWT.NONE);
        tabFolder.setLayout(new GridLayout(1, true));
        tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH));

        IProject project = odomEditorContext.getPolicyResource().getProject();
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.TabFolder

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.