[Pixelle-commit] SF.net SVN: pixelle:[229] trunk/pixelle/src/com/mebigfatguy/pixelle/ AlgorithmArch
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-11-25 04:18:06
|
Revision: 229
http://pixelle.svn.sourceforge.net/pixelle/?rev=229&view=rev
Author: dbrosius
Date: 2008-11-25 04:18:02 +0000 (Tue, 25 Nov 2008)
Log Message:
-----------
remove current_ from save dialog
Modified Paths:
--------------
trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java 2008-11-25 04:09:42 UTC (rev 228)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java 2008-11-25 04:18:02 UTC (rev 229)
@@ -32,6 +32,8 @@
import java.util.EnumMap;
import java.util.HashMap;
import java.util.Map;
+import java.util.Set;
+import java.util.TreeSet;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
@@ -134,7 +136,9 @@
}
public String[] getUserGroups(ImageType imageType) {
- return userAlgorithms.get(imageType).keySet().toArray(new String[userAlgorithms.size()]);
+ Set<String> groups = new TreeSet<String>(userAlgorithms.get(imageType).keySet());
+ groups.remove(CURRENT);
+ return groups.toArray(new String[groups.size()]);
}
public void addAlgorithm(ImageType imageType, String groupName, String algorithmName, Map<PixelleComponent, String> algorithm) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|