<!ELEMENT extension (contextViewBinding*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT contextViewBinding EMPTY>
<!ATTLIST contextViewBinding
contextId CDATA #REQUIRED
viewId CDATA #REQUIRED
autoOpen (true | false)
autoClose (true | false) >
true
。如果此属性指定为 false
,则不会自动打开视图,但是,如果启用给定的上下文时视图处于打开状态,则视图仍然会显示出来。客户机打算指定 false
以避免不频繁使用的视图将透视图搞得很杂乱。true
。只有在下面这种不太可能的情况下才应该将此属性指定为 false
:即使在用户未进行调试的时候调试视图也必须保持打开状态。在以上示例中,当“调试”视图激活了带有指定标识的上下文时,给定的视图就会自动打开。当激活了绑定至另一个调试模式而未与视图相关联的上下文时,视图将不会自动关闭。<extension point=
"org.eclipse.debug.ui.contextViewBindings"
>
<contextViewBinding contextId=
"com.example.mydebugger.debugging"
viewId=
"com.example.view"
autoOpen=
"true"
autoClose=
"false"
>
</contextViewBinding>
</extension>
Copyright (c) 2003, 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