Java 类org.eclipse.swt.widgets.TabFolder 实例源码

项目:developer-studio    文件:UpdaterDialog.java   
private void createFeatureListTab(TabFolder tabFolder, ActiveTab type) {
    TabItem tabItem = new TabItem(tabFolder, SWT.NULL);
    if (type == ActiveTab.ALL_FEATURES) {
        tabItem.setText(ALL_FEATURES_TAB_TITLE);
    } else {
        tabItem.setText(UPDATES_TAB_TITLE);
    }
    ScrolledComposite scroll = new ScrolledComposite(tabFolder, SWT.V_SCROLL | SWT.H_SCROLL);
    scroll.setLayout(new GridLayout());
    scroll.setLayoutData(new GridData());

    Group group = new Group(scroll, SWT.NONE);
    group.setLayout(new GridLayout());
    group.setLayoutData(new GridData());
    listFeatures(group, type);
    scroll.setContent(group);
    scroll.setExpandHorizontal(true);
    scroll.setExpandVertical(true);
    scroll.setMinSize(group.computeSize(SWT.DEFAULT, SWT.DEFAULT));
    tabItem.setControl(scroll);
}
项目:neoscada    文件:EventHistorySearchDialog.java   
private void selectInitialFilterPage ( final TabFolder tabFolder )
{
    if ( this.initialFilter == null )
    {
        return;
    }

    switch ( this.initialFilter.first )
    {
        case SIMPLE:
            tabFolder.setSelection ( 0 );
            break;
        case FREEFORM:
            tabFolder.setSelection ( 1 );
            break;
        case ADVANCED:
            break;
    }
}
项目:convertigo-eclipse    文件:ConnectorEditorPart.java   
/**
 * This method initializes tabFolder
 * 
 */
