本文整理汇总了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);
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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 );
}
}
示例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 );
}
}
示例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);
}