org.eclipse.swt.custom.CTabFolder Java Examples

The following examples show how to use org.eclipse.swt.custom.CTabFolder. 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: TabSetTest.java    From pentaho-kettle with Apache License 2.0 7 votes vote down vote up
/**
 * PDI-14411 NPE on Ctrl-W
 */
@Test
public void testCloseFirstTabOfTwo() {
  final CTabFolder cTabFolder = mock( CTabFolder.class );
  final TabSet tabSet = createTabSet( cTabFolder );

  final CTabItem cTabItem1 = mock( CTabItem.class );
  TabItem firstItem = createItem( tabSet, "first", "1st", cTabItem1 );
  final CTabItem cTabItem2 = mock( CTabItem.class );
  TabItem secondItem = createItem( tabSet, "second", "2nd", cTabItem2 );

  assertEquals( 0, tabSet.indexOf( firstItem ) );
  assertEquals( 1, tabSet.indexOf( secondItem ) );
  tabSet.setSelected( firstItem );
  assertEquals( 0, tabSet.getSelectedIndex() );

  wireDisposalSelection( cTabFolder, tabSet, cTabItem1, cTabItem2 );

  firstItem.dispose();
  assertEquals( -1, tabSet.indexOf( firstItem ) );
  assertNotNull( "selected is null", tabSet.getSelected() );
}
 
Example #2
Source File: GamlEditor.java    From gama with GNU General Public License v3.0 6 votes vote down vote up
private void configureTabFolder(final Composite compo) {
	Composite c = compo;
	while (c != null) {
		if (c instanceof CTabFolder) {
			break;
		}
		c = c.getParent();
	}
	if (c != null) {
		final CTabFolder folder = (CTabFolder) c;
		folder.setMaximizeVisible(true);
		folder.setMinimizeVisible(true);
		folder.setMinimumCharacters(10);
		folder.setMRUVisible(true);
		folder.setTabHeight(16);
	}

}
 
Example #3
Source File: DiskWindow.java    From AppleCommander with GNU General Public License v2.0 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
Source File: CommandTerminalDebugView.java    From typescript.java with MIT License 6 votes vote down vote up
@Override
public void createPartControl(Composite parent) {
	Composite p = new Composite(parent, SWT.NONE);
	p.setLayout(new GridLayout());
	p.setLayoutData(new GridData(GridData.FILL_BOTH));

	folder = new CTabFolder(p, SWT.NONE);
	folder.setFont(parent.getFont());
	folder.setLayout(new GridLayout());
	folder.setLayoutData(new GridData(GridData.FILL_BOTH));

	// Text tab
	terminalText = addTab(folder, "Text");
	// ANSI tab
	terminalANSI = addTab(folder, "ANSI");

}
 
Example #5
Source File: GamaPreferencesView.java    From gama with GNU General Public License v3.0 6 votes vote down vote up
private void buildContents() {
	tabFolder = new CTabFolder(shell, SWT.TOP | SWT.NO_TRIM);
	tabFolder.setBorderVisible(true);
	tabFolder.setBackgroundMode(SWT.INHERIT_DEFAULT);
	tabFolder.setMRUVisible(true);
	tabFolder.setSimple(false); // rounded tabs
	tabFolder.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true, 2, 1));
	final Map<String, Map<String, List<Pref>>> prefs = GamaPreferences.organizePrefs();
	for (final String tabName : prefs.keySet()) {
		final CTabItem item = new CTabItem(tabFolder, SWT.NONE);
		item.setFont(GamaFonts.getNavigHeaderFont());
		item.setText(tabName);
		item.setImage(prefs_images.get(tabName));
		item.setShowClose(false);
		buildContentsFor(item, prefs.get(tabName));
	}
	buildButtons();
	shell.layout();
}
 
Example #6
Source File: CodeSelectorFactory.java    From elexis-3-core with Eclipse Public License 1.0 6 votes vote down vote up
public static void makeTabs(CTabFolder ctab, IViewSite site, String point){
	String settings = null;
	if (point.equals(ExtensionPointConstantsUi.VERRECHNUNGSCODE)) {
		settings = CoreHub.userCfg.get(Preferences.USR_SERVICES_DIAGNOSES_SRV, null);
	} else if (point.equals(ExtensionPointConstantsUi.DIAGNOSECODE)) {
		settings = CoreHub.userCfg.get(Preferences.USR_SERVICES_DIAGNOSES_DIAGNOSE, null);
	}
	
	java.util.List<IConfigurationElement> list = Extensions.getExtensions(point);
	if (settings == null) {
		addAllTabs(list, ctab, point);
	} else {
		addUserSpecifiedTabs(list, settings, ctab, point);
	}
	
	if (ctab.getItemCount() > 0) {
		ctab.setSelection(0);
	}
}
 