private void createTabFolderOutputDesign() {
    GridData gridData2 = new org.eclipse.swt.layout.GridData();
    gridData2.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
    gridData2.grabExcessVerticalSpace = true;
    gridData2.grabExcessHorizontalSpace = true;
    gridData2.verticalAlignment = org.eclipse.swt.layout.GridData.FILL;
    tabFolderOutputDesign = new TabFolder(this, SWT.BOTTOM);
    tabFolderOutputDesign.setLayoutData(gridData2);
    createCompositeDesign();
    createCompositeOutput();
    tabItemOutput = new TabItem(tabFolderOutputDesign, SWT.NONE);
    tabItemOutput.setText("Output");
    tabItemOutput.setControl(compositeOutput);
    tabItemDesign = new TabItem(tabFolderOutputDesign, SWT.NONE);
    tabItemDesign.setText("Design");
    tabItemDesign.setControl(compositeDesign);
    if (connector instanceof HtmlConnector)
        selectTabDesign();
}
项目:bdf2    文件:TableModifyWizardPage.java   
@Override
public void createControl(Composite parent) {
    final TabFolder tabFolder = new TabFolder(parent, SWT.NULL);
    String[] tabIndex = new String[] { "基本属性", "备注", "其他" };
    for (int i = 0; i < tabIndex.length - 1; i++) {
        TabItem tabItem = new TabItem(tabFolder, SWT.NULL);
        tabItem.setText(tabIndex[i]);
        Composite composite = new Composite(tabFolder, SWT.NULL);
        if (i == 0) {
            createBasicControl(composite);
        } else if (i == 1) {
            createCommentControl(composite);
        }
        tabItem.setControl(composite);
    }
    setControl(parent);
}
项目:team-explorer-everywhere    文件:BuildPolicyDialog.java   
@Override
protected void hookAddToDialogArea(final Composite dialogArea) {
    SWTUtil.gridLayout(dialogArea);

    final TabFolder folder = new TabFolder(dialogArea, SWT.TOP);
    GridDataBuilder.newInstance().fill().grab().applyTo(folder);

    generalTabItem = new TabItem(folder, SWT.NONE);
    generalTabItem.setText(Messages.getString("BuildPolicyDialog.GeneralTabItemText")); //$NON-NLS-1$
    final GeneralTabControl generalTabControl = new GeneralTabControl(folder, SWT.NONE, configuration);
    generalTabItem.setControl(generalTabControl);

    markersTabItem = new TabItem(folder, SWT.NONE);
    markersTabItem.setText(Messages.getString("BuildPolicyDialog.MarkersTabItemText")); //$NON-NLS-1$
    final MarkerTabControl markerTabControl = new MarkerTabControl(folder, SWT.NONE, configuration);
    markersTabItem.setControl(markerTabControl);
}
项目:ermasterr    文件:AbstractTabbedDialog.java   
protected void createTabFolder(final Composite parent) {
    final GridData gridData = new GridData();
    gridData.grabExcessHorizontalSpace = true;
    gridData.grabExcessVerticalSpace = true;
    gridData.verticalAlignment = GridData.FILL;
    gridData.horizontalAlignment = GridData.FILL;

    tabFolder = new TabFolder(parent, SWT.NONE);
    tabFolder.setLayoutData(gridData);

    tabWrapperList = createTabWrapperList(tabFolder);

    for (final ValidatableTabWrapper tab : tabWrapperList) {
        tab.init();
    }

    ListenerAppender.addTabListener(tabFolder, tabWrapperList);

    tabWrapperList.get(0).setInitFocus();
}
项目:ermasterr    文件:SearchDialog.java   
private void initialize(final Composite parent) {
    keywordCombo = CompositeFactory.createCombo(null, parent, "label.search.keyword", 1);

    replaceCombo = CompositeFactory.createCombo(null, parent, "label.search.replace.word", 1);

    final GridData gridData = new GridData();
    gridData.horizontalAlignment = GridData.FILL;
    gridData.horizontalSpan = 2;
    gridData.grabExcessHorizontalSpace = true;

    tabFolder = new TabFolder(parent, SWT.NONE);
    tabFolder.setLayoutData(gridData);

    createRegionGroup(tabFolder);
    createResultGroup(tabFolder);

    selectAllCheckBox(true);
}
项目:ermaster-k    文件:AbstractTabbedDialog.java   
protected void createTabFolder(Composite parent) {
    GridData gridData = new GridData();
    gridData.grabExcessHorizontalSpace = true;
    gridData.grabExcessVerticalSpace = true;
    gridData.verticalAlignment = GridData.FILL;
    gridData.horizontalAlignment = GridData.FILL;

    this.tabFolder = new TabFolder(parent, SWT.NONE);
    this.tabFolder.setLayoutData(gridData);

    this.tabWrapperList = this.createTabWrapperList(this.tabFolder);

    for (ValidatableTabWrapper tab : this.tabWrapperList) {
        tab.init();
    }

    ListenerAppender.addTabListener(tabFolder, tabWrapperList);

    this.tabWrapperList.get(0).setInitFocus();
}
项目:ermaster-k    文件:SearchDialog.java   
private void initialize(Composite parent) {
    this.keywordCombo = CompositeFactory.createCombo(null, parent,
            "label.search.keyword", 1);

    this.replaceCombo = CompositeFactory.createCombo(null, parent,
            "label.search.replace.word", 1);

    GridData gridData = new GridData();
    gridData.horizontalAlignment = GridData.FILL;
    gridData.horizontalSpan = 2;
    gridData.grabExcessHorizontalSpace = true;

    this.tabFolder = new TabFolder(parent, SWT.NONE);
    this.tabFolder.setLayoutData(gridData);

    createRegionGroup(this.tabFolder);
    createResultGroup(this.tabFolder);

    this.selectAllCheckBox(true);
}
项目:ermaster-k    文件:AbstractRealColumnDialog.java   
@Override
protected Composite createRootComposite(Composite parent) {
    this.tabFolder = new TabFolder(parent, SWT.NONE);

    this.tabItem = new TabItem(this.tabFolder, SWT.NONE);
    this.tabItem.setText(ResourceString.getResourceString("label.basic"));

    Composite composite = CompositeFactory.createComposite(this.tabFolder,
            this.getCompositeNumColumns(), true);
    this.tabItem.setControl(composite);

    this.tabItem = new TabItem(this.tabFolder, SWT.NONE);
    this.tabItem.setText(ResourceString.getResourceString("label.detail"));

    Composite detailComposite = CompositeFactory.createComposite(
            this.tabFolder, 2, true);
    this.initializeDetailTab(detailComposite);
    this.tabItem.setControl(detailComposite);

    return composite;
}
项目:ether    文件:TabPanel.java   
public TabItem createTabPanel(TabFolder folder) {
    this.folder = folder;
    tabIdx   = folder.getItemCount();

    Composite panel = new Composite(folder, SWT.NONE);

    GridLayout layout = new GridLayout(1, true);
    layout.marginWidth  = 0;
    layout.marginHeight = 0;
    panel.setLayout(layout);
    panel.setLayoutData(GridDataFactory.fill(true, true));

    fillContent(panel);

    TabItem result = new TabItem(folder, SWT.NONE);
    result.setControl(panel);
    result.setText(label);
    return result;
}
项目:cft    文件:CloudFoundryCredentialsPart.java   
public Control createPart(Composite parent) {

        Composite composite = new Composite(parent, SWT.NONE);
        composite.setLayout(new GridLayout());
        composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

        folder = new TabFolder(composite, SWT.NONE);
        folder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
        folder.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                updateUI(false);
            }
        });

        try {
            createExistingUserComposite(folder);
            updateUI(false);
        }
        catch (Throwable e1) {
            CloudFoundryPlugin.logError(e1);
        }

        return composite;

    }
