Java 透视图在 Eclipse 中不可见
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1897223/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Java perspective is not visible in eclipse
提问by agiliq
I installed eclipse on a new unubtu install, via the package manager. I have Galileo. I copied my home directory from an older machine, and tried to open that workspace. Now I dont see any java perspective.
我通过包管理器在新的 unubtu 安装上安装了 eclipse。我有伽利略。我从一台旧机器复制了我的主目录,并试图打开那个工作区。现在我看不到任何 Java 视角。
(Possibly, all the info above is not relevant, but I just wanted to add any possible info, as this a clean install of Eclipse via package manager, so I cant think of any other non standard thing I might have done.)
(可能,上面的所有信息都不相关,但我只是想添加任何可能的信息,因为这是通过包管理器全新安装的 Eclipse,所以我想不出我可能做过的任何其他非标准的事情。)
回答by Pascal Thivent
What happens if you go to Window > Open Perspective > Other...? Don't you see Javalisted there?
如果您转到Window > Open Perspective > Other... 会发生什么?你没有看到Java列在那里吗?
If not, I don't think the problem is related to the workspace from your previous configuration. But maybe you did copy a ~/.eclipse
directory from your old machine and this one may cause problems. Try to rename it as ~/.eclipse.save
for example and restart Eclipse to see if it helps.
如果没有,我认为问题与您之前配置中的工作区无关。但也许您确实~/.eclipse
从旧机器上复制了一个目录,这可能会导致问题。尝试将其重命名~/.eclipse.save
为 example 并重新启动 Eclipse 以查看是否有帮助。
回答by Jeff
Not sure if you mean you already checked in the usual places for perspectives, or if Java Perspective didn't show up by default...
不确定你的意思是你已经在通常的地方检查过透视图,或者 Java 透视图是否默认没有显示......
Java perspective should be available under the "Open Perspective" icon in the top right, or by going to Window -> Open Perspective -> Java.
Java 透视图应该在右上角的“打开透视图”图标下可用,或者转到窗口 -> 打开透视图 -> Java。
I don't use the Ubuntu-packaged Eclipse, though...
不过,我不使用 Ubuntu 打包的 Eclipse...
回答by Thorbj?rn Ravn Andersen
If you do not have a Java perspective even in "Other", you have downloaded one of the Eclipse versions intended for something else than Java. Do it again, but be certain to get the Java or the Java EE version.
如果您即使在“其他”中也没有 Java 透视图,那么您已经下载了一个 Eclipse 版本,该版本旨在用于 Java 以外的其他用途。再做一次,但一定要获得 Java 或 Java EE 版本。
Note that Eclipse ISavailable in the Ubuntu software repository, but it is the version which was current when that version of Ubuntu came out. For the 9.04 I use it is Eclipse 3.4 and I need 3.5, hence I downloaded it myself.
需要注意的是Eclipse的IS在Ubuntu软件仓库中,但是这是目前在Ubuntu的那个版本出来的版本。对于 9.04,我使用的是 Eclipse 3.4,我需要 3.5,因此我自己下载了它。
回答by Frank Krueger
Yes, without perspective you will never be able to see an Eclipse from the viewpoint of Galileo.
是的,如果没有透视,您将永远无法从伽利略的角度看到日食。
- The sun's radius (695,500 km) and its distance (149,000,000 km)
- The moon's radius (1,737.4 km) and its distance (384,403 km)
- 太阳的半径(695,500 公里)及其距离(149,000,000 公里)
- 月球的半径(1,737.4 公里)及其距离(384,403 公里)
You will need to do a "perspective divide". So the perspective radii are:
你需要做一个“透视鸿沟”。所以透视半径是:
- Sun: 0.00467
- Moon: 0.00452
- 太阳:0.00467
- 月亮:0.00452
Thanks to this divide, the moon is almost big enough to block out the entire sun.
由于这个鸿沟,月亮几乎大到足以遮住整个太阳。
So, yes, Perspective is needed to show the Eclipse.
所以,是的,需要 Perspective 来显示 Eclipse。