Author: pwang
Date: 2009-04-17 10:22:35 -0700 (Fri, 17 Apr 2009)
New Revision: 16618
Modified:
csplugins/trunk/ucsd/pwang/cyprovision/org.eclipse.equinox.p2.ui2/src/org/eclipse/equinox/internal/provisional/p2/ui2/dialogs/RepoCellRenderer.java
Log:
include the case for InstalledIUElement
Modified:
csplugins/trunk/ucsd/pwang/cyprovision/org.eclipse.equinox.p2.ui2/src/org/eclipse/equinox/internal/provisional/p2/ui2/dialogs/RepoCellRenderer.java
===================================================================
---
csplugins/trunk/ucsd/pwang/cyprovision/org.eclipse.equinox.p2.ui2/src/org/eclipse/equinox/internal/provisional/p2/ui2/dialogs/RepoCellRenderer.java
2009-04-17 17:06:03 UTC (rev 16617)
+++
csplugins/trunk/ucsd/pwang/cyprovision/org.eclipse.equinox.p2.ui2/src/org/eclipse/equinox/internal/provisional/p2/ui2/dialogs/RepoCellRenderer.java
2009-04-17 17:22:35 UTC (rev 16618)
@@ -13,6 +13,7 @@
import org.eclipse.equinox.internal.p2.ui2.model.ProvElement;
import org.eclipse.equinox.internal.provisional.p2.metadata.IInstallableUnit;
import org.eclipse.equinox.internal.provisional.p2.ui2.IUPropertyUtils;
+import
org.eclipse.equinox.internal.provisional.p2.ui2.model.InstalledIUElement;
public class RepoCellRenderer extends DefaultTreeCellRenderer {
//DefaultMutableTreeNode theNode;
@@ -55,6 +56,13 @@
String name =
IUPropertyUtils.getIUProperty(installUnit, IInstallableUnit.PROP_NAME);
this.setText(name + " -- " + version);
}
+ else if (provElement instanceof InstalledIUElement){
+ InstalledIUElement installed_element =
(InstalledIUElement)provElement;
+ IInstallableUnit installUnit =installed_element.getIU();
+ String version = installUnit.getVersion().toString();
+ String name =
IUPropertyUtils.getIUProperty(installUnit, IInstallableUnit.PROP_NAME);
+ this.setText(name + " -- " + version);
+ }
else {
this.setText("Unknown");
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en
-~----------~----~----~----~------~----~------~--~---