incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r777797 - in /incubator/kato/trunk/org.apache.kato.tools.plugins.rtexplorer: META-INF/MANIFEST.MF src/org/apache/kato/tools/plugins/rtexplorer/views/RuntimeExplorer.java
Date Sat, 23 May 2009 05:21:54 GMT
Author: spoole
Date: Sat May 23 05:21:54 2009
New Revision: 777797

URL: http://svn.apache.org/viewvc?rev=777797&view=rev
Log:
updated to use kato api image factory registry

Modified:
    incubator/kato/trunk/org.apache.kato.tools.plugins.rtexplorer/META-INF/MANIFEST.MF
    incubator/kato/trunk/org.apache.kato.tools.plugins.rtexplorer/src/org/apache/kato/tools/plugins/rtexplorer/views/RuntimeExplorer.java

Modified: incubator/kato/trunk/org.apache.kato.tools.plugins.rtexplorer/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato.tools.plugins.rtexplorer/META-INF/MANIFEST.MF?rev=777797&r1=777796&r2=777797&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato.tools.plugins.rtexplorer/META-INF/MANIFEST.MF (original)
+++ incubator/kato/trunk/org.apache.kato.tools.plugins.rtexplorer/META-INF/MANIFEST.MF Sat
May 23 05:21:54 2009
@@ -7,8 +7,7 @@
 Require-Bundle: org.eclipse.ui,
  org.eclipse.core.runtime,
  org.eclipse.core.resources,
- KatoHProfAdapterPOC;bundle-version="1.0.0",
- org.apache.kato.api;bundle-version="1.3.0"
+ org.apache.kato.api.plugin;bundle-version="1.0.0"
 Bundle-ActivationPolicy: lazy
 Bundle-RequiredExecutionEnvironment: J2SE-1.5
 Bundle-ClassPath: 

Modified: incubator/kato/trunk/org.apache.kato.tools.plugins.rtexplorer/src/org/apache/kato/tools/plugins/rtexplorer/views/RuntimeExplorer.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato.tools.plugins.rtexplorer/src/org/apache/kato/tools/plugins/rtexplorer/views/RuntimeExplorer.java?rev=777797&r1=777796&r2=777797&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato.tools.plugins.rtexplorer/src/org/apache/kato/tools/plugins/rtexplorer/views/RuntimeExplorer.java
(original)
+++ incubator/kato/trunk/org.apache.kato.tools.plugins.rtexplorer/src/org/apache/kato/tools/plugins/rtexplorer/views/RuntimeExplorer.java
Sat May 23 05:21:54 2009
@@ -23,11 +23,12 @@
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Iterator;
+import java.util.List;
+
 
-import org.apache.kato.hprof.image.ImageFactoryImpl;
 import org.apache.kato.image.CorruptDataException;
 import org.apache.kato.image.DataUnavailable;
-import org.apache.kato.image.ImageFactory;
+
 import org.apache.kato.tools.plugins.rtexplorer.Activator;
 import org.apache.kato.tools.plugins.rtexplorer.RTEDataException;
 import org.eclipse.core.resources.IFile;
@@ -235,6 +236,11 @@
 								createNodeFromIterator(parent, i);
 								return;
 							}
+							if(node.getMethod().getReturnType() == List.class) {
+								List l = (List) node.getMethod().invoke(node.getItem(), (Object[]) null);
+								createNodeFromIterator(parent, l.iterator());
+								return;
+							}
 							Object obj = node.getMethod().invoke(node.getItem(), (Object[]) null);
 							Class iface = getKatoInterface(obj.getClass());
 							createNodeFromItem(parent, iface, obj);
@@ -254,10 +260,10 @@
 		
 		//get the runtime
 		private void getRuntime() {
-			ImageFactory factory = new ImageFactoryImpl();	//this will need to be replaced with the
correct factory implementation
+			
 			if(dump.exists()) {
 				try {
-					org.apache.kato.image.Image image = factory.getImage(dump);
+					org.apache.kato.image.Image image = org.apache.kato.api.plugin.Activator.getDefault().getImage(dump);
 					TreeParent root = createNodeFromItem(dump.getName(), org.apache.kato.image.Image.class,
image);
 					invisibleRoot = new TreeParent("");
 					invisibleRoot.addChild(root);



Mime
View raw message