编辑时,我如何定位日食类型层次结构

发布于 2025-01-27 00:28:48 字数 376 浏览 1 评论 0原文

Windows 64位机器的Eclipse-版本:2022-03(4.23.0)。

我习惯于在屏幕右侧的标签中具有类型的层次结构(?)。就像通过许多Eclipse发行版一样,它对我有用!我似乎已经失去了它,似乎无法将其恢复!

现在,我可以到达该布局的最接近的是进行CTL -O,但是这些方法是按字母顺序排列的,我似乎无法将显示器放在屏幕的右侧(Alpha Order Order One Oss Ose -Ose -oker--我不喜欢它,但是总比没有好!)。另外,它似乎是一个弹出窗口,持续时间不够长!我看过帖子说我可以抓住CTL-O(?)标签并将其拖动,但找不到标签。

这可能是愚蠢的,但我无法弄清楚!也许更一般的问题是:围绕复杂类型的层次结构导航的日食中最好的工具是什么?帮助您将不胜感激!

Eclipse for Windows 64-bit machine - Version: 2022-03 (4.23.0).

I am used to having the Type Hierarchy (?) in a tab on the right side of my screen. It was like that through a number of Eclipse releases, and it worked for me! I seem to have lost that, and can't seem to get it back!

Now the nearest I can get to that layout is to do CTL-O, but the methods are in alphabetical order, and I can't seem to get the display over to the right side of the screen (alpha order is sort of OK - I am not keen on it, but it's better than nothing!). Plus it seems to be a popup, and doesn't last long enough! I have seen posts saying I can grab the CTL-O (?) tab and drag it over, but I can't find the tab.

It's probably something dumb, but I can't figure it out! Maybe a more general question would be: what's the best tool in Eclipse for navigating around a complex type hierarchy? Help would be appreciated!

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

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

发布评论

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

评论(1

黯然#的苍凉 2025-02-03 00:28:48

我认为您正在寻找的是“类型层次结构”视图。

您找不到很多原因。

您切换到了新的视角。

透视图是整个窗口布局。一个完整的日食窗口,分为各个对接的侧面,以及所有的视图。我认为,“ Java”视角默认情况下可见的类型层次结构视图。您可能已经切换到其他一些视角,例如调试视角,默认情况下没有它。您应该处于Java的角度。如果不是,请单击窗口右上角的“ J”和一些盒子的小徽标,或者通过主菜单:“ window”> “透视”> “开放透视”> “ Java”。

如果您已经处于Java透视处(即“ Java”甚至都不在列表中,那么您当然无法切换到视角) - 或者现在可以加载Java的透视图找不到它,请继续阅读!

您删除了它的

视图可以删除。通过主菜单将其放回原处:“ window”> “ Show View”> “类型Hierachy”。

您将其放在视图集中,它不是最前端的。

视图可以堆叠在一起,您通常会这样做。单个“窗口风格”(从某种意义上说,它不是一个窗口,您可以将其完全拖动,而是“停靠”到侧面)ViewsLot可以包含任何数量的视图。您会看到标签;该标签包括视图的图标,如果有空间,则包括名称,但是如果您将很多视图堆放到单个ViewsLot中,您就可以获得图标。

您正在寻找3个绿色点的图标,其中底部2被1'与顶部1缩进(想法是2个底部的孩子是顶部一个的孩子 - 类型层次结构)。单击它,瞧,就在那里。

您可以最大程度地减少IT

viewsLots,可以最大程度地减少视口,在这种情况下,您可以在侧面获得一个栏,仅包含该视图插槽中的视图图标。只需单击它(如上所述,您正在寻找图标)。单击ViewsLot之外,它将再次消失;如果您不喜欢那样,那么扩展的ViewsLot Iconbar上的最右边图标是,如果浮动,“还原” - 单击。您将尽量减少它。

提示:键盘快捷键

可以在Mac上使用CMD+SHFT+H(可能是Windows上的CMD+Alt+H?我真的不知道,我会告诉您在哪里检查)以打开一个对话框。可以智能搜索类型(例如找到BufferedInputStream您可以键入'bis'并将其找到它,或者'*inputstream'),然后Eclipse将打开类型的层次结构视图并显示您在其中搜索的类型。请注意,还有快速类型的层次结构(MAC Land中的CMD+T),该结构在您的光标位置显示弹出窗口,并旨在在光标上使用某种类型的名称时使用。这大概不是您想要的。

您可以通过转到首选项来检查键盘快捷键(如果需要的话,如果需要的话)(在过滤器中搜索'键'可能正在寻找。

What you're looking for is the "Type Hierarchy" view, I think.

There are a number of reasons you can't find it.

You switched to a new perspective.

A perspective is an entire window layout. A full eclipse window, divided into various docked sides, and all the views that go there. The 'java' perspective has the Type Hierarchy view visible by default, I think. You may have switched to some other perspective, such as the Debug perspective, that doesn't have it by default. You should be in the java perspective. If you're not, Click the little logo with a 'J' and some boxes in the top right corner of your window, or via the main menu: "Window" > "Perspective" > "Open Perspective" > "Java".

If you're already in the java perspective (i.e. "Java" won't even be in the list, you can't switch to the perspective you're already in of course) - or this now loads the java perspective but you still can't find it, read on!

You removed it

Views can be removed. To put it back, via the main menu: "Window" > "Show View" > "Type Hierachy".

You put it in a viewset and it isn't frontmost.

Views can be stacked together and you usually do that. A single 'window-esque' (it's not a window in the sense that you can fully drag it around, it's 'docked' to a side) viewslot can contain any number of views. You'll see tabs; the tab includes the icon of the view, and if there's room, the name, but if you pile a lot of views into a single viewslot you'll just get icons.

The icon you're looking for 3 green dots, where the bottom 2 are 'indented by 1' vs the top one (the idea is, the 2 bottom ones are children of the top one - type hierarchy). Click it and voila, there it is.

You minimized it

Viewslots can be minimized, in which case you get a bar on the side, containing just the icons of the views in that viewslot. Just click it (you're looking for the icon as described above). It'll go away again as soon as you click outside of the viewslot; if you don't like that, the far right icon on the iconbar of the expanded viewslot is, if you float over, 'restore' - click that. You'll un-minimize it.

TIP: Keyboard shortcut

You can use CMD+SHFT+H on macs (probably CMD+ALT+H on windows? I don't really know, I'll tell you where to check in a bit) to open a dialog box where you can smart-search for a type (e.g. to find BufferedInputStream you can type 'BIS' and it'll find it, or '*InputStream'), and eclipse will then open the type hierarchy view and show the type you searched for inside it. Note that there's also the quick type hierarchy (CMD+T over here in mac land), which shows a popup at the location of your cursor, and is intended to be used when your cursor is on some type name. That's presumably not what you're looking for.

You can check keyboard shortcuts (and make them, if you want), by going to the preferences (searching in the filter for 'keys', then search the keyboard shortcuts for "Open Type in Hierarchy" - that's the keyboard shortcut you're probably looking for.

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