当前位置: 首页>>代码示例>>Java>>正文


Java PageBook类代码示例

本文整理汇总了Java中org.eclipse.ui.part.PageBook的典型用法代码示例。如果您正苦于以下问题:Java PageBook类的具体用法?Java PageBook怎么用?Java PageBook使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PageBook类属于org.eclipse.ui.part包,在下文中一共展示了PageBook类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createControl

import org.eclipse.ui.part.PageBook; //导入依赖的package包/类
/**
 * Creates the Control of this outline page. By default this is a PageBook, which can toggle between a hierarchical Outline and a graphical Thumbnail.
 *
 * @param parent
 *          the parent
 * @see org.eclipse.gef.ui.parts.ContentOutlinePage#createControl(Composite)
 */
@Override
public void createControl(Composite parent) {
  _pageBook = new PageBook(parent, SWT.NONE);
  _outline = getViewer().createControl(_pageBook);
  _overview = new Canvas(_pageBook, SWT.NONE);
  _pageBook.showPage(_outline);
  createOutlineViewer();

  // register listeners
  _selectionSynchronizer.addViewer(getViewer());
  if (_diagramEditor.getWorkbenchPart() != null) {
    _diagramEditor.getWorkbenchPart().addPropertyListener(this);
  }

  initContents();
}
 
开发者ID:eclipse,项目名称:triquetrum,代码行数:24,代码来源:DiagramEditorOutlinePage.java

示例2: createControl