项目:bts    文件:BTSConfigurationDialog.java   
private void loadSelectConfigReferencedObjectsTabItem(TabFolder tabfolder,
            TabItem referencedtabItem, BTSConfigItem configItem) {
        Composite referencedEditComp = (Composite) referencedtabItem
                .getControl();
        referencedTypeSelector = new ObjectTypeSelectionTreeComposite(
                configurationController, referencedEditComp, SWT.NONE);
        if (configItem.getPassportEditorConfig() == null) {

        } 
        //FIXME update
//      else {
//          if (configItem.getPassportEditorConfig().getReferencedTypesPath() == null) {
//              configItem.getPassportEditorConfig()
//                      .setReferencedTypesPath(
//                              BtsmodelFactory.eINSTANCE
//                                      .createBTSObjectTypePathRoot());
//          }
//          referencedTypeSelector.setPathInput(configItem
//                  .getPassportEditorConfig().getReferencedTypesPath(),
//                  getEditingDomain(configItem), configurationController
//                          .getActiveConfiguration());
//      }

    }
项目:dockerfoundry    文件:DockerFoundryCredentialsPart.java   
public Control createPart(Composite parent) {

        Composite composite = new Composite(parent, SWT.NONE);
        composite.setLayout(new GridLayout());
        composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

        folder = new TabFolder(composite, SWT.NONE);
        folder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
        folder.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                updateUI(false);
            }
        });

        try {
            createExistingUserComposite(folder);
            updateUI(false);
        }
        catch (Throwable e1) {
            DockerFoundryPlugin.logError(e1);
        }

        return composite;

    }
项目:mipa    文件:LatticeTabUI.java   
private LatticeTabUI(TabFolder tabFolderMIPA) 
{
    TabItem tabItemLattice = new TabItem(tabFolderMIPA, SWT.NONE);
    tabItemLattice.setToolTipText("representation of lattice");
    tabItemLattice.setText("Lattice");

    SashForm sashLattice = new SashForm(tabFolderMIPA, SWT.NONE);
    tabItemLattice.setControl(sashLattice);

    StyledText styledTextLattice = new StyledText(sashLattice, SWT.BORDER
            | SWT.READ_ONLY);
    styledTextLattice.setText("Information for lattice are given here \n.");
    styledTextLattice.setToolTipText("Information for lattice.");

    Group grpLatticeTree = new Group(sashLattice, SWT.NONE);
    grpLatticeTree.setToolTipText("tree view of lattice");
    grpLatticeTree.setText("Lattice Tree View");

    latticeTreeViewer = new TreeViewer(grpLatticeTree, SWT.BORDER);
    Tree latticeTree = latticeTreeViewer.getTree();
    latticeTree.setBounds(10, 29, 444, 526);
    //latticeTreeViewer.setLabelProvider(new LatticeTreeLabelProvider());
    //latticeTreeViewer.setContentProvider(new LatticeTreeContentProvider());
    sashLattice.setWeights(new int[] { 1, 1 });
}
项目:datahierarchy    文件:DataHierarchyPreferencePage.java   
@Override
protected Control createContents(Composite parent) {
    TabFolder tabFolder = new TabFolder(parent, SWT.TOP);
    tabFolder.setLayout(new GridLayout(1, true));
    tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH));

    TabItem tabFilter = new TabItem(tabFolder, SWT.NONE);
    tabFilter.setText("Filters");

    Group defPanel = new Group(tabFolder, SWT.NONE);
    defPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    defPanel.setLayout(new GridLayout(1, false));
    defPanel.setText("Search Filters");

    tabFilter.setControl(defPanel);

    TabItem support = new TabItem(tabFolder, SWT.NONE);
    support.setText("Misc...");
    Composite supportPanel = createContainer(tabFolder);
    support.setControl(supportPanel);
    SupportPanel.createSupportLinks(supportPanel);

    return super.createContents(defPanel);
}
项目:org.csstudio.display.builder    文件:DataBrowserPropertySheetPage.java   
/** {@inheritDoc} */
@Override
public void createControl(final Composite parent)
{
    control = new Composite(parent, 0);
    control.setLayout(new FillLayout());

    // Tabs: Traces, Time Axis, ...
    final TabFolder tab_folder = new TabFolder(control, SWT.TOP);
    createTracesTab(tab_folder);
    createTimeAxisTab(tab_folder);
    createValueAxesTab(tab_folder);
    createMiscTab(tab_folder);

    model.addListener(model_listener);
}
项目:SPELL    文件:PropertiesDialog.java   
/***************************************************************************
 * Create the dialog area contents.
 * 
 * @param parent
 *            The base composite of the dialog
 * @return The resulting contents
 **************************************************************************/
