如果IViewSite类没有任何子节点,getViewSite()。getWorkbenchWindow()如何有意义?

时间:2022-08-02 22:44:31

I read in the docs that IViewSite is a children-less interface, so how can an object of type IViewSite execute the getWorkbenchWindow() method if it does not have any child class to implement it?

我在文档中读到IViewSite是一个无子接口,所以如果没有任何子类来实现它,IViewSite类型的对象怎么能执行getWorkbenchWindow()方法呢?

(In the docs it says that this class is not supposed to be implemented by clients; but it does not have any other premade children)

(在文档中它说这个类不应该由客户实现;但它没有任何其他预制的孩子)

1 个解决方案

#1


0  

Look at the type hierarchy of IViewSite (Open the class, then hit CTRL-T). It will show you an implementation class org.eclipse.ui.internal.ViewSite. The docs basically say that this should not concern you.

查看IViewSite的类型层次结构(打开该类,然后按CTRL-T)。它将向您显示一个实现类org.eclipse.ui.internal.ViewSite。文档基本上说这不应该关注你。

#1


0  

Look at the type hierarchy of IViewSite (Open the class, then hit CTRL-T). It will show you an implementation class org.eclipse.ui.internal.ViewSite. The docs basically say that this should not concern you.

查看IViewSite的类型层次结构(打开该类,然后按CTRL-T)。它将向您显示一个实现类org.eclipse.ui.internal.ViewSite。文档基本上说这不应该关注你。