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


Java IContentOutlinePage类代码示例

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


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

示例1: openOutlineView

import org.eclipse.ui.views.contentoutline.IContentOutlinePage; //导入依赖的package包/类
protected void openOutlineView() throws PartInitException, InterruptedException {
	outlineView = editor.getEditorSite().getPage().showView("org.eclipse.ui.views.ContentOutline");
	executeAsyncDisplayJobs();
	Object adapter = editor.getAdapter(IContentOutlinePage.class);
	assertTrue(adapter instanceof OutlinePage);
	outlinePage = new SyncableOutlinePage((OutlinePage) adapter);
	outlinePage.resetSyncer();
	try {
		outlinePage.waitForUpdate(EXPECTED_TIMEOUT);
	} catch (TimeoutException e) {
		System.out.println("Expected timeout exceeded: " + EXPECTED_TIMEOUT);// timeout is OK here
	}
	treeViewer = outlinePage.getTreeViewer();
	assertSelected(treeViewer);
	assertExpanded(treeViewer);
	assertTrue(treeViewer.getInput() instanceof IOutlineNode);
	IOutlineNode rootNode = (IOutlineNode) treeViewer.getInput();
	List<IOutlineNode> children = rootNode.getChildren();
	assertEquals(1, children.size());
	modelNode = children.get(0);
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:22,代码来源:AbstractOutlineWorkbenchTest.java

示例2: getAdapter

import org.eclipse.ui.views.contentoutline.IContentOutlinePage; //导入依赖的package包/类
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
 * @generated
 */
   @SuppressWarnings("rawtypes")
   @Override
   public Object getAdapter(Class key) {
	if (key.equals(IContentOutlinePage.class)) {
		return showOutlineView() ? getContentOutlinePage() : null;
	}
	else if (key.equals(IPropertySheetPage.class)) {
		return getPropertySheetPage();
	}
	else if (key.equals(IGotoMarker.class)) {
		return this;
	}
	else {
		return super.getAdapter(key);
	}
}
 
开发者ID:IncQueryLabs,项目名称:smarthome-cep-demonstrator,代码行数:23,代码来源:SmarthomeEditor.java

示例3: getAdapter

import org.eclipse.ui.views.contentoutline.IContentOutlinePage; //导入依赖的package包/类
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public Object getAdapter(Class key) {
	if (key.equals(IContentOutlinePage.class)) {
		return showOutlineView() ? getContentOutlinePage() : null;
	}
	else if (key.equals(IPropertySheetPage.class)) {
		return getPropertySheetPage();
	}
	else if (key.equals(IGotoMarker.class)) {
		return this;
	}
	else {
		return super.getAdapter(key);
	}
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:23,代码来源:MetamodelEditor.java

示例4: getAdapter

import org.eclipse.ui.views.contentoutline.IContentOutlinePage; //导入依赖的package包/类
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("rawtypes")
@Override
public Object getAdapter(Class key) {
	if (key.equals(IContentOutlinePage.class)) {
		return showOutlineView() ? getContentOutlinePage() : null;
	}
	else if (key.equals(IPropertySheetPage.class)) {
		return getPropertySheetPage();
	}
	else if (key.equals(IGotoMarker.class)) {
		return this;
	}
	else {
		return super.getAdapter(key);
	}
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:23,代码来源:TracingannotationsEditor.java

示例5: getAdapter

import org.eclipse.ui.views.contentoutline.IContentOutlinePage; //导入依赖的package包/类
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:28,代码来源:ProtocolEditor.java

示例6: getAdapter

import org.eclipse.ui.views.contentoutline.IContentOutlinePage; //导入依赖的package包/类
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( final Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:29,代码来源:ChartEditor.java

示例7: getAdapter

import org.eclipse.ui.views.contentoutline.IContentOutlinePage; //导入依赖的package包/类
public Object getAdapter(Class adapter) {

		if (adapter == GraphicalViewer.class || adapter == EditPartViewer.class)
			return getGraphicalViewer();
		else if (adapter == CommandStack.class)
			return getCommandStack();
		else if (adapter == EditDomain.class)
			return getEditDomain();
		else if (adapter == ActionRegistry.class)
			return getActionRegistry();
		else if (adapter == IPropertySheetPage.class)
			return new PropertiesView(true);
		else if (adapter == IContentOutlinePage.class) {
			return new GW4EOutlinePage();
		} else if (adapter == ZoomManager.class)
			return ((ScalableRootEditPart) getGraphicalViewer().getRootEditPart()).getZoomManager();
		return super.getAdapter(adapter);
	}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:19,代码来源:GW4EEditor.java


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