@Override
protected Control createDialogArea(Composite parent)
{
    // Main composite of the dialog area -----------------------------------
    Composite top = new Composite(parent, SWT.NONE);
    GridData areaData = new GridData(GridData.FILL_BOTH);
    areaData.widthHint = 600;
    top.setLayoutData(areaData);
    GridLayout layout = new GridLayout();
    layout.numColumns = 1;
    top.setLayout(layout);

    TabFolder folder = new TabFolder(top, SWT.BORDER);
    folder.setLayoutData(new GridData(GridData.FILL_BOTH));

    createGenericProperties(folder);
    createHistoryOfChanges(folder);

    folder.layout();

    return parent;
}
项目:SPELL    文件:PropertiesDialog.java   
/***************************************************************************
 * Create the generic properties
 **************************************************************************/
protected void createGenericProperties(TabFolder folder)
{
    TabItem itemGenerics = new TabItem(folder, SWT.NONE);
    itemGenerics.setText("General properties");
    m_tabGenerics = new Composite(folder, SWT.BORDER);
    m_tabGenerics.setLayoutData(new GridData(GridData.FILL_BOTH));
    GridLayout tabLayout1 = new GridLayout();
    tabLayout1.numColumns = 2;
    tabLayout1.marginHeight = 15;
    m_tabGenerics.setLayout(tabLayout1);
    itemGenerics.setControl(m_tabGenerics);

    for (ProcProperties prop : ProcProperties.values())
    {
        if (prop.equals(ProcProperties.PROC_HISTORY))
            continue;
        String title = prop.tag.substring(0, 1).toUpperCase() + prop.tag.substring(1);
        addGeneric(title, prop, prop.multiline);
    }

    m_tabGenerics.pack();
}
项目:SPELL    文件:PropertiesDialog.java   
/***************************************************************************
 * Create the history of changes
 **************************************************************************/
protected void createHistoryOfChanges(TabFolder folder)
{
    TabItem itemHistory = new TabItem(folder, SWT.NONE);
    itemHistory.setText("History of changes");
    m_tabHistory = new Composite(folder, SWT.BORDER);
    GridLayout tabLayout2 = new GridLayout();
    tabLayout2.numColumns = 1;
    m_tabHistory.setLayout(tabLayout2);
    itemHistory.setControl(m_tabHistory);

    m_history = new ArrayList<String>();
    parseHistory();

    m_table = new Table(m_tabHistory, SWT.NONE);
    m_historyViewer = new TableViewer(m_table);
    m_historyViewer.setContentProvider(new HistoryContentProvider());
    m_historyViewer.setInput(m_history);
    m_table.setHeaderVisible(true);
    m_table.setLinesVisible(true);
    m_table.setLayoutData(new GridData(GridData.FILL_BOTH));
    IConfigurationManager mgr = (IConfigurationManager) ServiceManager.get(IConfigurationManager.class);
    m_table.setFont(mgr.getFont(FontKey.CODE));
    m_tabHistory.pack();
}
项目:jdepend4eclipse    文件:JDependPreferencePage.java   
@Override
protected Control createContents(Composite parent) {
    TabFolder tabFolder = new TabFolder(parent, SWT.TOP);
    tabFolder.setLayout(new GridLayout(1, true));
    tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH));

    TabItem tabFilter = new TabItem(tabFolder, SWT.NONE);
    tabFilter.setText("Filters");

    Group defPanel = new Group(tabFolder, SWT.NONE);
    defPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    defPanel.setLayout(new GridLayout(1, false));
    defPanel.setText("Search Filters");

    tabFilter.setControl(defPanel);

    TabItem support = new TabItem(tabFolder, SWT.NONE);
    support.setText("Misc...");
    Composite supportPanel = createContainer(tabFolder);
    support.setControl(supportPanel);
    SupportPanel.createSupportLinks(supportPanel);

    createFilterPreferences(defPanel);

    return tabFolder;
}
项目:gama    文件:CRSChooser.java   
/**
 * Creates the CRS PreferencePage root control with no CRS selected
 * 
 * @param parent
 *            PreferencePage for this chooser
 * @return control for the PreferencePage
 */
