Java Code Examples for org.eclipse.swt.custom.CTabFolder

The following are top voted examples for showing how to use org.eclipse.swt.custom.CTabFolder. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: AgentWorkbench   File: ProjectEditor.java   View source code 6 votes vote down vote up
/**
 * Create contents of the editor part.
 * @param parent
 */
@Override
@PostConstruct
public void createPartControl(Composite parent) {
	
	this.sashForm = new SashForm(parent, SWT.NONE);
	
	this.treeViewer = new TreeViewer(this.sashForm, SWT.BORDER);
	this.tree = this.treeViewer.getTree();
	
	this.tabFolder = new CTabFolder(this.sashForm, SWT.BORDER);
	this.tabFolder.setTabPosition(SWT.BOTTOM);
	this.tabFolder.setSelectionBackground(Display.getCurrent().getSystemColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));
	
	this.tabItem = new CTabItem(this.tabFolder, SWT.NONE);
	this.tabItem.setText("New Item");
	
	this.tabItem_1 = new CTabItem(this.tabFolder, SWT.NONE);
	this.tabItem_1.setText("New Item");
													
	this.sashForm.setWeights(new int[] { 3, 10 });
	
}
 
Example 2
Project: neoscada   File: GeneratorView.java   View source code 6 votes vote down vote up
private void createTabFolder ( final Composite parent )
{
    this.tabFolder = new CTabFolder ( parent, SWT.TOP );
    this.tabFolder.setLayoutData ( new GridData ( GridData.FILL, GridData.FILL, true, true ) );

    for ( final GeneratorPageInformation page : this.pages )
    {
        final CTabItem tabItem = new CTabItem ( this.tabFolder, SWT.NONE );
        final Composite tabComposite = new Composite ( this.tabFolder, SWT.NONE );
        tabComposite.setLayout ( new FillLayout () );
        page.getGeneratorPage ().createPage ( tabComposite );
        tabItem.setText ( page.getLabel () );
        tabItem.setControl ( tabComposite );
        page.getGeneratorPage ().setTarget ( this );
    }

    this.tabFolder.setSelection ( 0 );
}
 
Example 3
Project: AppleCommander   File: DiskWindow.java   View source code 6 votes vote down vote up
/**
 * Setup the Disk window and display (open) it.
 */
public void open() {
	shell = new Shell(parentShell, SWT.SHELL_TRIM);
	shell.setLayout(new FillLayout());
	shell.setImage(imageManager.get(ImageManager.ICON_DISK));
	setStandardWindowTitle();
	shell.addDisposeListener(new DisposeListener() {
			public void widgetDisposed(DisposeEvent event) {
				dispose(event);
			}
		});
		
	CTabFolder tabFolder = new CTabFolder(shell, SWT.BOTTOM);
	new DiskExplorerTab(tabFolder, disks, imageManager, this);
	diskMapTabs = new DiskMapTab[disks.length];
	for (int i=0; i<disks.length; i++) {
		if (disks[i].supportsDiskMap()) {
			diskMapTabs[i] = new DiskMapTab(tabFolder, disks[i]);
		}
	}
	diskInfoTab = new DiskInfoTab(tabFolder, disks);
	tabFolder.setSelection(tabFolder.getItems()[0]);
	
	
	shell.open();
}
 
Example 4
Project: applecommander   File: DiskWindow.java   View source code 6 votes vote down vote up
/**
 * Setup the Disk window and display (open) it.
 */
public void open() {
	shell = new Shell(parentShell, SWT.SHELL_TRIM);
	shell.setLayout(new FillLayout());
	shell.setImage(imageManager.get(ImageManager.ICON_DISK));
	setStandardWindowTitle();
	shell.addDisposeListener(new DisposeListener() {
			public void widgetDisposed(DisposeEvent event) {
				dispose(event);
			}
		});
		
	CTabFolder tabFolder = new CTabFolder(shell, SWT.BOTTOM);
	new DiskExplorerTab(tabFolder, disks, imageManager, this);
	diskMapTabs = new DiskMapTab[disks.length];
	for (int i=0; i<disks.length; i++) {
		if (disks[i].supportsDiskMap()) {
			diskMapTabs[i] = new DiskMapTab(tabFolder, disks[i]);
		}
	}
	diskInfoTab = new DiskInfoTab(tabFolder, disks);
	tabFolder.setSelection(tabFolder.getItems()[0]);
	
	
	shell.open();
}
 
Example 5
Project: Hydrograph   File: PropertyDialogBuilder.java   View source code 6 votes vote down vote up
/**
 * Adds the tab folder to property window.
 * 
 * @return the tab folder
 */
