Context View Bindings

Identifier:
org.eclipse.debug.ui.contextViewBindings

Since:
3.0

Description:
This extension point provides a mechanism for associating a view with a context identifier. When a context is activated by the Debug view, views associated with it (and also views associated with any parent contexts) are opened, closed, or activated. Contributors have the option to override the automatic open and close behavior.

Configuration Markup:

<!ELEMENT extension (contextViewBinding* , perspective*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>


<!ELEMENT contextViewBinding EMPTY>

<!ATTLIST contextViewBinding

contextId IDREF #REQUIRED

viewId    IDREF #REQUIRED

autoOpen  (true | false)

autoClose (true | false)

>


<!ELEMENT perspective EMPTY>

<!ATTLIST perspective

perspectiveId IDREF #IMPLIED

>

Specifies a perspective in which the view management will be enabled (since 3.5).



Examples:
The following is an example of a context view binding contribution:

<extension
      point="org.eclipse.debug.ui.contextViewBindings">
   <contextViewBinding
         contextId="com.example.mydebugger.debugging"
         viewId="com.example.view"
         autoOpen="true"
         autoClose="false">
   </contextViewBinding>
</extension>
In the above example, when a context with the specified identifier is activated by the Debug view, the given view will be automatically opened. When a context which is bound to a different debug model is activated that isn't associated with the view, the view will not be automatically closed.

API Information:
Since 3.5 , the perspective element can be used to spectify a perspectives in which to enable view management. A product or the user override this setting, by specifying the org.eclipse.debug.ui.manage_view_perspectives preference with a comma-delimited set of perspective IDs.


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