From: <hu...@us...> - 2006-10-26 21:27:57
|
Revision: 324 http://svn.sourceforge.net/cishell/?rev=324&view=rev Author: huangb Date: 2006-10-26 14:27:53 -0700 (Thu, 26 Oct 2006) Log Message: ----------- add the support for text and grace file format Modified Paths: -------------- trunk/clients/gui/org.cishell.reference.gui.datamanager/src/org/cishell/reference/gui/datamanager/DataGUIItem.java Modified: trunk/clients/gui/org.cishell.reference.gui.datamanager/src/org/cishell/reference/gui/datamanager/DataGUIItem.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.datamanager/src/org/cishell/reference/gui/datamanager/DataGUIItem.java 2006-10-26 21:27:25 UTC (rev 323) +++ trunk/clients/gui/org.cishell.reference.gui.datamanager/src/org/cishell/reference/gui/datamanager/DataGUIItem.java 2006-10-26 21:27:53 UTC (rev 324) @@ -36,6 +36,8 @@ private Image treeIcon; private Image networkIcon; private Image unknownIcon; + private Image textIcon; + private Image graceIcon; private Map typeToImageMapping; @@ -60,12 +62,16 @@ treeIcon = createImage("tree.png", this.brandPluginID); networkIcon = createImage("network.png", this.brandPluginID); unknownIcon = createImage("unknown.png", this.brandPluginID); + textIcon = createImage("text.png", this.brandPluginID); + graceIcon = createImage("grace.png", this.brandPluginID); typeToImageMapping = new HashMap(); registerImage(DataProperty.OTHER_TYPE, unknownIcon); registerImage(DataProperty.MATRIX_TYPE, matrixIcon); registerImage(DataProperty.NETWORK_TYPE, networkIcon); registerImage(DataProperty.TREE_TYPE, treeIcon); + registerImage(DataProperty.TEXT_TYPE, textIcon); + registerImage(DataProperty.GRACE_TYPE, graceIcon); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hu...@us...> - 2008-03-25 15:55:17
|
Revision: 700 http://cishell.svn.sourceforge.net/cishell/?rev=700&view=rev Author: huangb Date: 2008-03-25 08:53:46 -0700 (Tue, 25 Mar 2008) Log Message: ----------- replace getMetaData with getMetadata replace GRACE_TYPE with PLOT_TYPE replace GraceIcon with plotIcon Modified Paths: -------------- trunk/clients/gui/org.cishell.reference.gui.datamanager/src/org/cishell/reference/gui/datamanager/DataGUIItem.java Modified: trunk/clients/gui/org.cishell.reference.gui.datamanager/src/org/cishell/reference/gui/datamanager/DataGUIItem.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.datamanager/src/org/cishell/reference/gui/datamanager/DataGUIItem.java 2008-03-25 15:51:07 UTC (rev 699) +++ trunk/clients/gui/org.cishell.reference.gui.datamanager/src/org/cishell/reference/gui/datamanager/DataGUIItem.java 2008-03-25 15:53:46 UTC (rev 700) @@ -37,7 +37,7 @@ private Image networkIcon; private Image unknownIcon; private Image textIcon; - private Image graceIcon; + private Image plotIcon; private Map typeToImageMapping; @@ -63,7 +63,7 @@ networkIcon = createImage("network.png", this.brandPluginID); unknownIcon = createImage("unknown.png", this.brandPluginID); textIcon = createImage("text.png", this.brandPluginID); - graceIcon = createImage("grace.png", this.brandPluginID); + plotIcon = createImage("grace.png", this.brandPluginID); typeToImageMapping = new HashMap(); registerImage(DataProperty.OTHER_TYPE, unknownIcon); @@ -71,7 +71,7 @@ registerImage(DataProperty.NETWORK_TYPE, networkIcon); registerImage(DataProperty.TREE_TYPE, treeIcon); registerImage(DataProperty.TEXT_TYPE, textIcon); - registerImage(DataProperty.GRACE_TYPE, graceIcon); + registerImage(DataProperty.PLOT_TYPE, plotIcon); } /** @@ -128,7 +128,7 @@ * @return the icon associated with this DataModel for display in IVC */ public Image getIcon(){ - Image icon = (Image)typeToImageMapping.get(data.getMetaData().get(DataProperty.TYPE)); + Image icon = (Image)typeToImageMapping.get(data.getMetadata().get(DataProperty.TYPE)); if(icon == null) icon = unknownIcon; return icon; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |