有没有办法强制Eclipse以默认视角打开? [英] Is there a way to force Eclipse to open in the default perspective?

查看:150
本文介绍了有没有办法强制Eclipse以默认视角打开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我启动Eclipse(3.5.2 Galileo),它总是以我以前使用的角度打开。我希望它始终以默认视角打开,但是我找不到在首选项中设置的方法。

Whenever I start Eclipse (3.5.2 Galileo) it always opens in the previous perspective I was using. I want it to ALWAYS open in the default perspective, but I can't find a way of setting that in the preferences.

我使用笔记本电脑进行开发工作,我的办公桌上有一个扩展坞。当我停靠时,我有两个显示器给我2400个水平像素的房地产,我在一个透视图工作,在一个显示器和所有其他视图(控制台,包浏览器,JUnit等)上有一个全尺寸的代码编辑屏幕。 )在另一台显示器上的浮动窗口中打开。

I use a laptop for dev work for which I have a docking station at my desk. When I'm docked, I have two monitors giving me 2400 horizontal pixels of real estate and I work in a perspective that has a full-size code editing screen on one monitor and all other views (console, package explorer, JUnit, etc.) open in floating windows on the other monitor.

当我取消使用笔记本电脑上的内置屏幕时,我只水平拥有1920像素。如果我在这种情况下打开了我的2屏视角,那么浮动窗口将被拖动左边,使得它们的右边缘与屏幕对齐,并且它们彼此重叠和主编码窗口。更糟糕的是,如果我退出Eclipse或切换到我的1屏幕视角(我设置为默认值),则双屏幕视图的当前布局将被保存,因此我必须将所有窗口拖回到当我回到我的对接站时,他们属于。

When I undock and use the built in screen on the laptop, I "only" have 1920 pixels horizontally. If I open my "2-screen" perspective in this situation, the floating windows are dragged left so that their right-hand edges align with the screen, and they overlap each other and the main coding window. What's worse is that if I exit Eclipse or switch to my 1-screen perspective (which I've set as the default), the current layout of the 2-screen perspective is saved and so I have to drag all the windows back to where they belong when I get back to my docking station.

我每次关闭Eclipse之前,都要记住切换到1屏幕的角度,特别是如果我知道我下次我打开Eclipse时,我将会工作不起作用,但是比我记得更多的时候,我很遗憾。

I try to remember to switch to the 1-screen perspective before I close Eclipse each time, especially if I know I'll be working undocked next time I open Eclipse, but I forget more often than I remember, sadly.

因此,我希望Eclipse 在默认的1屏幕Java透视图中打开。如果我被拆除,那就是我会使用的观点。如果我被停靠,我可以使用工具栏中的一个图标快速切换到两屏。

Therefore, I'd like to have Eclipse always open in the default, 1-screen Java perspective. If I'm undocked, that's the perspective I'll use. If I'm docked, I can switch to the 2-screen quickly using one icon in the toolbar.

任何建议?

推荐答案

在首选项对话框中没有设置。但是,作为一个黑客,您可以找到存储在文件中的最后一个透视属性: workspace / .metadata / .plugins / org.eclipse.ui.workbench / workbench.xml 。它是一个XML文件,您要冻结的属性是:< perspectives activePerspective =...>

There is no setting in the preferences dialog to do that. However, as a hack you can find the last perspective attribute stored in the file: workspace/.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml. It's an XML file, and the attribute you want to freeze is: <perspectives activePerspective="...">.

您可以使用简单的脚本在运行Eclipse之前更改该设置。

You can use a simple script to alter that setting before running Eclipse.

这篇关于有没有办法强制Eclipse以默认视角打开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