Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.TabFolder


    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);
View Full Code Here


    {
        viewPage = new RepositoriesView(this);

        Composite control = new Composite(parent, SWT.NONE);

        TabFolder folder = new TabFolder(control, SWT.TOP);

        TabItem view = new TabItem(folder, SWT.NONE);
        view.setText("Repositories");
        view.setControl(viewPage.createContents(folder));

        control.setLayout(new GridLayout(1, true));
        folder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

        return control;
    }
View Full Code Here

    @Override
    protected Control createContents(final Composite parent) {
        final Composite composite = new Composite(parent, SWT.NONE);
        composite.setLayout(new FillLayout(SWT.HORIZONTAL));
        final TabFolder tabFolder = new TabFolder(composite, SWT.NONE);

        // /////////////////////////////////////
        final TabItem optionsTab = new TabItem(tabFolder, SWT.NONE);
        optionsTab.setText("Options");
View Full Code Here

    @Override
    protected Control createContents(final Composite parent) {
        final Composite composite = new Composite(parent, SWT.NONE);
        composite.setLayout(new FillLayout(SWT.HORIZONTAL));
        final TabFolder tabFolder = new TabFolder(composite, SWT.NONE);

        // /////////////////////////////////////
        final TabItem sourceTab = new TabItem(tabFolder, SWT.NONE);
        sourceTab.setText("Source");
View Full Code Here

        // toolbars and menu
        createActionBars();

        // children
        final TabFolder tabFolder = createTabs(parent);
        addNodesTab(tabFolder);
        addProcessesTab(tabFolder);
        addFunctionsTab(tabFolder);
    }
View Full Code Here

        startStopAction.setToolTipText(START_LABEL);
        getViewSite().getActionBars().getToolBarManager().add(startStopAction);
    }

    private TabFolder createTabs(final Composite parent) {
        final TabFolder tabFolder = new TabFolder(parent, SWT.BORDER);
        tabFolder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
        return tabFolder;
    }
View Full Code Here

        this.project = project;
        this.retrieveSetup = retrieveSetup;
    }

    protected Control createDialogArea(Composite parent) {
        TabFolder tabs = new TabFolder(parent, SWT.BORDER);

        TabItem mainTab = new TabItem(tabs, SWT.NONE);
        mainTab.setText("Main");
        mainTab.setControl(createMainTab(tabs));
View Full Code Here

    public void createControl(Composite parent) {
        setTitle("IvyDE Managed Libraries");
        setDescription("Choose ivy file and its configurations.");

        tabs = new TabFolder(parent, SWT.BORDER);
        tabs.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));

        TabItem mainTab = new TabItem(tabs, SWT.NONE);
        mainTab.setText("Main");
        mainTab.setControl(createMainTab(tabs));
View Full Code Here

        GridData gd1 = new GridData( GridData.FILL_BOTH );
        gd1.widthHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH );
        gd1.heightHint = convertVerticalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH );
        composite.setLayoutData( gd1 );

        tabFolder = new TabFolder( composite, SWT.TOP );
        GridLayout mainLayout = new GridLayout();
        mainLayout.marginWidth = 0;
        mainLayout.marginHeight = 0;
        tabFolder.setLayout( mainLayout );
        tabFolder.setLayoutData( new GridData( GridData.FILL_BOTH ) );
View Full Code Here

       
        composite.setLayout(gridLayout);
        final ScrolledComposite scroll = new ScrolledComposite(composite, SWT.V_SCROLL | SWT.BORDER);
        scroll.setLayout(new FillLayout());
       
        final TabFolder tabFolder = new TabFolder(scroll, SWT.NONE);
        tabFolder.addControlListener(new ControlAdapter(){
          public void controlResized( ControlEvent e ) {
            tabFolder.setSize(parent.getSize().x, parent.getSize().y);
          }
        });
       
        scroll.setContent(tabFolder);
        parent.addControlListener(new ControlAdapter(){
          public void controlResized( ControlEvent e ) {
            tabFolder.setSize(parent.getSize().x, parent.getSize().y);
          }
        });
        scroll.setAlwaysShowScrollBars(true);
        scroll.setExpandVertical(true);
        scroll.setExpandHorizontal(true);
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.