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


Java Page类代码示例

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


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

示例1: registerOutlineSwitchAction

import org.eclipse.ui.part.Page; //导入依赖的package包/类
protected void registerOutlineSwitchAction( )
{
	if ( registered == true )
		return;
	// Register the switch action onto outline page
	Page reportMultiBookPage = (Page) ( (MultiPageReportEditor) getEditor( ) ).getOutlinePage( );
	if ( reportMultiBookPage.getSite( ) != null )
	{
		if ( reportMultiBookPage.getSite( )
				.getActionBars( )
				.getMenuManager( )
				.find( getOutlineSwitchAction( ).getId( ) ) == null )
			reportMultiBookPage.getSite( )
					.getActionBars( )
					.getMenuManager( )
					.add( getOutlineSwitchAction( ) );
		registered = true;
	}
}
 
开发者ID:eclipse,项目名称:birt,代码行数:20,代码来源:ReportXMLSourceEditorFormPage.java

示例2: doCreatePage

import org.eclipse.ui.part.Page; //导入依赖的package包/类
@Override
protected PageRec doCreatePage(IWorkbenchPart part)
{
	// Get the view
	IProcedureView view = (IProcedureView) part;
	// Create the page
	Page page = createMyPage(view.getProcId(), view.getProcName());
	initPage(page);
	page.createControl(getPageBook());
	return new PageRec(part, page);
}
 
开发者ID:Spacecraft-Code,项目名称:SPELL,代码行数:12,代码来源:ProcedurePageView.java

示例3: createMyPage

import org.eclipse.ui.part.Page; //导入依赖的package包/类
/**************************************************************************
 * 
 *************************************************************************/
@Override
protected Page createMyPage(String procedureId, String name)
{
	IProcedureManager mgr = (IProcedureManager) ServiceManager.get(IProcedureManager.class);
	return new WatchVariablesPage(mgr.getProcedure(procedureId), this);
}
 
开发者ID:Spacecraft-Code,项目名称:SPELL,代码行数:10,代码来源:WatchVariablesView.java

示例4: doCreatePage

import org.eclipse.ui.part.Page; //导入依赖的package包/类
/**
* Implement the abstract method declared in PageBookView.
* @param part the associated editor
* @return if the PageBook was disposed, return null; otherwise return a new page record
*/
  @Override
  protected PageRec doCreatePage(IWorkbenchPart part) {
  	PageBook pageBook = getPageBook();
if (pageBook.isDisposed()) {
	return null;
}
IEditorPart editor = (IEditorPart)part;
PlanEditorModel model = CommonUtils.getAdapter(part, PlanEditorModel.class);
Page page = createPage(editor, model);
initPage(page);
UndoRedoUtils.setupUndoRedo(page.getSite().getActionBars(), getSite(), model.getUndoContext());
page.createControl(pageBook);
      return new PageRec(part, page);
  }
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:20,代码来源:PlanPageBookView.java

示例5: createPage

import org.eclipse.ui.part.Page; //导入依赖的package包/类
/**
 * If the editor has a TemplatePlanPage adapter, return it; otherwise create and return a
 * default page for the page book.
 * Implements the method from Eclipse class PageBookView that was left undeclared in 
 * abstract superclass PlanPageBookView.
 * @param editor the plan editor part
 * @param model the model being edited
 * @return
 */
@Override
protected Page createPage(IEditorPart editor, PlanEditorModel model) {
	TemplatePlanPage templatePlanPage = CommonUtils.getAdapter(editor, TemplatePlanPage.class);			
	if(templatePlanPage == null) {
		return (Page) createDefaultPage(this.getPageBook());
	}
	// listen to the selection provider to determine if the tree viewer's selection needs to be updated
	return templatePlanPage;
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:19,代码来源:TemplatePlanView.java

示例6: removeOutlineSwitchAction

import org.eclipse.ui.part.Page; //导入依赖的package包/类
private void removeOutlineSwitchAction( )
{
	Page reportMultiBookPage = (Page) ( (MultiPageReportEditor) getEditor( ) ).getOutlinePage( );
	if ( reportMultiBookPage.getSite( ) != null )
	{
		reportMultiBookPage.getSite( )
				.getActionBars( )
				.getMenuManager( )
				.remove( switchAction_ID );
		registered = false;
	}
}
 
开发者ID:eclipse,项目名称:birt,代码行数:13,代码来源:ReportXMLSourceEditorFormPage.java

示例7: createPage

import org.eclipse.ui.part.Page; //导入依赖的package包/类
public Page createPage(Object object) {
  SVNHistoryPage page = new SVNHistoryPage(object);
  return page;
}
 
开发者ID:subclipse,项目名称:subclipse,代码行数:5,代码来源:SVNHistoryPageSource.java

示例8: createMyPage

import org.eclipse.ui.part.Page; //导入依赖的package包/类
@Override
protected Page createMyPage(String procedureId, String name)
{
	return new OutlinePage(procedureId);
}
 
开发者ID:Spacecraft-Code,项目名称:SPELL,代码行数:6,代码来源:OutlineView.java

示例9: createPage

import org.eclipse.ui.part.Page; //导入依赖的package包/类
@Override
protected Page createPage(IEditorPart editor, PlanEditorModel model) {
	return new PlanAdvisorPage(editor, model);
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:5,代码来源:PlanAdvisorView.java

示例10: createPage

import org.eclipse.ui.part.Page; //导入依赖的package包/类
@Override
protected Page createPage(IEditorPart editor, PlanEditorModel model) {
	return new InconsPage(editor, model);
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:5,代码来源:InconsView.java

示例11: createPage

import org.eclipse.ui.part.Page; //导入依赖的package包/类
@Override
protected Page createPage(IEditorPart editor, PlanEditorModel model) {
	return new ProfileEffectsAndRequirementsPage(getViewSite(), editor, model);
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:5,代码来源:ProfileEffectsAndRequirementsView.java

示例12: createPageForEditor

import org.eclipse.ui.part.Page; //导入依赖的package包/类
@Override
protected Page createPageForEditor(IEditorPart editor) {
	return CommonUtils.getAdapter(editor, ProfileTreePage.class);
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:5,代码来源:ProfileTreeView.java

示例13: createPageForView

import org.eclipse.ui.part.Page; //导入依赖的package包/类
@Override
protected Page createPageForView(IViewPart view) {
	return null;
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:5,代码来源:ProfileTreeView.java

示例14: createPage

import org.eclipse.ui.part.Page; //导入依赖的package包/类
@Override
protected Page createPage(IEditorPart editor, PlanEditorModel model) {
    return new ConstraintsPage(editor, model);
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:5,代码来源:ConstraintsView.java

示例15: createPageForEditor

import org.eclipse.ui.part.Page; //导入依赖的package包/类
@Override
protected Page createPageForEditor(IEditorPart editorPart) {
	return new DetailPage(editorPart, getViewSite());
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:5,代码来源:DetailView.java


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