[Jarspy-commits] CVS: JarSpy/src/com/ociweb/jarspy/intellij/plugin JarSpyIntelliJPlugin.java,1.1,1.2
Status: Beta
Brought to you by:
brown_j
From: Jeff B. <br...@us...> - 2003-01-25 16:34:28
|
Update of /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/intellij/plugin In directory sc8-pr-cvs1:/tmp/cvs-serv17786/src/com/ociweb/jarspy/intellij/plugin Modified Files: JarSpyIntelliJPlugin.java Log Message: refactor so tree cell images are sys property driven Index: JarSpyIntelliJPlugin.java =================================================================== RCS file: /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/intellij/plugin/JarSpyIntelliJPlugin.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JarSpyIntelliJPlugin.java 25 Jan 2003 03:44:52 -0000 1.1 --- JarSpyIntelliJPlugin.java 25 Jan 2003 16:34:25 -0000 1.2 *************** *** 8,13 **** --- 8,19 ---- import com.ociweb.jarspy.JarInspector; import com.ociweb.jarspy.gui.ClassesViewer; + import com.ociweb.jarspy.gui.tree.JarSpyTreeCellRenderer; import java.io.File; import java.io.IOException; + import java.net.URL; + import java.util.Properties; + import java.util.Map; + import java.util.HashMap; + import javax.swing.ImageIcon; public class JarSpyIntelliJPlugin implements ProjectComponent { *************** *** 17,20 **** --- 23,46 ---- private Logger logger; private JarInspector jarInspector = new JarInspector(); + + static { + Map treeIconPropertiesMap = new HashMap(); + treeIconPropertiesMap.put(JarSpyTreeCellRenderer.CLASS_ICON_PROPERTY_KEY, + "/nodes/class.png"); + + treeIconPropertiesMap.put(JarSpyTreeCellRenderer.INTERFACE_ICON_PROPERTY_KEY, + "/nodes/interface.png"); + + treeIconPropertiesMap.put(JarSpyTreeCellRenderer.ARCHIVE_ICON_PROPERTY_KEY, + "/nodes/jar.png"); + + treeIconPropertiesMap.put(JarSpyTreeCellRenderer.PACKAGE_CLOSED_ICON_PROPERTY_KEY, + "/nodes/packageClosed.png"); + + treeIconPropertiesMap.put(JarSpyTreeCellRenderer.PACKAGE_OPENED_ICON_PROPERTY_KEY, + "/nodes/packageOpen.png"); + + System.getProperties().putAll(treeIconPropertiesMap); + } public JarSpyIntelliJPlugin(Project project) { |