import org.eclipse.ui.part.PageBook; //导入依赖的package包/类
@Override
public void createControl(Composite parent) {
	pagebook = new PageBook(parent, SWT.NULL);
	pagebook.setLayoutData(new GridData(GridData.FILL_BOTH));
	busyLabel = new Table(pagebook, SWT.NONE);
	TableItem item = new TableItem(busyLabel, SWT.NONE);
	item.setText(Messages.ReferenceSearchViewPage_busyLabel);
	busyLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
	control = new Composite(pagebook, SWT.NULL);
	control.setLayoutData(new GridData(GridData.FILL_BOTH));
	control.setSize(100, 100);
	control.setLayout(new FillLayout());
	viewer = new TreeViewer(control, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
	viewer.setContentProvider(contentProvider);
	viewer.setLabelProvider(labelProvider);
	viewer.setSorter(sorter);
	createOpenAndLinkWithEditorHandler();
	IToolBarManager tbm = getSite().getActionBars().getToolBarManager();
	fillToolbar(tbm);
	tbm.update(true);
	pagebook.showPage(control);
	isBusyShowing = false;
	queryListener = createQueryListener();
	NewSearchUI.addQueryListener(queryListener);
}
 
开发者ID:cplutte,项目名称:bts,代码行数:26,代码来源:ReferenceSearchViewPage.java

示例3: createLayouts

import org.eclipse.ui.part.PageBook; //导入依赖的package包/类
private void createLayouts(Composite parent) {
  pageBook = new PageBook(parent, SWT.NONE);

  WebAppDebugModel model = WebAppDebugModel.getInstance();

  treeLayout = new TreeNavigationView(pageBook, SWT.NONE);

  treeLayout.addSelectionChangedListener(new ClearLogViewerEnablementController());
  treeLayout.addSelectionChangedListener(new ClearTerminatedLaunchesEnablementController());
  treeLayout.addSelectionChangedListener(new ReloadServerEnablementController());
  treeLayout.addSelectionChangedListener(new TerminateLaunchEnablementController());

  treeLayout.setInput(model);

  breadcrumbLayout = new BreadcrumbNavigationView(pageBook, SWT.NONE);

  breadcrumbLayout.addSelectionChangedListener(new ClearLogViewerEnablementController());
  breadcrumbLayout.addSelectionChangedListener(new ClearTerminatedLaunchesEnablementController());
  breadcrumbLayout.addSelectionChangedListener(new ReloadServerEnablementController());
  breadcrumbLayout.addSelectionChangedListener(new TerminateLaunchEnablementController());

  breadcrumbLayout.setInput(model);
}
 
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:24,代码来源:WebAppLaunchView.java

示例4: ContentPanel

import org.eclipse.ui.part.PageBook; //导入依赖的package包/类
public ContentPanel(Composite parent, int style) {
  super(parent, style);

  GridLayout layout = new GridLayout();
  layout.marginHeight = 0;
  layout.marginWidth = 0;
  layout.horizontalSpacing = 0;
  layout.verticalSpacing = 0;
  setLayout(layout);
  GridData layoutData = new GridData(SWT.FILL, SWT.FILL, true, true);
  setLayoutData(layoutData);

  pageBook = new PageBook(this, SWT.NONE);
  // pageBook.setLayout(new GridLayout());
  pageBook.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

  EMPTY_PANEL = new Composite(pageBook, SWT.NONE);
  EMPTY_PANEL.setLayout(new GridLayout());
}
 
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:20,代码来源:ContentPanel.java

示例5: createUI

import org.eclipse.ui.part.PageBook; //导入依赖的package包/类
private void createUI(final Composite parent) {

		final Color bgColor = Display.getCurrent().getSystemColor(SWT.COLOR_LIST_BACKGROUND);

		_pageBook = new PageBook(parent, SWT.NONE);
		GridDataFactory.fillDefaults().grab(true, true).applyTo(_pageBook);

		_page_NoBrowser = new Composite(_pageBook, SWT.NONE);
		_page_NoBrowser.setBackground(bgColor);
		GridDataFactory.fillDefaults().grab(true, true).applyTo(_page_NoBrowser);
		GridLayoutFactory.fillDefaults().numColumns(1).applyTo(_page_NoBrowser);
		{
			_txtNoBrowser = new Text(_page_NoBrowser, SWT.MULTI | SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL);
			_txtNoBrowser.setBackground(bgColor);
			GridDataFactory.fillDefaults()//
					.grab(true, true)
					.align(SWT.FILL, SWT.FILL)
					.applyTo(_txtNoBrowser);
		}
	}
 
开发者ID:wolfgang-ch,项目名称:mytourbook,代码行数:21,代码来源:TourLogView.java

示例6: createUI

import org.eclipse.ui.part.PageBook; //导入依赖的package包/类
private void createUI(final Composite parent) {

		_pageBookUI = new PageBook(parent, SWT.NONE);

		_pageNoData = new Composite(_pageBookUI, SWT.NONE);
		GridDataFactory.fillDefaults().grab(true, false).applyTo(_pageNoData);
		GridLayoutFactory.swtDefaults().numColumns(1).applyTo(_pageNoData);
		{
			final Label lblNoData = new Label(_pageNoData, SWT.WRAP);
			GridDataFactory.fillDefaults().grab(true, true).applyTo(lblNoData);
			lblNoData.setText(Messages.Tour_Segmenter_Label_no_chart);
		}

		_pageSegmenter = new Composite(_pageBookUI, SWT.NONE);
		GridLayoutFactory.fillDefaults().spacing(0, 0).applyTo(_pageSegmenter);
		{
			createUI_10_Header(_pageSegmenter);
			createUI_70_Viewer(_pageSegmenter);
		}
	}
 
开发者ID:wolfgang-ch,项目名称:mytourbook,代码行数:21,代码来源:TourSegmenterView.java

示例7: createUI

import org.eclipse.ui.part.PageBook; //导入依赖的package包/类
private void createUI(final Composite parent) {

		_pageBook = new PageBook(parent, SWT.NONE);

		_page_NoTour = UI.createPage(_tk, _pageBook, Messages.UI_Label_TourIsNotSelected);

		_page_InvalidData = _tk.createComposite(_pageBook);
		GridDataFactory.fillDefaults().grab(true, false).applyTo(_page_InvalidData);
		GridLayoutFactory.swtDefaults().applyTo(_page_InvalidData);
		{
			_lblInvalidData = _tk.createLabel(_page_InvalidData, Messages.UI_Label_TourIsNotSelected, SWT.WRAP);
			GridDataFactory.fillDefaults().grab(true, false).applyTo(_lblInvalidData);
		}

		_page_Chart = createUI_10_ChartPage(_pageBook);
	}
 
开发者ID:wolfgang-ch,项目名称:mytourbook,代码行数:17,代码来源:HeartRateVariabilityView.java

示例8: createUI

import org.eclipse.ui.part.PageBook; //导入依赖的package包/类
/**
	 * @param parent
	 */
	private void createUI(final Composite parent) {

		initUI(parent);

		_partContainer = parent;

		_pageBook = new PageBook(parent, SWT.NONE);
		GridDataFactory.fillDefaults().grab(true, true).applyTo(_pageBook);

		_pageNoData = UI.createUI_PageNoData(_pageBook, Messages.TourAnalyzer_Label_NoTourOrChart);

		_pageAnalyzer = new Composite(_pageBook, SWT.NONE);
		GridLayoutFactory.fillDefaults().applyTo(_pageAnalyzer);
		_pageAnalyzer.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_GREEN));
//		_pageAnalyzer.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
	}
 
开发者ID:wolfgang-ch,项目名称:mytourbook,代码行数:20,代码来源:TourChartAnalyzerView.java

示例9: createUI

import org.eclipse.ui.part.PageBook; //导入依赖的package包/类
private void createUI(final Composite parent) {

		_pageBook = new PageBook(parent, SWT.NONE);
		GridDataFactory.fillDefaults().grab(true, true).applyTo(_pageBook);

		_pageNoData = UI.createUI_PageNoData(_pageBook, Messages.UI_Label_no_chart_is_selected);

		_pageNoBrowser = new Composite(_pageBook, SWT.NONE);
		GridDataFactory.fillDefaults().grab(true, true).applyTo(_pageNoBrowser);
		GridLayoutFactory.swtDefaults().numColumns(1).applyTo(_pageNoBrowser);
		_pageNoBrowser.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
		{
			_txtNoBrowser = new Text(_pageNoBrowser, SWT.WRAP | SWT.READ_ONLY);
			GridDataFactory.fillDefaults()//
					.grab(true, true)
					.align(SWT.FILL, SWT.BEGINNING)
					.applyTo(_txtNoBrowser);
			_txtNoBrowser.setText(Messages.UI_Label_BrowserCannotBeCreated);
		}

		_pageContent = new Composite(_pageBook, SWT.NONE);
		GridLayoutFactory.fillDefaults().applyTo(_pageContent);
		{
			createUI_10_Browser(_pageContent);
		}
	}
 
开发者ID:wolfgang-ch,项目名称:mytourbook,代码行数:27,代码来源:TourBlogView.java

示例10: createUI

import org.eclipse.ui.part.PageBook; //导入依赖的package包/类
private void createUI(final Composite parent) {

//		GridLayoutFactory.fillDefaults().applyTo(parent);

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

		GridDataFactory.fillDefaults().grab(true, true).applyTo(_statContainer);
		GridLayoutFactory.fillDefaults().spacing(0, 0).applyTo(_statContainer);
		{
			createUI_10_Toolbar(_statContainer);

			// pagebook: statistics
			_pageBookStatistic = new PageBook(_statContainer, SWT.NONE);
			_pageBookStatistic.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
		}
	}
 
开发者ID:wolfgang-ch,项目名称:mytourbook,代码行数:17,代码来源:StatisticView.java

示例11: createUI_05

import org.eclipse.ui.part.PageBook; //导入依赖的package包/类
private void createUI_05(final Composite parent) {

		final Composite container = new Composite(parent, SWT.NONE);
		GridDataFactory.fillDefaults().grab(true, true).applyTo(container);
		GridLayoutFactory.fillDefaults().numColumns(1).spacing(0, 0).applyTo(container);
//		container.setBackground(_display.getSystemColor(SWT.COLOR_DARK_RED));
		{
			if (_isShowThumbsize || _isShowCustomActionBar) {
				_galleryActionBar = new GalleryActionBar(container, this, _isShowThumbsize, _isShowCustomActionBar);
			}

			_pageBook = new PageBook(container, SWT.NONE);
			GridDataFactory.fillDefaults().grab(true, true).applyTo(_pageBook);
			{
				createUI_20_PageGallery(_pageBook);
				createUI_30_PageDetails(_pageBook);
				createUI_99_PageDefault(_pageBook);
				createUI_40_PageGalleryInfo(_pageBook);
			}
		}

		_photoGalleryTooltip = new PhotoGalleryToolTip(_galleryMT20);
		_photoGalleryTooltip.setReceiveMouseMoveEvent(true);

		_galleryMT20.addItemListener(this);
	}
 
