org.eclipse.swt.widgets.TabFolder Java Examples
The following examples show how to use
org.eclipse.swt.widgets.TabFolder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractRealColumnDialog.java From ermaster-b with Apache License 2.0 | 7 votes |
@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 = super.createRootComposite(this.tabFolder); this.tabItem.setControl(composite); this.tabItem = new TabItem(this.tabFolder, SWT.NONE); this.tabItem.setText(ResourceString.getResourceString("label.detail")); Composite detailComposite = this.createDetailTab(this.tabFolder); this.initializeDetailTab(detailComposite); this.tabItem.setControl(detailComposite); return composite; }
Example #2
Source File: AggregationDialog.java From birt with Eclipse Public License 1.0 | 6 votes |
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; }
Example #3
Source File: TemplateCustomPropertiesPage.java From M2Doc with Eclipse Public License 1.0 | 6 votes |
@Override public void createControl(Composite parent) { final Composite container = new Composite(parent, parent.getStyle()); setControl(container); container.setLayout(new GridLayout(1, false)); final TabFolder tabFolder = new TabFolder(container, SWT.BORDER); tabFolder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); final CheckboxTableViewer tokenViewer = addTokenTabItem(tabFolder, registry, properties); addNSURITabItem(tabFolder, tokenViewer, properties); addServicesTabItem(tabFolder, tokenViewer, properties); if (!M2DocUtils.VERSION.equals(properties.getM2DocVersion())) { setMessage("M2Doc version mismatch: template version is " + properties.getM2DocVersion() + " and current M2Doc version is " + M2DocUtils.VERSION, IMessageProvider.WARNING); } else { setMessage("Select services and packages"); } }
Example #4
Source File: SpellPage.java From tmxeditor8 with GNU General Public License v2.0 | 6 votes |
@Override protected Control createContents(Composite parent) { isInit = true; Composite tParent = new Composite(parent, SWT.BORDER); tParent.setLayoutData(new GridData(GridData.FILL_BOTH)); tParent.setLayout(new GridLayout()); addSpellInstalGroup(tParent); tabFolder = new TabFolder(tParent, SWT.NONE); tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH)); hunspellTabItem = new TabItem(tabFolder, SWT.NONE); hunspellTabItem.setText(Messages.getString("qa.preference.SpellPage.hunspellTab")); aspellTabItem = new TabItem(tabFolder, SWT.NONE); aspellTabItem.setText(Messages.getString("qa.preference.SpellPage.aspellTab")); createHunspellCmp(); createAspellCmp(); initData(); return parent; }
Example #5
Source File: SettingsDialog.java From slr-toolkit with Eclipse Public License 1.0 | 6 votes |
private void buildBubbleSettings() { pageBubbleChart.setLayout(new FillLayout()); TabFolder folderBubbleChart = new TabFolder(pageBubbleChart, SWT.NONE); TabItem itemFolderBubbleChart_1 = new TabItem(folderBubbleChart, SWT.NONE); TabItem itemFolderBubbleChart_2 = new TabItem(folderBubbleChart, SWT.NONE); TabItem itemFolderBubbleChart_3 = new TabItem(folderBubbleChart, SWT.NONE); gerneralPageBubble = new GeneralPageBubble(folderBubbleChart, SWT.NONE); seriesPageBubble = new SeriesPageBubble(folderBubbleChart, SWT.NONE); axisPageBubble = new AxisPageBubble(folderBubbleChart, SWT.NONE); itemFolderBubbleChart_1.setControl(gerneralPageBubble); itemFolderBubbleChart_2.setControl(seriesPageBubble); itemFolderBubbleChart_3.setControl(axisPageBubble); itemFolderBubbleChart_1.setText("General Settings"); itemFolderBubbleChart_2.setText("Series Settings"); itemFolderBubbleChart_3.setText("Axis Settings"); }
Example #6
Source File: SearchDialog.java From erflute with Apache License 2.0 | 6 votes |
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); }
Example #7
Source File: TestDataDialog.java From ermaster-b with Apache License 2.0 | 6 votes |
private void createBottomComposite(Composite composite) { GridData bottomGridData = new GridData(); bottomGridData.grabExcessHorizontalSpace = true; bottomGridData.horizontalAlignment = GridData.FILL; bottomGridData.widthHint = WIDTH; this.createOutputOrderGroup(composite); // �^�u this.tabFolder = new TabFolder(composite, SWT.NONE); this.tabFolder.setLayoutData(bottomGridData); this.directTestDataTabWrapper = new DirectTestDataTabWrapper(this, this.tabFolder, SWT.NONE); this.tabWrapperList.add(this.directTestDataTabWrapper); this.repeatTestDataTabWrapper = new RepeatTestDataTabWrapper(this, this.tabFolder, SWT.NONE); this.tabWrapperList.add(this.repeatTestDataTabWrapper); }
Example #8
Source File: UpdaterDialog.java From developer-studio with Apache License 2.0 | 6 votes |
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); }
Example #9
Source File: LanguageConfigurationInfoWidget.java From tm4e with Eclipse Public License 1.0 | 5 votes |
protected void createWordPatternTab(TabFolder folder) { wordPatternTab = createTab(folder, LanguageConfigurationMessages.LanguageConfigurationInfoWidget_wordPattern_title); Composite parent = (Composite) wordPatternTab.getControl(); wordPatternText = createText(parent, LanguageConfigurationMessages.LanguageConfigurationInfoWidget_wordPattern_message); }
Example #10
Source File: LanguageConfigurationPreferencesWidget.java From tm4e with Eclipse Public License 1.0 | 5 votes |
@Override protected void createAutoClosingPairsTab(TabFolder folder) { super.createAutoClosingPairsTab(folder); Composite parent = (Composite) autoClosingPairsTab.getControl(); toggleBracketAutoClosingButton = new Button(parent, SWT.CHECK); toggleBracketAutoClosingButton.setText("Enable auto closing brackets"); toggleBracketAutoClosingButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); toggleBracketAutoClosingButton.setEnabled(false); toggleBracketAutoClosingButton.addSelectionListener(widgetSelectedAdapter(e -> { manager.unregisterLanguageConfigurationDefinition(definition); definition.setBracketAutoClosingEnabled(toggleBracketAutoClosingButton.getSelection()); manager.registerLanguageConfigurationDefinition(definition); })); }
Example #11
Source File: LanguageConfigurationInfoWidget.java From tm4e with Eclipse Public License 1.0 | 5 votes |
private TabItem createTab(TabFolder folder, String title) { TabItem tab = new TabItem(folder, SWT.NONE); tab.setText(title); Composite parent = new Composite(folder, SWT.NONE); parent.setLayout(new GridLayout()); parent.setLayoutData(new GridData(GridData.FILL_BOTH)); tab.setControl(parent); return tab; }
Example #12
Source File: InterfacesTab.java From neoscada with Eclipse Public License 1.0 | 5 votes |
@Override public void createTab ( final TabFolder tabFolder ) { this.item = new TabItem ( tabFolder, SWT.NONE ); this.item.setText ( Messages.InterfacesTab_TabItem_Label ); this.viewer = new ListViewer ( tabFolder ); this.item.setControl ( this.viewer.getControl () ); this.viewer.setContentProvider ( new ArrayContentProvider () ); }
Example #13
Source File: LanguageConfigurationInfoWidget.java From tm4e with Eclipse Public License 1.0 | 5 votes |
protected void createFoldingTab(TabFolder folder) { foldingTab = createTab(folder, LanguageConfigurationMessages.LanguageConfigurationInfoWidget_folding_title); Composite parent = (Composite) foldingTab.getControl(); offsideText = createText(parent, LanguageConfigurationMessages.LanguageConfigurationInfoWidget_offSide); offsideText.setToolTipText(LanguageConfigurationMessages.LanguageConfigurationInfoWidget_offSide_tooltip); new Label(parent, SWT.NONE).setText(LanguageConfigurationMessages.LanguageConfigurationInfoWidget_markers); markersStartText = createText(parent, LanguageConfigurationMessages.LanguageConfigurationInfoWidget_start); markersEndText = createText(parent, LanguageConfigurationMessages.LanguageConfigurationInfoWidget_end); }
Example #14
Source File: LanguageConfigurationInfoWidget.java From tm4e with Eclipse Public License 1.0 | 5 votes |
protected void createCommentsTab(TabFolder folder) { commentsTab = createTab(folder, LanguageConfigurationMessages.LanguageConfigurationInfoWidget_comments); Composite parent = (Composite) commentsTab.getControl(); lineCommentText = createText(parent, LanguageConfigurationMessages.LanguageConfigurationInfoWidget_lineComments); blockCommentStartText = createText(parent, LanguageConfigurationMessages.LanguageConfigurationInfoWidget_blockCommentsStart); blockCommentEndText = createText(parent, LanguageConfigurationMessages.LanguageConfigurationInfoWidget_blockCommentsEnd); }
Example #15
Source File: DetailsView.java From neoscada with Eclipse Public License 1.0 | 5 votes |
public DetailsView ( final Composite parent ) { this.tabFolder = new TabFolder ( parent, SWT.NONE ); this.tabs.add ( new InterfacesTab () ); this.tabs.add ( new StatisticsTab () ); this.tabs.add ( new PrivilegeTab () ); this.tabs.add ( new PropertiesTab () ); for ( final DetailsTab tab : this.tabs ) { tab.createTab ( this.tabFolder ); } }
Example #16
Source File: JdbcDriverManagerDialog.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * Add jarPage and driverPage * @param tabFolder parent Composite */ private void addTabPages( TabFolder tabFolder ) { localizeButtonWidth( ); addJarPage( tabFolder ); addDriverPage( tabFolder ); }
Example #17
Source File: AttributeTabWrapper.java From ermaster-b with Apache License 2.0 | 5 votes |
public AttributeTabWrapper(TableDialog tableDialog, TabFolder parent, int style, ERTable copyData) { super(tableDialog, parent, style, "label.table.attribute"); this.copyData = copyData; this.tableDialog = tableDialog; this.init(); }
Example #18
Source File: ValidatableTabWrapper.java From ermaster-b with Apache License 2.0 | 5 votes |
public ValidatableTabWrapper(AbstractDialog dialog, TabFolder parent, int style, String title) { super(parent, style); this.dialog = dialog; this.tabItem = new TabItem(parent, style); this.tabItem.setText(ResourceString.getResourceString(title)); this.tabItem.setControl(this); }
Example #19
Source File: LanguageConfigurationPreferencesWidget.java From tm4e with Eclipse Public License 1.0 | 5 votes |
@Override protected void createSurroundingPairsTab(TabFolder folder) { super.createSurroundingPairsTab(folder); Composite parent = (Composite) surroundingPairsTab.getControl(); toggleMatchingPairsButton = new Button(parent, SWT.CHECK); toggleMatchingPairsButton.setText("Enable matching brackets"); toggleMatchingPairsButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); toggleMatchingPairsButton.setEnabled(false); toggleMatchingPairsButton.addSelectionListener(widgetSelectedAdapter(e -> { manager.unregisterLanguageConfigurationDefinition(definition); definition.setMatchingPairsEnabled(toggleMatchingPairsButton.getSelection()); manager.registerLanguageConfigurationDefinition(definition); })); }
Example #20
Source File: VariableAndOptionPage.java From M2Doc with Eclipse Public License 1.0 | 5 votes |
@Override public void createControl(Composite parent) { final Composite container = new Composite(parent, parent.getStyle()); setControl(container); container.setLayout(new GridLayout(1, false)); final TabFolder tabFolder = new TabFolder(container, SWT.BORDER); tabFolder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); final TabItem variableTabItem = new TabItem(tabFolder, tabFolder.getStyle()); variableTabItem.setText("Variables"); final Composite variableContainer = new Composite(tabFolder, tabFolder.getStyle()); variableTabItem.setControl(variableContainer); variablesTable = createVariablesTable(generation, variableContainer, adapterFactory, templateCustomPropertiesProvider); generationListener.setVariablesViewer(variablesTable); createVariablesButonComposite(generation, variableContainer, variablesTable); final TabItem optionTabItem = new TabItem(tabFolder, tabFolder.getStyle()); optionTabItem.setText("Options (expert)"); final Composite optionContainer = new Composite(tabFolder, tabFolder.getStyle()); optionTabItem.setControl(optionContainer); optionContainer.setLayout(new GridLayout(2, false)); optionsTable = createOptionsTable(generation, optionContainer); generationListener.setOptionsViewer(optionsTable); createOptionsButonComposite(generation, optionContainer, optionsTable); initializeGenerationVariableDefinition(generation); }
Example #21
Source File: RepeatTestDataTabWrapper.java From ermaster-b with Apache License 2.0 | 5 votes |
public RepeatTestDataTabWrapper(TestDataDialog dialog, TabFolder parent, int style) { super(dialog, parent, style, "label.testdata.repeat.input"); this.dialog = dialog; this.init(); }
Example #22
Source File: EditSdkDialogTabAbstract.java From xds-ide with Eclipse Public License 1.0 | 5 votes |
protected EditSdkDialogTabAbstract(TabFolder tabFolder, EditSdkDialog editSdkDialog) { super(tabFolder, SWT.NONE); this.editSdkDialog = editSdkDialog; tabItem = new TabItem(tabFolder, SWT.NULL); tabItem.setText(getTabName()); tabItem.setControl(this); createTabControls(); }
Example #23
Source File: OptionSettingDialog.java From ermasterr with Apache License 2.0 | 5 votes |
@Override protected List<ValidatableTabWrapper> createTabWrapperList(final TabFolder tabFolder) { final List<ValidatableTabWrapper> list = new ArrayList<ValidatableTabWrapper>(); list.add(new DBSelectTabWrapper(this, tabFolder, settings)); list.add(new EnvironmentTabWrapper(this, tabFolder, settings)); list.add(new AdvancedTabWrapper(this, tabFolder, settings, diagram)); list.add(new OptionTabWrapper(this, tabFolder, settings)); return list; }
Example #24
Source File: OptionTabWrapper.java From erflute with Apache License 2.0 | 5 votes |
public OptionTabWrapper(OptionSettingDialog dialog, TabFolder parent, int style, DiagramSettings settings) { super(dialog, parent, style, "label.option"); this.settings = settings; this.dialog = dialog; init(); }
Example #25
Source File: DescriptionTabWrapper.java From ermaster-b with Apache License 2.0 | 5 votes |
public DescriptionTabWrapper(AbstractDialog dialog, TabFolder parent, int style, ERTable copyData) { super(dialog, parent, style, "label.table.description"); this.copyData = copyData; this.init(); }
Example #26
Source File: EditboxPreferencePage.java From gama with GNU General Public License v3.0 | 5 votes |
@Override protected Control createContents(final Composite parent) { noDefaultAndApplyButton(); final Composite c = new Composite(parent, SWT.NONE); c.setLayout(new GridLayout(1, false)); final Link link = new Link(c, SWT.NONE); link.setText("Turn off current line highlighting <A>here</A>."); final FontData[] fontData = link.getFont().getFontData(); for (final FontData fd : fontData) { fd.setHeight(10); fd.setStyle(SWT.BOLD); } link.setFont(new Font(getShell().getDisplay(), fontData)); link.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(final SelectionEvent e) { final IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer(); container.openPage("org.eclipse.ui.preferencePages.GeneralTextEditor", null); } }); folder = new TabFolder(c, SWT.NONE); folder.setLayoutData(new GridData(GridData.FILL_BOTH)); final TabItem ti = new TabItem(folder, SWT.NONE); ti.setText("Themes"); ti.setControl(createCategoryControl(folder)); folder.pack(); return c; }
Example #27
Source File: ComplexUniqueKeyTabWrapper.java From ermasterr with Apache License 2.0 | 5 votes |
public ComplexUniqueKeyTabWrapper(final AbstractTabbedDialog dialog, final TabFolder parent, final ERTable copyData) { super(dialog, parent, "label.complex.unique.key"); this.copyData = copyData; tableEditorList = new ArrayList<TableEditor>(); editorColumnMap = new HashMap<TableEditor, NormalColumn>(); }
Example #28
Source File: ViewDialog.java From ermasterr with Apache License 2.0 | 5 votes |
@Override protected List<ValidatableTabWrapper> createTabWrapperList(final TabFolder tabFolder) { final List<ValidatableTabWrapper> list = new ArrayList<ValidatableTabWrapper>(); list.add(new AttributeTabWrapper(this, tabFolder, copyData)); list.add(new SqlTabWrapper(this, tabFolder, copyData)); list.add(new DescriptionTabWrapper(this, tabFolder, copyData)); list.add(new AdvancedTabWrapper(this, tabFolder, copyData)); return list; }
Example #29
Source File: ConstraintTabWrapper.java From erflute with Apache License 2.0 | 5 votes |
public ConstraintTabWrapper(TableDialog tableDialog, TabFolder parent, int style, ERTable copyData) { super(tableDialog, parent, style, "label.constraint.and.option"); this.copyData = copyData; this.tableDialog = tableDialog; init(); }
Example #30
Source File: AbstractRealColumnDialog.java From erflute with Apache License 2.0 | 5 votes |
@Override protected Composite createRootComposite(Composite parent) { this.tabFolder = new TabFolder(parent, SWT.NONE); this.tabItem = new TabItem(tabFolder, SWT.NONE); tabItem.setText(DisplayMessages.getMessage("label.basic")); final Composite composite = super.createRootComposite(tabFolder); tabItem.setControl(composite); this.tabItem = new TabItem(tabFolder, SWT.NONE); tabItem.setText(DisplayMessages.getMessage("label.detail")); final Composite detailComposite = createDetailTab(tabFolder); initializeDetailTab(detailComposite); tabItem.setControl(detailComposite); return composite; }