public Control createControl(final Composite parent) {
    GridData gridData = null;

    gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
    folder = new TabFolder(parent, SWT.NONE);
    folder.setLayoutData(gridData);

    final TabItem standard = new TabItem(folder, SWT.NONE);
    standard.setText("Standard CRS");
    final Control stdCRS = createStandardCRSControl(folder);
    standard.setControl(stdCRS);

    final TabItem custom = new TabItem(folder, SWT.NONE);
    custom.setText("Custom CRS");
    final Control cstCRS = createCustomCRSControl(folder);
    custom.setControl(cstCRS);

    return folder;
}
项目:CooperateModelingEnvironment    文件:DiffView.java   
private void setUpTabs(Composite parent) {

        tabFolder = new TabFolder(parent, SWT.BOTTOM);

        commitHistoryTab = new TabItem(tabFolder, SWT.NULL);
        commitHistoryTab.setText("Commit History");
        commitHistoryComposite = new Composite(tabFolder, SWT.NULL);
        commitHistoryTab.setControl(commitHistoryComposite);
        commitHistoryComposite.setLayout(new FormLayout());

        diffViewTab = new TabItem(tabFolder, SWT.NULL);
        diffViewTab.setText("Diff View");
        diffViewComposite = new Composite(tabFolder, SWT.NULL);
        diffViewTab.setControl(diffViewComposite);
        diffViewComposite.setLayout(new FormLayout());

    }
项目:erflute    文件:OptionSettingDialog.java   
@Override
protected void initComponent(Composite composite) {
    final GridData gridData = new GridData();
    gridData.grabExcessHorizontalSpace = true;
    gridData.grabExcessVerticalSpace = true;
    gridData.verticalAlignment = GridData.FILL;
    gridData.horizontalAlignment = GridData.FILL;

    this.tabFolder = new TabFolder(composite, SWT.NONE);
    tabFolder.setLayoutData(gridData);

    tabWrapperList.add(new DBSelectTabWrapper(this, tabFolder, SWT.NONE, settings));
    tabWrapperList.add(new EnvironmentTabWrapper(this, tabFolder, SWT.NONE, settings));
    tabWrapperList.add(new AdvancedTabWrapper(this, tabFolder, SWT.NONE, settings, diagram));
    tabWrapperList.add(new OptionTabWrapper(this, tabFolder, SWT.NONE, settings));

    ListenerAppender.addTabListener(tabFolder, tabWrapperList);

    tabWrapperList.get(0).setInitFocus();
}
项目:erflute    文件:SearchDialog.java   
private void initialize(Composite parent) {
    final GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 3;
    gridLayout.verticalSpacing = 15;

    createKeywordCombo(parent);

    createReplaceCombo(parent);

    final GridData gridData = new GridData();
    gridData.horizontalAlignment = GridData.FILL;
    gridData.horizontalSpan = 3;
    gridData.grabExcessHorizontalSpace = true;

    this.tabFolder = new TabFolder(parent, SWT.NONE);
    tabFolder.setLayoutData(gridData);

    createRegionGroup(tabFolder);
    createResultGroup(tabFolder);

    parent.setLayout(gridLayout);

    selectAllCheckBox(true);
}
项目:mytourbook    文件:PrefPagePeople.java   
private void createUI_30_Person_Folder(final Composite parent) {

        _tabFolderPerson = new TabFolder(parent, SWT.NONE);
        GridDataFactory.fillDefaults()//
                .grab(true, false)
                .span(2, 1)
                .applyTo(_tabFolderPerson);
        {
            // tab: person
            final TabItem tabItemDetails = new TabItem(_tabFolderPerson, SWT.NONE);
            tabItemDetails.setText(Messages.Pref_People_Tab_Person);
            tabItemDetails.setControl(createUI_50_Tab_Person(_tabFolderPerson));

            // tab: hr zone
            final TabItem tabItemHRZone = new TabItem(_tabFolderPerson, SWT.NONE);
            tabItemHRZone.setText(Messages.Pref_People_Tab_HRZone);
            tabItemHRZone.setControl(createUI_60_Tab_HRZone(_tabFolderPerson));

            // tab: data transfer
            final TabItem tabItemDataTransfer = new TabItem(_tabFolderPerson, SWT.NONE);
            tabItemDataTransfer.setText(Messages.Pref_People_Tab_DataTransfer);
            tabItemDataTransfer.setControl(createUI_90_Tab_DataTransfer(_tabFolderPerson));
        }
    }