Example #7
Source File: ERDiagramMultiPageEditor.java    From ermasterr with Apache License 2.0 6 votes vote down vote up
private void addMouseListenerToTabFolder() {
    final CTabFolder tabFolder = (CTabFolder) getContainer();

    tabFolder.addMouseListener(new MouseAdapter() {

        @Override
        public void mouseDoubleClick(final MouseEvent mouseevent) {

            final Category category = getPageCategory(getActivePage());

            if (category != null) {
                final CategoryNameChangeDialog dialog = new CategoryNameChangeDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), category);

                if (dialog.open() == IDialogConstants.OK_ID) {
                    final ChangeCategoryNameCommand command = new ChangeCategoryNameCommand(diagram, category, dialog.getCategoryName());
                    execute(command);
                }
            }

            super.mouseDoubleClick(mouseevent);
        }
    });
}
 
Example #8
Source File: TabSetTest.java    From pentaho-kettle with Apache License 2.0 6 votes vote down vote up
/**
 * Ctrl-W on first and second in succession would close first and third
 */
@Test
public void testCloseFirstTabOfThree() {
  final CTabFolder cTabFolder = mock( CTabFolder.class );
  final TabSet tabSet = createTabSet( cTabFolder );

  final CTabItem cTabItem1 = mock( CTabItem.class );
  TabItem firstItem = createItem( tabSet, "first", "1st", cTabItem1 );
  final CTabItem cTabItem2 = mock( CTabItem.class );
  TabItem secondItem = createItem( tabSet, "second", "2nd", cTabItem2 );
  TabItem thirdItem = createItem( tabSet, "third", "3rd", mock( CTabItem.class ) );

  assertEquals( 0, tabSet.indexOf( firstItem ) );
  assertEquals( 1, tabSet.indexOf( secondItem ) );
  assertEquals( 2, tabSet.indexOf( thirdItem ) );

  wireDisposalSelection( cTabFolder, tabSet, cTabItem1, cTabItem2 );
  tabSet.setSelected( firstItem );
  assertEquals( 0, tabSet.getSelectedIndex() );

  firstItem.dispose();
  assertEquals( "should select second", secondItem, tabSet.getSelected() );
}
 
Example #9
Source File: TransHistoryDelegate.java    From pentaho-kettle with Apache License 2.0 6 votes vote down vote up
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 ) );
  }
}
 
Example #10
Source File: JobHistoryDelegate.java    From pentaho-kettle with Apache License 2.0 6 votes vote down vote up
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 ) );
  }
}
 
Example #11
Source File: EditorComposite.java    From RepDev with GNU General Public License v3.0 6 votes vote down vote up
public void updateModified(){
	CTabFolder folder = (CTabFolder)getParent();
	Object loc;

	if( file.isLocal())
		loc = file.getDir();
	else
		loc = file.getSym();

	for( CTabItem cur : folder.getItems())
		if( cur.getData("file") != null && ((SymitarFile)cur.getData("file")).equals(file) && cur.getData("loc").equals(loc)  )
			if( modified && ( cur.getData("modified") == null || !((Boolean)cur.getData("modified")))){
				cur.setData("modified", true);
				cur.setText(cur.getText() + " *");
			}
			else if( !modified && ( cur.getData("modified") == null || ((Boolean)cur.getData("modified")))){
				cur.setData("modified", false);
				cur.setText(cur.getText().substring(0,cur.getText().length() - 2));
			}
}
 
Example #12
Source File: TLAEditorAndPDFViewer.java    From tlaplus with MIT License 6 votes vote down vote up
@Override
public int addPage(IFormPage page) throws PartInitException {
	final int idx = super.addPage(page);
	
	if (getContainer() instanceof CTabFolder) {
		final CTabFolder cTabFolder = (CTabFolder) getContainer();
		// If there is only the editor but no PDF shown next to it, the tab bar of the
		// ctabfolder just wastes screen estate.
		if (cTabFolder.getItemCount() <= 1) {
			cTabFolder.setTabHeight(0);
		} else {
			cTabFolder.setTabHeight(-1);
		}
	}
	return idx;
}
 
Example #13
Source File: ERDiagramMultiPageEditor.java    From ermaster-b with Apache License 2.0 6 votes vote down vote up
private void addMouseListenerToTabFolder() {
	CTabFolder tabFolder = (CTabFolder) this.getContainer();

	tabFolder.addMouseListener(new MouseAdapter() {

		@Override
		public void mouseDoubleClick(MouseEvent mouseevent) {
			Category category = getCurrentPageCategory();

			if (category != null) {
				CategoryNameChangeDialog dialog = new CategoryNameChangeDialog(
						PlatformUI.getWorkbench()
								.getActiveWorkbenchWindow().getShell(),
						category);

				if (dialog.open() == IDialogConstants.OK_ID) {
					ChangeCategoryNameCommand command = new ChangeCategoryNameCommand(
							diagram, category, dialog.getCategoryName());
					execute(command);
				}
			}

			super.mouseDoubleClick(mouseevent);
		}
	});
}
 
