In my application, when I select File->Open Perspective->Other it opens a dialog listing out all perspectives. My problem is that I want those perspectives to appear in a defined order (which they are not in this default perspective switcher).
在我的应用程序中,当我选择File-> Open Perspective-> Other时,它会打开一个列出所有透视图的对话框。我的问题是我希望这些视角以定义的顺序出现(它们不在这个默认的透视切换器中)。
This is the same dialog that pops up on clicking an icon displayed to the extreme left before anything else on the perspective bar.
这是在透视栏上的任何其他内容之前单击显示在最左侧的图标时弹出的相同对话框。
There are a few implementations like this that discuss how to disable perspective bar and make our own custom perspective switcher. General approach is to first disable perspective bar by altering ApplicationWorkbenchWindowAdvisor.java as shown below.
有一些这样的实现讨论如何禁用透视栏并制作我们自己的自定义透视切换器。一般方法是首先通过更改ApplicationWorkbenchWindowAdvisor.java来禁用透视栏,如下所示。
public void preWindowOpen() {
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
configurer.setShowPerspectiveBar(false);
}
But problem is that this also hides the entire perspective switcher (including perspective buttons that i need which i have arranged in a specific order).
但问题是,这也隐藏了整个透视切换器(包括我需要的透视按钮,我按特定顺序排列)。
So, is there a way to still have the perspective buttons displayed on the perspective bar and alter the order of the perspectives that are displayed in the default dialog(that opens on File->Open Perspective->Other)?
那么,有没有办法在透视条上显示透视按钮并改变默认对话框中显示的透视顺序(在File-> Open Perspective-> Other上打开)?
1 个解决方案
#1
AFAIK, perspectives and views are always ordered according to their names, grouped by their categories. Maybe you can file an enhancement request for this at Eclipse Bugzilla.
AFAIK,视角和视图总是根据其名称排序,按类别分组。也许您可以在Eclipse Bugzilla上为此提交增强请求。
#1
AFAIK, perspectives and views are always ordered according to their names, grouped by their categories. Maybe you can file an enhancement request for this at Eclipse Bugzilla.
AFAIK,视角和视图总是根据其名称排序,按类别分组。也许您可以在Eclipse Bugzilla上为此提交增强请求。