项目:mytourbook    文件:ColorChooser.java   
private void createUI_10_Tabs(final Composite parent) {

        _tabFolder = new TabFolder(parent, SWT.NONE);
        GridDataFactory.fillDefaults().grab(true, false).applyTo(_tabFolder);
        _tabFolder.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_BLUE));

        // hexagon
        final TabItem hexagonTab = new TabItem(_tabFolder, SWT.NONE);
        hexagonTab.setText(Messages.color_chooser_hexagon);
        createUI_22_Tab_Hexagon(_tabFolder, hexagonTab);

        // rgb / hsb
        final TabItem rgbTab = new TabItem(_tabFolder, SWT.NONE);
        rgbTab.setText(Messages.color_chooser_rgb);
        createUI_30_Tab_RGB_HSB(_tabFolder, rgbTab);

        _tabFolder.pack();
    }
项目:mytourbook    文件:LocalizeDialog.java   
protected Control createDialogArea(Composite parent) {
        languageSet.associate(getShell(), Messages.LocalizeDialog_Title);
//      getShell().setText(Messages.LocalizeDialog_Title);

        Composite container = (Composite)super.createDialogArea(parent);

        final TabFolder tabFolder = new TabFolder(container, SWT.NONE);

//      addFeaturesTab(tabFolder);
        if (tabTitle != null) {
            addActivePartTab(tabFolder);
        }
        addMenuTab(tabFolder);
        addPluginsTab(tabFolder);

        languageSet.associate(recursiveUseText);

        Dialog.applyDialogFont(container);
        return container;
    }
项目:mytourbook    文件:LocalizeDialog.java   
private void addFeaturesTab(TabFolder tabFolder) {
        final TabItem tabItem = new TabItem(tabFolder, SWT.NONE);

        languageSet.associate(
                "features",  //$NON-NLS-1$
                new TranslatableTextInput(Activator.getLocalizableText("LocalizeDialog.featuresTab")) { //$NON-NLS-1$
                    @Override
                    public void updateControl(String text) {
                        tabItem.setText(text);
                    }
                }
        );

        Composite c = new Composite(tabFolder, SWT.NONE);
        tabItem.setControl(c);

//      createFeaturesTable(c, bundleInfos);
    }
