use of com.biglybt.ui.swt.mdi.TabbedMDI in project BiglyBT by BiglySoftware.
the class MainWindowImpl method initMDI.
private BaseMDI initMDI() {
SWTSkinObject skinObject = skin.getSkinObject(SkinConstants.VIEWID_MDI);
if (null != skinObject) {
BaseMDI mdi = Utils.isAZ2UI() ? new TabbedMDI() : new SideBar();
mdi.buildMDI(skinObject);
MainMDISetup.setupSideBar(mdi);
return (mdi);
}
return (null);
}
use of com.biglybt.ui.swt.mdi.TabbedMDI in project BiglyBT by BiglySoftware.
the class StatsView method initialize.
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);
}
Aggregations