public CTabFolder addTabFolderToPropertyWindow(){
	CTabFolder tabFolder = new CTabFolder(container, SWT.NONE);
	
	GridData tabFolderGridData = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
	
	tabFolder.setLayoutData(tabFolderGridData);
	tabFolder.addListener(SWT.FOCUSED,getMouseClickListener() );
      
	container.addControlListener(new ControlAdapter() {
		@Override
		public void controlResized(ControlEvent e) {
			tabFolderGridData.heightHint = container.getBounds().height - 500;
		}
	});
	
	tabFolder.addListener(SWT.FOCUSED,getMouseClickListener() );
	
	return tabFolder;
}
 
Example 6
Project: smarthome-cep-demonstrator   File: SmarthomeEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
 * @generated
 */
   protected void hideTabs() {
	if (getPageCount() <= 1) {
		setPageText(0, "");
		if (getContainer() instanceof CTabFolder) {
			((CTabFolder)getContainer()).setTabHeight(1);
			Point point = getContainer().getSize();
			getContainer().setSize(point.x, point.y + 6);
		}
	}
}
 
Example 7
Project: smarthome-cep-demonstrator   File: SmarthomeEditor.java   View source code 5 votes vote down vote up
/**
 * If there is more than one page in the multi-page editor part,
 * this shows the tabs at the bottom.
 * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
 * @generated
 */
   protected void showTabs() {
	if (getPageCount() > 1) {
		setPageText(0, getString("_UI_SelectionPage_label"));
		if (getContainer() instanceof CTabFolder) {
			((CTabFolder)getContainer()).setTabHeight(SWT.DEFAULT);
			Point point = getContainer().getSize();
			getContainer().setSize(point.x, point.y - 6);
		}
	}
}
 
Example 8
Project: SimQRI   File: MetamodelEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void hideTabs() {
	if (getPageCount() <= 1) {
		setPageText(0, "");
		if (getContainer() instanceof CTabFolder) {
			((CTabFolder)getContainer()).setTabHeight(1);
			Point point = getContainer().getSize();
			getContainer().setSize(point.x, point.y + 6);
		}
	}
}
 