开发者ID:wolfgang-ch,项目名称:mytourbook,代码行数:27,代码来源:ImageGallery.java

示例12: createLayoutSettings

import org.eclipse.ui.part.PageBook; //导入依赖的package包/类
/**
 * Creates the part of the dialog that displays the lists the available
 * layout modes.
 * 
 * @param parent
 *            the parent composite
 * @return the newly created Control
 */
protected Control createLayoutSettings(Composite parent) {
	Composite composite = new Composite(parent, SWT.NONE);
	composite.setFont(parent.getFont());
	GridLayout layout = new GridLayout(2, false);
	composite.setLayout(layout);

	Control layoutOptions = createLayoutOptions(composite);
	GridData data = new GridData(GridData.VERTICAL_ALIGN_BEGINNING);
	layoutOptions.setLayoutData(data);

	book = new PageBook(composite, SWT.NONE);
	book.setFont(composite.getFont());
	data = new GridData(GridData.FILL_BOTH);
	book.setLayoutData(data);

	columnsPanel = createColumnsOptions(book);
	listPanel = createListOptions(book);
	iconsPanel = createIconsOnlyOptions(book);
	detailsPanel = createDetailsOptions(book);

	// Show the right page in the book
	handleLayoutSettingChanged(prefs.getLayoutSetting());

	return composite;
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:34,代码来源:PaletteSettingsDialog.java

示例13: scheduleRandomPageSelection

import org.eclipse.ui.part.PageBook; //导入依赖的package包/类
private void scheduleRandomPageSelection(
  PageBook pageBook, Control page1, Control page2, Runnable page2Changer, int showPageRecurranceNumberToRunChange )
{
  displayHelper.getDisplay().timerExec( 2000, () -> {
    int newShowPageRecurranceNumberToRunChange = showPageRecurranceNumberToRunChange;
    pageBook.showPage( page1 );
    if( new Random().nextBoolean() ) {
      if( showPageRecurranceNumberToRunChange == 0 ) {
        page2Changer.run();
      }
      pageBook.showPage( page2 );
      newShowPageRecurranceNumberToRunChange--;
    }
    scheduleRandomPageSelection( pageBook, page1, page2, page2Changer, newShowPageRecurranceNumberToRunChange );
  } );
}
 
开发者ID:fappel,项目名称:xiliary,代码行数:17,代码来源:ScrollableAdapterFactoryDemo.java

示例14: createControl

import org.eclipse.ui.part.PageBook; //导入依赖的package包/类
public void createControl(Composite parent){
	// initialize outline viewer with model
	pageBook = new PageBook(parent, SWT.NONE);
	outline = getViewer().createControl(pageBook);
	overview = new Canvas(pageBook, SWT.NONE);
	pageBook.showPage(outline);
	
	configureOutlineViewer();
	
	initializeOutlineViewer();
}
 
开发者ID:ShoukriKattan,项目名称:ForgedUI-Eclipse,代码行数:12,代码来源:DiagramOutlinePage2.java

示例15: createDefaultPage

import org.eclipse.ui.part.PageBook; //导入依赖的package包/类
@Override
protected IPage createDefaultPage(PageBook book)
{
	MessagePage defaultPage = new MessagePage();
	initPage(defaultPage);
	defaultPage.setMessage(m_defaultMsg);
	defaultPage.createControl(book);
	setPartName(m_defaultTitle);
	return defaultPage;
}
 
开发者ID:Spacecraft-Code,项目名称:SPELL,代码行数:11,代码来源:ProcedurePageView.java


注:本文中的org.eclipse.ui.part.PageBook类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。