Example #14
Source File: StatsView.java    From BiglyBT with GNU General Public License v2.0 6 votes vote down vote up
private void initialize(Composite composite) {
	parent = composite;

	registerPluginViews();

	tabbedMDI = new TabbedMDI(null, VIEW_ID, VIEW_ID, swtView, dataSource);
	tabbedMDI.setDestroyEntriesOnDeactivate(true);
	tabbedMDI.buildMDI(composite);

	CTabFolder folder = tabbedMDI.getTabFolder();
	Label lblClose = new Label(folder, SWT.WRAP);
	lblClose.setText("x");
	lblClose.addListener(SWT.MouseUp, new Listener() {
		@Override
		public void handleEvent(Event event) {
			delete();
		}
	});
	folder.setTopRight(lblClose);

	updateThread = new UpdateThread();
	updateThread.setDaemon(true);
	updateThread.start();

	dataSourceChanged(dataSource);
}
 
Example #15
Source File: WidgetUtils.java    From hop with Apache License 2.0 6 votes vote down vote up
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;
}
 
Example #16
Source File: MemoryEditor.java    From neoscada with Eclipse Public License 1.0 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 #17
Source File: EipEditor.java    From eip-designer with Apache License 2.0 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 #18
Source File: ExtensionsEditor.java    From ifml-editor with MIT License 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 #19
Source File: WorldEditor.java    From neoscada with Eclipse Public License 1.0 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
Source File: OsgiEditor.java    From neoscada with Eclipse Public License 1.0 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 #21
Source File: WorldEditor.java    From neoscada with Eclipse Public License 1.0 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 #22
Source File: TabbedEntry.java    From BiglyBT with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void redraw(Rectangle hitArea) {
	if (Utils.runIfNotSWTThread(() -> this.redraw(hitArea))) {
		return;
	}

	if (swtItem == null || swtItem.isDisposed()) {
		return;
	}
	CTabFolder parent = swtItem.getParent();
	if (parent == null) {
		return;
	}
	parent.redraw(hitArea.x, hitArea.y, hitArea.width, hitArea.height, true);
}
 
Example #23
Source File: ComponentEditor.java    From neoscada with Eclipse Public License 1.0 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 #24
Source File: ConfigurationEditor.java    From neoscada with Eclipse Public License 1.0 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
Source File: ConfigurationEditor.java    From neoscada with Eclipse Public License 1.0 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
Source File: ItemEditor.java    From neoscada with Eclipse Public License 1.0 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 #27
Source File: CoreEditor.java    From ifml-editor with MIT License 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 #28
Source File: WizardBaseDialog.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
protected void createTabToolButtons( CTabFolder tabFolder )
{
	List<IButtonHandler> buttons = wizardBase.getTabToolButtons( );
	if ( buttons.size( ) == 0 )
	{
		return;
	}
	ToolBar toolbar = new ToolBar( tabFolder, SWT.FLAT | SWT.WRAP );
	tabFolder.setTopRight( toolbar );
	for ( IButtonHandler btnHandler : buttons )
	{
		ToolItem btn = new ToolItem( toolbar, SWT.NONE );
		btn.addSelectionListener( this );
		btn.setData( btnHandler );
		if ( btnHandler.getLabel( ) != null )
		{
			btn.setText( btnHandler.getLabel( ) );
		}
		if ( btnHandler.getTooltip( ) != null )
		{
			btn.setToolTipText( btnHandler.getTooltip( ) );
		}
		if ( btnHandler.getIcon( ) != null )
		{
			btn.setImage( btnHandler.getIcon( ) );
		}
	}
}
 
Example #29
Source File: DiskMapTab.java    From AppleCommander with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Construct the DiskMapTab.
 */
public DiskMapTab(CTabFolder tabFolder, FormattedDisk disk) {
	this.disk = disk;

	// these items are reused; need to dispose of them when done!
	freeFill = new Color(tabFolder.getDisplay(), 100,200,100);
	usedFill = new Color(tabFolder.getDisplay(), 200,100,100);
	black = new Color(tabFolder.getDisplay(), 0,0,0);
	gray = new Color(tabFolder.getDisplay(), 50,50,50);
	
	createDiskMapTab(tabFolder);
}
 
Example #30
Source File: DiskExplorerTab.java    From AppleCommander with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create the DISK INFO tab.
 */
public DiskExplorerTab(CTabFolder tabFolder, FormattedDisk[] disks, ImageManager imageManager, DiskWindow diskWindow) {
	this.disks = disks;
	this.shell = tabFolder.getShell();
	this.imageManager = imageManager;
	this.diskWindow = diskWindow;
	
	createFilesTab(tabFolder);
}