summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-08-07 06:24:28 (EDT)
committerEike Stepper2007-08-07 06:24:28 (EDT)
commit422c25bafeecaaa34dc8e750a046abf8b97852fd (patch)
tree08727d63c0fc6ae2e332d7ba344b686563a018a2
parent3c212f659c4cb2cbcd241945a514346f163b6d86 (diff)
downloadcdo-422c25bafeecaaa34dc8e750a046abf8b97852fd.zip
cdo-422c25bafeecaaa34dc8e750a046abf8b97852fd.tar.gz
cdo-422c25bafeecaaa34dc8e750a046abf8b97852fd.tar.bz2
*** empty log message ***
-rw-r--r--plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/views/IntrospectorView.java23
1 files changed, 18 insertions, 5 deletions
diff --git a/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/views/IntrospectorView.java b/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/views/IntrospectorView.java
index a795203..0dbb2c1 100644
--- a/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/views/IntrospectorView.java
+++ b/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/views/IntrospectorView.java
@@ -114,8 +114,8 @@ public class IntrospectorView extends ViewPart implements ISelectionListener
protected void createColmuns(TableViewer viewer)
{
- final String[] columnNames = { "Field", "Value" };
- final int[] columnWidths = { 200, 400 };
+ final String[] columnNames = { "Field", "Value", "Declared Type", "Concrete Type" };
+ final int[] columnWidths = { 200, 400, 300, 300 };
TableColumn[] columns = new TableColumn[columnNames.length];
for (int i = 0; i < columns.length; i++)
{
@@ -165,7 +165,15 @@ public class IntrospectorView extends ViewPart implements ISelectionListener
private void setSelection(Object newSelection)
{
selection = newSelection;
- label.setText(selection == null ? "" : selection.toString());
+ if (selection == null)
+ {
+ label.setText("");
+ }
+ else
+ {
+ label.setText(selection.toString() + " - " + selection.getClass().getName());
+ }
+
refreshViewer();
}
@@ -306,13 +314,18 @@ public class IntrospectorView extends ViewPart implements ISelectionListener
try
{
Pair<Field, Object> pair = (Pair)obj;
+ Field field = pair.getElement1();
+ Object value = pair.getElement2();
switch (index)
{
case 0:
- return pair.getElement1().getName();
+ return field.getName();
case 1:
- Object value = pair.getElement2();
return value == null ? "null" : value.toString();
+ case 2:
+ return field.getType().getName();
+ case 3:
+ return value == null ? "" : value.getClass().getName();
}
}
catch (RuntimeException ex)