<!ELEMENT extension (perspective*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT perspective (description?)>
<!ATTLIST perspective
id CDATA #REQUIRED
name CDATA #REQUIRED
class CDATA #REQUIRED
icon CDATA #IMPLIED
fixed (true | false) >
<!ELEMENT description (#PCDATA)>
一个可选的子元素,其主体应该包含为透视图提供简短描述的文本。
<extension point=
"org.eclipse.ui.perspectives"
>
<perspective id=
"org.eclipse.ui.resourcePerspective"
name=
"Resource"
class=
"org.eclipse.ui.internal.ResourcePerspective"
icon=
"icons/MyIcon.gif"
>
</perspective>
</extension>
plugin_customization.ini 文件用来定义缺省透视图。缺省透视图是安装产品之后启动时将出现的第一个透视图。当不使用指定的透视图来打开页面或窗口时,也会使用该透视图。缺省透视图被定义为 plugin_customization.ini 中的一种属性,如下所示。用户还可以从工作台透视图首选项页面中覆盖此透视图。
defaultPerspectiveId = org.eclipse.ui.resourcePerspective出现在“打开透视图”菜单中的透视图是透视图选择的快捷方式。此设置由活动透视图本身定义,而扩展是通过 perspectiveExtensions 扩展点建立的。
Copyright (c) 2002, 2005 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License v1.0 which accompanies
this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html