在 Squeak/Pharo Smalltalk 中显示继承的方法

发布于 2024-08-13 03:32:34 字数 188 浏览 4 评论 0原文

我熟悉 VisualWorks 和 Dolphin 版本的 Smalltalk,但以前没有使用过 Squeak。我只是在熟悉 Pharo,它是 Squeak 的“清理版”分支。

我习惯于使用类浏览器中的功能来仅显示类实现的方法,或者同时显示继承的方法和实现的方法。

Squeak 中是否缺少这个有用的功能,或者我只是无法找到它?

I'm familiar with the VisualWorks and Dolphin versions of Smalltalk, but have not previously used Squeak. I'm just familiarising myself with Pharo, which is a 'cleaned up' fork of Squeak.

I'm used to having the facility in the Class Browser to show either only the methods implemented by a class or both the methods inherited and the methods implemented.

Is this useful facility missing in Squeak, or have I just been unable to find it?

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

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

发布评论

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

评论(3

时光暖心i 2024-08-20 03:32:34

您可以双击任何类来打开该特定类的层次结构浏览器。工具栏中的“层次结构”按钮和菜单项“浏览层次结构”(Ctrl+H) 打开相同的视图。

继承浏览器向您显示当前所选方法的分层实现。单击工具栏中的继承按钮。

此外,还有一个协议浏览器,它可以一起显示一个类的所有方法和超级方法。要打开此浏览器,请在类的上下文菜单中选择浏览协议 (Ctrl+Shift+P)。

You can double-click on any class to open a Hierarchy Browser on that particular class. The hierarchy button in the toolbar and the menu entry browse hierarchy (Ctrl+H) open the same view.

There is the Inheritance Browser that shows you the hierarchal implementations of the currently selected method. Click on the inheritance button in the toolbar.

Furthermore there is the Protocol Browser that displays all methods and super methods of a class together. To open this browser select browse protocol (Ctrl+Shift+P) in the context menu of the class.

风吹短裙飘 2024-08-20 03:32:34

如果你想构建一个具有这种行为的浏览器,你应该看看 Glamour 浏览器构建 DSL。

我个人觉得没有必要看ProtoObject和Object中定义的所有34页方法名称,或者5页方法类别。对象方法 size 打印 421。

If you want to build a browser with that behaviour, you should take a look at the Glamour browser construction DSL.

I personally do not feel the need to see all 34 pages of method names defined in ProtoObject and Object, or the 5 pages of method categories. Object methods size prints 421.

丘比特射中我 2024-08-20 03:32:34

AFAIK 在 GemStoneTool 中有这样的东西,有一个 1 左右和一个 # ,它似乎改变了视图以查看类中可用的所有方法(无论是继承的还是类本身)我很惊讶你认为“标准图像”中不存在类似的东西。也许用户对图书馆已经很熟悉了,也许他们记得足够多,所以不必费心。 ....

AFAIK in the GemStoneTool there is such a thing, thre is a 1 or so and a # which seems to change the view to see all the methods available in a class (be it inherited or in the class itself) I'm as amazed as you that nothing like that exists in "standard images". Maybe the users know the libraries for ages, and maybe they remember enough to not bother. ....

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