本文整理汇总了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;
}
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
}
示例7: createPage
import org.eclipse.ui.part.Page; //导入依赖的package包/类
public Page createPage(Object object) {
SVNHistoryPage page = new SVNHistoryPage(object);
return page;
}
示例8: createMyPage
import org.eclipse.ui.part.Page; //导入依赖的package包/类
@Override
protected Page createMyPage(String procedureId, String name)
{
return new OutlinePage(procedureId);
}
示例9: createPage
import org.eclipse.ui.part.Page; //导入依赖的package包/类
@Override
protected Page createPage(IEditorPart editor, PlanEditorModel model) {
return new PlanAdvisorPage(editor, model);
}
示例10: createPage
import org.eclipse.ui.part.Page; //导入依赖的package包/类
@Override
protected Page createPage(IEditorPart editor, PlanEditorModel model) {
return new InconsPage(editor, model);
}
示例11: createPage
import org.eclipse.ui.part.Page; //导入依赖的package包/类
@Override
protected Page createPage(IEditorPart editor, PlanEditorModel model) {
return new ProfileEffectsAndRequirementsPage(getViewSite(), editor, model);
}
示例12: createPageForEditor
import org.eclipse.ui.part.Page; //导入依赖的package包/类
@Override
protected Page createPageForEditor(IEditorPart editor) {
return CommonUtils.getAdapter(editor, ProfileTreePage.class);
}
示例13: createPageForView
import org.eclipse.ui.part.Page; //导入依赖的package包/类
@Override
protected Page createPageForView(IViewPart view) {
return null;
}
示例14: createPage
import org.eclipse.ui.part.Page; //导入依赖的package包/类
@Override
protected Page createPage(IEditorPart editor, PlanEditorModel model) {
return new ConstraintsPage(editor, model);
}
示例15: createPageForEditor
import org.eclipse.ui.part.Page; //导入依赖的package包/类
@Override
protected Page createPageForEditor(IEditorPart editorPart) {
return new DetailPage(editorPart, getViewSite());
}