public static CTabFolder createTabFolder( Composite composite, FormData fd, String... titles ) { Composite container = new Composite( composite, SWT.NONE ); WidgetUtils.setFormLayout( container, 0 ); container.setLayoutData( fd ); CTabFolder tabFolder = new CTabFolder( container, SWT.NONE ); tabFolder.setLayoutData( new FormDataBuilder().fullSize().result() ); for ( String title : titles ) { if ( title.length() < 8 ) { title = StringUtils.rightPad( title, 8 ); } Composite tab = new Composite( tabFolder, SWT.NONE ); WidgetUtils.setFormLayout( tab, ConstUI.MEDUIM_MARGIN ); CTabItem tabItem = new CTabItem( tabFolder, SWT.NONE ); tabItem.setText( title ); tabItem.setControl( tab ); } tabFolder.setSelection( 0 ); return tabFolder; }
tabFolder_2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); tabFolder_2.setBounds(0, 0, 156, 125); tabFolder_2.setSelectionBackground(Display.getCurrent().getSystemColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));
private void addTree() { mainComposite = new Composite( sashform, SWT.BORDER ); mainComposite.setLayout( new FormLayout() ); props.setLook( mainComposite, Props.WIDGET_STYLE_TOOLBAR ); tabFolder = new CTabFolder( mainComposite, SWT.HORIZONTAL ); props.setLook( tabFolder, Props.WIDGET_STYLE_TAB ); FormData fdTab = new FormData(); fdTab.left = new FormAttachment( 0 ); fdTab.top = new FormAttachment( mainComposite, 0 ); fdTab.right = new FormAttachment( 100 ); fdTab.bottom = new FormAttachment( 100 ); tabFolder.setLayoutData( fdTab ); addViewTab( tabFolder ); addDesignTab( tabFolder ); tabFolder.setSelection( view ); coreStepToolTipMap = new Hashtable<>(); coreJobToolTipMap = new Hashtable<>(); addDefaultKeyListeners( tabFolder ); addDefaultKeyListeners( mainComposite ); }
private void addLogTableTabs() { // Create a nested tab folder in the tab item, on the history composite... // tabFolder = new CTabFolder( jobHistoryComposite, SWT.MULTI ); spoon.props.setLook( tabFolder, Props.WIDGET_STYLE_TAB ); FormData fdTabFolder = new FormData(); fdTabFolder.left = new FormAttachment( 0, 0 ); // First one in the left top corner fdTabFolder.top = new FormAttachment( (Control) toolbar.getManagedObject(), 0 ); fdTabFolder.right = new FormAttachment( 100, 0 ); fdTabFolder.bottom = new FormAttachment( 100, 0 ); tabFolder.setLayoutData( fdTabFolder ); models = new JobHistoryLogTab[jobMeta.getLogTables().size()]; for ( int i = 0; i < models.length; i++ ) { models[i] = new JobHistoryLogTab( tabFolder, jobMeta.getLogTables().get( i ) ); } }
private void addLogTableTabs() { // Create a nested tab folder in the tab item, on the history composite... // tabFolder = new CTabFolder( transHistoryComposite, SWT.MULTI ); spoon.props.setLook( tabFolder, Props.WIDGET_STYLE_TAB ); FormData fdTabFolder = new FormData(); fdTabFolder.left = new FormAttachment( 0, 0 ); // First one in the left top corner fdTabFolder.top = new FormAttachment( (Control) toolbar.getManagedObject(), 0 ); fdTabFolder.right = new FormAttachment( 100, 0 ); fdTabFolder.bottom = new FormAttachment( 100, 0 ); tabFolder.setLayoutData( fdTabFolder ); models = new TransHistoryLogTab[transMeta.getLogTables().size()]; for ( int i = 0; i < models.length; i++ ) { models[i] = new TransHistoryLogTab( tabFolder, transMeta.getLogTables().get( i ) ); } }
protected void layoutTabFolder() { m_wTabFolder.setSelection( 0 ); m_wTabFolder.setLayoutData( new FormDataBuilder().left().top( headerSpacer, BaseDialog.MARGIN_SIZE ).right( 100, 0 ).bottom( new FormAttachment( footerSpacer, -BaseDialog.MARGIN_SIZE ) ).result() ); }
fdTabFolder.right = new FormAttachment( 100, 0 ); fdTabFolder.bottom = new FormAttachment( wOK, -margin ); wTabFolder.setLayoutData( fdTabFolder );
fdTabFolder.right = new FormAttachment( 100, 0 ); fdTabFolder.bottom = new FormAttachment( hSpacer, -15 ); wTabFolder.setLayoutData( fdTabFolder );
fdTabFolder.right = new FormAttachment( 100, 0 ); fdTabFolder.bottom = new FormAttachment( hSpacer, -15 ); wTabFolder.setLayoutData( fdTabFolder );
fdTabFolder.right = new FormAttachment( 100, 0 ); fdTabFolder.bottom = new FormAttachment( hSpacer, -15 ); wTabFolder.setLayoutData( fdTabFolder );
fdTabFolder.bottom = new FormAttachment( bottomSeparator, -15 ); fdTabFolder.right = new FormAttachment( 100, 0 ); wTabFolder.setLayoutData( fdTabFolder );
fdTabFolder.bottom = new FormAttachment( hSpacer, -15 ); fdTabFolder.right = new FormAttachment( 100, 0 ); wTabFolder.setLayoutData( fdTabFolder );
fdTabFolder.right = new FormAttachment( 100, 0 ); fdTabFolder.bottom = new FormAttachment( 100, -50 ); wTabFolder.setLayoutData( fdTabFolder );
fdTabFolder.top = new FormAttachment( wResultsLabel, Const.MARGIN ); fdTabFolder.bottom = new FormAttachment( 100, 0 ); extraViewTabFolder.setLayoutData( fdTabFolder );
fdTabFolder.top = new FormAttachment( wResultsLabel, Const.MARGIN ); fdTabFolder.bottom = new FormAttachment( 100, 0 ); extraViewTabFolder.setLayoutData( fdTabFolder );
fdTabFolder.bottom = new FormAttachment( hSpacer, -15 ); fdTabFolder.right = new FormAttachment( 100, 0 ); wTabFolder.setLayoutData( fdTabFolder );
fdTabFolder.right = new FormAttachment( 100, 0 ); fdTabFolder.bottom = new FormAttachment( wOK, -margin ); wTabFolder.setLayoutData( fdTabFolder );
fdTabFolder.right = new FormAttachment( 100, 0 ); fdTabFolder.bottom = new FormAttachment( wOK, -margin ); wTabFolder.setLayoutData( fdTabFolder );
fd_tabFolder.top = new FormAttachment( gDetails, 15 ); fd_tabFolder.bottom = new FormAttachment( gDetails, 370 ); tabFolder.setLayoutData( fd_tabFolder );
fdTabFolder.right = new FormAttachment( 100, 0 ); fdTabFolder.bottom = new FormAttachment( 100, -50 ); wTabFolder.setLayoutData( fdTabFolder );