Java Logical Structures

Identifier:
org.eclipse.jdt.debug.javaLogicalStructures

Since:
3.1

Description:
This extension point allows developers to define a logical structure for Java objects of a specified type. The logical value is created by evaluating the provided code snippet.

Configuration Markup:

<!ELEMENT extension (javaLogicalStructure+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT javaLogicalStructure (variable+)?>

<!ATTLIST javaLogicalStructure

type        CDATA #REQUIRED

subtypes    (true | false) "true"

value       CDATA #IMPLIED

description CDATA #REQUIRED>


<!ELEMENT variable EMPTY>

<!ATTLIST variable

name  CDATA #REQUIRED

value CDATA #REQUIRED>

One variable of the logical value for the object of this type.



Examples:
Following is an example of a Java logical structure extension point with two structures:


<extension point="org.eclipse.jdt.debug.javaLogicalStructures">
  <javaLogitalStructure
      subtypes="true"
      value="return entrySet().toArray();"
      type="java.util.Map"/>
  <javaLogitalStructure
      subtypes="true"
      type="java.util.Map$Entry">
    <variable
      value="return getKey();"
      name="key"/>
    <variable
      value="return getValue();"
      name="value"/>
  </javaLogitalStructure>
</extension>

In the example above a Map is translated into its entries and a Map$Entry is translated into its key and value.

API Information:
[Enter API information here.]

Supplied Implementation:
[Enter information about supplied implementation of this extension point.]


Copyright (c) 2004, 2005 IBM Corporation and others.
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html/ SPDX-License-Identifier: EPL-2.0