项目:mytourbook    文件:LocalizeDialog.java   
private void addPluginsTab(TabFolder tabFolder) {
    TabItem tabItem = new TabItem(tabFolder, SWT.NONE);
    languageSet.associate(tabItem, Messages.LocalizeDialog_TabTitle_Plugins);

    AboutBundleData[] bundleInfos;



    // create a data object for each bundle, remove duplicates, and include only resolved bundles (bug 65548)
    Map map = new HashMap();
    Bundle[] bundles = WorkbenchPlugin.getDefault().getBundles();
    for (int i = 0; i < bundles.length; ++i) {
        AboutBundleData data = new AboutBundleData(bundles[i]);
        if (BundleUtility.isReady(data.getState()) && !map.containsKey(data.getVersionedId())) {
            map.put(data.getVersionedId(), data);
        }
    }
    bundleInfos = (AboutBundleData[]) map.values().toArray(
            new AboutBundleData[0]);

    Composite c = new Composite(tabFolder, SWT.NONE);
    tabItem.setControl(c);

    createPluginsTab(c, bundleInfos);
}
项目:mytourbook    文件:PluginLocalizationDialog.java   
protected Control createDialogArea(Composite parent) {
        languageSet.associate(getShell(), TranslatableNLS.bind(Messages.LocalizeDialog_Title_PluginPart, bundle.getSymbolicName()));

        Composite container = (Composite)super.createDialogArea(parent);

        final TabFolder tabFolder = new TabFolder(container, SWT.NONE);

        // The plugin.properties resource bundle
        addPreActivationResourceTab(tabFolder);

        /*
         * For each resource bundle in the plug-in, add a tab for that
         * too.
         */
        Collection<TranslatableResourceBundle> resourceBundles = TranslatableResourceBundle.getAllResourceBundles().get(bundle);
        if (resourceBundles != null) {
            for (TranslatableResourceBundle resourceBundle: resourceBundles) {
                addPostActivationResourceTab(tabFolder, resourceBundle);
            }
        }

//      createButtonsSection(container);

        Dialog.applyDialogFont(container);
        return container;
    }
