有关 eclipse 中站点概念的问题(尤其是 iviewsite)

发布于 2024-12-04 12:06:46 字数 606 浏览 1 评论 0原文

1)有人可以解释一下什么是网站吗?我似乎无法在任何地方找到这个术语的正确定义。

2) IViewSite 接口的用途是什么?它没有任何子级(类或接口,如文档中指定的那样。该接口不应该被扩展。如果没有一个类来实现这两个方法,为什么要定义这两个方法?

IViewSite 的目的是什么变量,因为该变量没有任何属性,并且只有纯虚拟方法?

似乎找不到具体的解释。

我已经浏览了文档,但我认为在进一步记录后 我可能已经发现了什么一个网站是:

与工作台部件(视图或编辑器)关联的对象 通过 init() 方法

但是该站点的引用到底发生了什么?我不知道,因为例如 Viewpart 没有存储对站点对象的引用的属性。如果有人有图表或其他东西的链接,我们将不胜感激。

LE:是对存储在某种寄存器中的站点对象的引用以及对

LE2 www@eclipsezone@com/eclipse/forums/t92910.html 的对象的引用 “ 调用 IViewPart.init 方法来初始化视图的上下文。传递一个 IViewSite 对象,并传递包含获取包含页面、窗口和其他服务的方法。” 既然没有实现类,那有什么用?..

1) Can somebody please explain what a site is? I can't seem to find a proper definition of this term anywhere.

2) What is the purpose of the IViewSite interface?. It does not have any children (class or interface, as specified in the docs. This interface is not supposed to be extended. why define those two methods if there isn't a single class that implements them?

What is the purpose of an IViewSite variable since that variable will not have any properties and it has only pure virtual methods? There's no point in adapting to it either.

I already looked through the docs but I can 't seem to find a concrete explanation.

Ok upon further documenting I think I may have found out what a site is:

an object that gets associated with a workbench part (view or editor)
by means of the init() method

But what exactly happens to that reference of the site? I dont know since Viewpart for example does not have a property that stores the reference to the site object. If anyone has a link to a diagram or something it would be much appreciated.

LE: Is the reference to the site object stored in some kind of register along with the reference to the object that

LE2 www@eclipsezone@com/eclipse/forums/t92910.html
" The IViewPart.init method is called to initialize the context for the view. An IViewSite object is passed, and contains methods to get the containing page, window, and other services is passed. " What is the use since there is no implementing class?..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

删除→记忆 2024-12-11 12:06:46

一个实现类,它只是不在您的 Java 搜索范围内(在 JavaDoc 生成期间也没有找到,但它仍然存在)。您也可以在 eclipse.org 本身的论坛中提问。

There is an implementing class, it's just not within scope of your Java Search (nor found during the JavaDoc generation, but nevertheless it exists). You could also ask in the forums at eclipse.org itself.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文