Author: scooter
Date: 2011-09-17 18:31:08 -0700 (Sat, 17 Sep 2011)
New Revision: 26856

Modified:
   
csplugins/trunk/ucsf/scooter/structureViz/src/structureViz/ui/CustomGraphicsUtil.java
Log:
Oops -- need to delete the temp file, too


Modified: 
csplugins/trunk/ucsf/scooter/structureViz/src/structureViz/ui/CustomGraphicsUtil.java
===================================================================
--- 
csplugins/trunk/ucsf/scooter/structureViz/src/structureViz/ui/CustomGraphicsUtil.java
       2011-09-18 01:22:15 UTC (rev 26855)
+++ 
csplugins/trunk/ucsf/scooter/structureViz/src/structureViz/ui/CustomGraphicsUtil.java
       2011-09-18 01:31:08 UTC (rev 26856)
@@ -76,8 +76,9 @@
                CalculatorCatalog catalog = vmm.getCalculatorCatalog();
                String path = null;
                CyCustomGraphics cg = null;
+               File tmpFile = null;
                try {
-                       File tmpFile = File.createTempFile("structureViz", 
".png");
+                       tmpFile = File.createTempFile("structureViz", ".png");
                        path = tmpFile.getAbsolutePath();
                        // Not really a select command, but it does cause us to 
wait....
                        chimera.select("copy file "+path+" png ");
@@ -124,6 +125,11 @@
                        catalog.addCalculator(cgcalc);
                }
                nac.setCalculator(cgcalc);
-               vmm.applyNodeAppearances();
+               vmm.applyAppearances();
+
+               // Now, delete the temp file we created
+               tmpFile.delete();
+               Cytoscape.getCurrentNetworkView().redrawGraph(false, true);
+
        }
 }

-- 
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.

Reply via email to