项目:mytourbook    文件:PluginLocalizationDialog.java   
private void addPostActivationResourceTab(TabFolder tabFolder, TranslatableResourceBundle resourceBundle) {
    TabItem tabItem = new TabItem(tabFolder, SWT.NONE);
    tabItem.setText(resourceBundle.getDescription());

    Composite c = new Composite(tabFolder, SWT.NONE);
    tabItem.setControl(c);

    c.setLayout(new GridLayout());

    ArrayList<ITranslatableText> texts = new ArrayList<ITranslatableText>();
    Enumeration<String> e = resourceBundle.getKeys();
    while (e.hasMoreElements()) {
        texts.add(new TranslatableText(resourceBundle, e.nextElement()));
    }

    Control tv = new TranslatableTreeComposite(c, new TextInputContentProvider(), texts.toArray(new ITranslatableText[0]), languageSet, updatedBundles);
    tv.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
}
项目:DynamicSpotter    文件:ResultsView.java   
@Override
public void createPartControl(Composite parent) {
    setPartName(RESULTS_VIEW_TITLE);
    setContentDescription(RESULTS_EMPTY_CONTENT_DESC);

    // ensure that the parent's layout is a FillLayout
    if (!(parent.getLayout() instanceof FillLayout)) {
        parent.setLayout(new FillLayout());
    }

    TabFolder folder = new TabFolder(parent, SWT.NONE);
    createHierarchyTab(folder);
    createReportTab(folder);
    createAnnotationTab(folder);

    getViewSite().getPage().addPostSelectionListener(this);
}
项目:OpenSPIFe    文件:OpenPlanSearchHandler.java   
@Override
protected Control createPageArea(Composite parent) {
    Control pageArea = super.createPageArea(parent);
    if(pageArea instanceof Composite) {
        Composite composite = (Composite)pageArea;
        Control[] children = composite.getChildren();
        for(Control control : children) {
            if(control instanceof TabFolder) {
                TabFolder tabFolder = (TabFolder)control;
                TabItem[] tabItems = tabFolder.getItems();
                for(TabItem tabItem : tabItems) {
                    if(tabItem.getText().equals("Java Search") ||
                       tabItem.getText().equals("Task Search")) {
                        tabItem.dispose();
                    }
                }
            }
        }
    }
    return pageArea;
}
项目:ermaster-nhit    文件:AbstractTabbedDialog.java   
protected void createTabFolder(Composite parent) {
    GridData gridData = new GridData();
    gridData.grabExcessHorizontalSpace = true;
    gridData.grabExcessVerticalSpace = true;
    gridData.verticalAlignment = GridData.FILL;
    gridData.horizontalAlignment = GridData.FILL;

    this.tabFolder = new TabFolder(parent, SWT.NONE);
    this.tabFolder.setLayoutData(gridData);

    this.tabWrapperList = this.createTabWrapperList(this.tabFolder);

    for (ValidatableTabWrapper tab : this.tabWrapperList) {
        tab.init();
    }

    ListenerAppender.addTabListener(tabFolder, tabWrapperList);

    this.tabWrapperList.get(0).setInitFocus();
}
项目:FindBug-for-Domino-Designer    文件:ReportConfigurationTab.java   
public ReportConfigurationTab(TabFolder parent, FindbugsPropertyPage page, int style) {
    super(parent, style);
    this.propertyPage = page;
    setLayout(new GridLayout());

    TabItem tabDetector = new TabItem(parent, SWT.NONE);
    tabDetector.setText(getMessage("property.reportConfigurationTab"));
    tabDetector.setControl(this);
    tabDetector.setToolTipText("Configure bugs reported to the UI");

    Composite rankAndPrioGroup = new Composite(this, SWT.NONE);
    rankAndPrioGroup.setLayout(new GridLayout(2, false));

    createRankGroup(rankAndPrioGroup);
    createPriorityGroup(rankAndPrioGroup);

    createBugCategoriesGroup(rankAndPrioGroup, page.getProject());
    createBugSeverityGroup(rankAndPrioGroup);
}
项目:birt    文件:AggregationDialog.java   
private TabFolder createTabFolder( Composite parent )
{
    tabFolder = new TabFolder( parent, SWT.NONE );
    // Should not set layout for TabFolder.
    // GridData gd = new GridData( GridData.FILL_BOTH );
    // tabFolder.setLayoutData( gd );
    // GridLayout layout = new GridLayout( );
    // tabFolder.setLayout( layout );

    rowArea = new TabItem( tabFolder, SWT.NONE );
    rowArea.setText( Messages.getString( "AggregationDialog.TabItem.Title.RowArea" ) ); //$NON-NLS-1$
    rowArea.setImage( CrosstabUIHelper.getImage( CrosstabUIHelper.ROWS_AREA_IMAGE ) );

    columnArea = new TabItem( tabFolder, SWT.NONE );
    columnArea.setText( Messages.getString( "AggregationDialog.TabItem.Title.ColumnArea" ) ); //$NON-NLS-1$
    columnArea.setImage( CrosstabUIHelper.getImage( CrosstabUIHelper.COLUMNS_AREA_IMAGE ) );

    return tabFolder;
}
项目:asakusafw-shafu    文件:ShafuPreferencePage.java   
@Override
protected Control createContents(Composite parent) {
    TabFolder folder = new TabFolder(parent, SWT.NONE);
    folder.setLayoutData(GridDataFactory.fillDefaults()
            .grab(true, true)
            .create());

    Composite basicTab = new Composite(folder, SWT.NONE);
    createBasicTab(basicTab);

    Composite projectTab = new Composite(folder, SWT.NONE);
    createProjectTab(projectTab);

    Composite jvmTab = new Composite(folder, SWT.NONE);
    createJvmTab(jvmTab);

    createTabItem(folder, basicTab, Messages.ShafuPreferencePage_tabBasic);
    createTabItem(folder, projectTab, Messages.ShafuPreferencePage_tabProject);
    createTabItem(folder, jvmTab, Messages.ShafuPreferencePage_tabJvm);

    applyDialogFont(folder);
    return folder;
}
项目:ermaster-nhit    文件:AbstractRealColumnDialog.java   
@Override
protected Composite createRootComposite(Composite parent) {
    this.tabFolder = new TabFolder(parent, SWT.NONE);

    this.tabItem = new TabItem(this.tabFolder, SWT.NONE);
    this.tabItem.setText(ResourceString.getResourceString("label.basic"));

    Composite composite = CompositeFactory.createComposite(this.tabFolder,
            this.getCompositeNumColumns(), true);
    this.tabItem.setControl(composite);

    this.tabItem = new TabItem(this.tabFolder, SWT.NONE);
    this.tabItem.setText(ResourceString.getResourceString("label.detail"));

    Composite detailComposite = CompositeFactory.createComposite(
            this.tabFolder, 2, true);
    this.initializeDetailTab(detailComposite);
    this.tabItem.setControl(detailComposite);

    return composite;
}
项目:wt-studio    文件:TableDialog.java   
protected Control createDialogArea(Composite parent)
{
    Composite comp=(Composite)super.createDialogArea(parent); 
    comp.setBounds(0, 0, 600, 600);
    comp.setLayout(new FillLayout());
    final TabFolder tab=new TabFolder(comp,SWT.TOP);
    CreateGeneralTab(tab);
    CreateColumnTab(tab);
    CreateIndexTab(tab);
    CreateKeyTab(tab);
    CreateCodeTab(tab);
    tab.setLayout(new FillLayout());
    tab.pack();
    return parent;

}