Example 9
Project: SimQRI   File: MetamodelEditor.java   View source code 5 votes vote down vote up
/**
 * If there is more than one page in the multi-page editor part,
 * this shows the tabs at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void showTabs() {
	if (getPageCount() > 1) {
		setPageText(0, getString("_UI_SelectionPage_label"));
		if (getContainer() instanceof CTabFolder) {
			((CTabFolder)getContainer()).setTabHeight(SWT.DEFAULT);
			Point point = getContainer().getSize();
			getContainer().setSize(point.x, point.y - 6);
		}
	}
}
 
Example 10
Project: gemoc-studio-modeldebugging   File: TracingannotationsEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void hideTabs() {
	if (getPageCount() <= 1) {
		setPageText(0, "");
		if (getContainer() instanceof CTabFolder) {
			((CTabFolder)getContainer()).setTabHeight(1);
			Point point = getContainer().getSize();
			getContainer().setSize(point.x, point.y + 6);
		}
	}
}
 
Example 11
Project: neoscada   File: ProtocolEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void hideTabs ()
{
    if ( getPageCount () <= 1 )
    {
        setPageText ( 0, "" ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( 1 );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y + 6 );
        }
    }
}
 
Example 12
Project: OCCI-Studio   File: PlatformEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void hideTabs() {
	if (getPageCount() <= 1) {
		setPageText(0, "");
		if (getContainer() instanceof CTabFolder) {
			((CTabFolder)getContainer()).setTabHeight(1);
			Point point = getContainer().getSize();
			getContainer().setSize(point.x, point.y + 6);
		}
	}
}
 
Example 13
Project: neoscada   File: ChartEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
protected void hideTabs ()
{
    if ( getPageCount () <= 1 )
    {
        setPageText ( 0, "" ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( 1 );
            final Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y + 6 );
        }
    }
}
 
Example 14
Project: neoscada   File: ChartEditor.java   View source code 5 votes vote down vote up
/**
 * If there is more than one page in the multi-page editor part,
 * this shows the tabs at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
protected void showTabs ()
{
    if ( getPageCount () > 1 )
    {
        setPageText ( 0, getString ( "_UI_SelectionPage_label" ) ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( SWT.DEFAULT );
            final Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y - 6 );
        }
    }
}
 
Example 15
Project: neoscada   File: FilterAdvancedComposite.java   View source code 5 votes vote down vote up
public FilterAdvancedComposite ( final FilterChangedListener filterChangedListener, final Composite parent, final int style )
{
    // fields
    super ( parent, style );

    // widgets
    this.tabFolder = new CTabFolder ( this, SWT.TOP | SWT.BORDER | SWT.CLOSE );
    this.addOrConditionButton = creteAddOrConditionButton ();
    addOrCondition ();

    // layout
    final GridLayout layout = new GridLayout ( 1, true );
    layout.marginLeft = 6;
    layout.marginRight = 6;
    layout.marginTop = 6;
    layout.marginBottom = 6;
    layout.verticalSpacing = 12;
    this.setLayout ( layout );

    final GridData tabFolderLayoutData = new GridData ();
    tabFolderLayoutData.horizontalAlignment = GridData.FILL;
    tabFolderLayoutData.grabExcessHorizontalSpace = true;
    tabFolderLayoutData.verticalAlignment = GridData.FILL;
    tabFolderLayoutData.grabExcessVerticalSpace = true;
    this.tabFolder.setLayoutData ( tabFolderLayoutData );
    this.tabFolder.setBackgroundMode ( SWT.INHERIT_FORCE );

    final GridData addOrConditionButtonLayoutdata = new GridData ();
    addOrConditionButtonLayoutdata.horizontalAlignment = GridData.END;
    this.addOrConditionButton.setLayoutData ( addOrConditionButtonLayoutdata );
}
 
Example 16
Project: neoscada   File: DetailViewEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void hideTabs ()
{
    if ( getPageCount () <= 1 )
    {
        setPageText ( 0, "" ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( 1 );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y + 6 );
        }
    }
}
 
Example 17
Project: neoscada   File: DetailViewEditor.java   View source code 5 votes vote down vote up
/**
 * If there is more than one page in the multi-page editor part,
 * this shows the tabs at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void showTabs ()
{
    if ( getPageCount () > 1 )
    {
        setPageText ( 0, getString ( "_UI_SelectionPage_label" ) ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( SWT.DEFAULT );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y - 6 );
        }
    }
}
 
Example 18
Project: neoscada   File: EclipseTabProvider.java   View source code 5 votes vote down vote up
public EclipseTabProvider ( final Composite parent )
{
    this.folder = new CTabFolder ( parent, SWT.TOP | SWT.FLAT | SWT.BORDER );
    this.folder.setTabHeight ( 24 );
    this.folder.setLayoutData ( new GridData ( SWT.FILL, SWT.FILL, true, true ) );

    this.mgr = new MenuManager ();
    final Menu menu = this.mgr.createContextMenu ( this.folder );
    this.folder.setMenu ( menu );
}
 
Example 19
Project: neoscada   File: VisualInterfaceEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void hideTabs ()
{
    if ( getPageCount () <= 1 )
    {
        setPageText ( 0, "" ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( 1 );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y + 6 );
        }
    }
}
 
Example 20
Project: OCCI-Studio   File: InfrastructureEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void hideTabs() {
	if (getPageCount() <= 1) {
		setPageText(0, "");
		if (getContainer() instanceof CTabFolder) {
			((CTabFolder)getContainer()).setTabHeight(1);
			Point point = getContainer().getSize();
			getContainer().setSize(point.x, point.y + 6);
		}
	}
}
 
Example 21
Project: neoscada   File: DeploymentEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void hideTabs ()
{
    if ( getPageCount () <= 1 )
    {
        setPageText ( 0, "" ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( 1 );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y + 6 );
        }
    }
}
 
Example 22
Project: neoscada   File: DeploymentEditor.java   View source code 5 votes vote down vote up
/**
 * If there is more than one page in the multi-page editor part,
 * this shows the tabs at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void showTabs ()
{
    if ( getPageCount () > 1 )
    {
        setPageText ( 0, getString ( "_UI_SelectionPage_label" ) ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( SWT.DEFAULT );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y - 6 );
        }
    }
}
 
Example 23
Project: neoscada   File: SetupEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void hideTabs ()
{
    if ( getPageCount () <= 1 )
    {
        setPageText ( 0, "" ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( 1 );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y + 6 );
        }
    }
}
 
Example 24
Project: neoscada   File: SetupEditor.java   View source code 5 votes vote down vote up
/**
 * If there is more than one page in the multi-page editor part,
 * this shows the tabs at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void showTabs ()
{
    if ( getPageCount () > 1 )
    {
        setPageText ( 0, getString ( "_UI_SelectionPage_label" ) ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( SWT.DEFAULT );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y - 6 );
        }
    }
}
 
Example 25
Project: neoscada   File: ProfileEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void hideTabs ()
{
    if ( getPageCount () <= 1 )
    {
        setPageText ( 0, "" ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( 1 );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y + 6 );
        }
    }
}
 
Example 26
Project: OCCI-Studio   File: SlaEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void hideTabs() {
	if (getPageCount() <= 1) {
		setPageText(0, "");
		if (getContainer() instanceof CTabFolder) {
			((CTabFolder)getContainer()).setTabHeight(1);
			Point point = getContainer().getSize();
			getContainer().setSize(point.x, point.y + 6);
		}
	}
}
 
Example 27
Project: neoscada   File: OsgiEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void hideTabs ()
{
    if ( getPageCount () <= 1 )
    {
        setPageText ( 0, "" ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( 1 );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y + 6 );
        }
    }
}
 
Example 28
Project: neoscada   File: OsgiEditor.java   View source code 5 votes vote down vote up
/**
 * If there is more than one page in the multi-page editor part,
 * this shows the tabs at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void showTabs ()
{
    if ( getPageCount () > 1 )
    {
        setPageText ( 0, getString ( "_UI_SelectionPage_label" ) ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( SWT.DEFAULT );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y - 6 );
        }
    }
}
 
Example 29
Project: neoscada   File: WorldEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void hideTabs ()
{
    if ( getPageCount () <= 1 )
    {
        setPageText ( 0, "" ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( 1 );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y + 6 );
        }
    }
}
 
Example 30
Project: neoscada   File: WorldEditor.java   View source code 5 votes vote down vote up
/**
 * If there is more than one page in the multi-page editor part,
 * this shows the tabs at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void showTabs ()
{
    if ( getPageCount () > 1 )
    {
        setPageText ( 0, getString ( "_UI_SelectionPage_label" ) ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( SWT.DEFAULT );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y - 6 );
        }
    }
}
 
Example 31
Project: neoscada   File: MemoryEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void hideTabs ()
{
    if ( getPageCount () <= 1 )
    {
        setPageText ( 0, "" );
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( 1 );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y + 6 );
        }
    }
}
 
Example 32
Project: neoscada   File: MemoryEditor.java   View source code 5 votes vote down vote up
/**
 * If there is more than one page in the multi-page editor part,
 * this shows the tabs at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void showTabs ()
{
    if ( getPageCount () > 1 )
    {
        setPageText ( 0, getString ( "_UI_SelectionPage_label" ) );
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( SWT.DEFAULT );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y - 6 );
        }
    }
}
 
Example 33
Project: neoscada   File: RecipeEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void hideTabs ()
{
    if ( getPageCount () <= 1 )
    {
        setPageText ( 0, "" ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( 1 );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y + 6 );
        }
    }
}
 
Example 34
Project: neoscada   File: RecipeEditor.java   View source code 5 votes vote down vote up
/**
 * If there is more than one page in the multi-page editor part,
 * this shows the tabs at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void showTabs ()
{
    if ( getPageCount () > 1 )
    {
        setPageText ( 0, getString ( "_UI_SelectionPage_label" ) ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( SWT.DEFAULT );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y - 6 );
        }
    }
}
 
Example 35
Project: neoscada   File: InfrastructureEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void hideTabs ()
{
    if ( getPageCount () <= 1 )
    {
        setPageText ( 0, "" ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( 1 );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y + 6 );
        }
    }
}
 
Example 36
Project: neoscada   File: InfrastructureEditor.java   View source code 5 votes vote down vote up
/**
 * If there is more than one page in the multi-page editor part,
 * this shows the tabs at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void showTabs ()
{
    if ( getPageCount () > 1 )
    {
        setPageText ( 0, getString ( "_UI_SelectionPage_label" ) ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( SWT.DEFAULT );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y - 6 );
        }
    }
}
 
Example 37
Project: neoscada   File: SecurityEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void hideTabs ()
{
    if ( getPageCount () <= 1 )
    {
        setPageText ( 0, "" ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( 1 );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y + 6 );
        }
    }
}
 
Example 38
Project: neoscada   File: SecurityEditor.java   View source code 5 votes vote down vote up
/**
 * If there is more than one page in the multi-page editor part,
 * this shows the tabs at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void showTabs ()
{
    if ( getPageCount () > 1 )
    {
        setPageText ( 0, getString ( "_UI_SelectionPage_label" ) ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( SWT.DEFAULT );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y - 6 );
        }
    }
}
 
Example 39
Project: neoscada   File: GlobalizeEditor.java   View source code 5 votes vote down vote up
/**
 * If there is just one page in the multi-page editor part,
 * this hides the single tab at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void hideTabs ()
{
    if ( getPageCount () <= 1 )
    {
        setPageText ( 0, "" ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( 1 );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y + 6 );
        }
    }
}
 
Example 40
Project: neoscada   File: GlobalizeEditor.java   View source code 5 votes vote down vote up
/**
 * If there is more than one page in the multi-page editor part,
 * this shows the tabs at the bottom.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void showTabs ()
{
    if ( getPageCount () > 1 )
    {
        setPageText ( 0, getString ( "_UI_SelectionPage_label" ) ); //$NON-NLS-1$
        if ( getContainer () instanceof CTabFolder )
        {
            ( (CTabFolder)getContainer () ).setTabHeight ( SWT.DEFAULT );
            Point point = getContainer ().getSize ();
            getContainer ().setSize ( point.x, point.y - 6 );
        }
    }
}