From: <sh...@us...> - 2008-05-21 13:26:18
|
Revision: 12688 http://jedit.svn.sourceforge.net/jedit/?rev=12688&view=rev Author: shlomy Date: 2008-05-21 06:26:10 -0700 (Wed, 21 May 2008) Log Message: ----------- When selecting projects to be added to the tag DB using the project option pane, sort the list of projects case-insensitively. [Fix provided by Matthieu] Modified Paths: -------------- plugins/CtagsInterface/trunk/src/options/ProjectsOptionPane.java Modified: plugins/CtagsInterface/trunk/src/options/ProjectsOptionPane.java =================================================================== --- plugins/CtagsInterface/trunk/src/options/ProjectsOptionPane.java 2008-05-21 03:33:52 UTC (rev 12687) +++ plugins/CtagsInterface/trunk/src/options/ProjectsOptionPane.java 2008-05-21 13:26:10 UTC (rev 12688) @@ -4,6 +4,7 @@ import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; +import java.util.Arrays; import java.util.Vector; import javax.swing.BorderFactory; @@ -21,6 +22,7 @@ import org.gjt.sp.jedit.AbstractOptionPane; import org.gjt.sp.jedit.GUIUtilities; +import org.gjt.sp.jedit.MiscUtilities; import org.gjt.sp.jedit.jEdit; import org.gjt.sp.jedit.gui.RolloverButton; @@ -105,6 +107,7 @@ Vector<String> nameVec = pvi.getProjects(); String [] names = new String[nameVec.size()]; nameVec.toArray(names); + Arrays.sort(names, new MiscUtilities.StringICaseCompare()); String selected = (String) JOptionPane.showInputDialog( ProjectsOptionPane.this, "Select project:", "Projects", JOptionPane.QUESTION_MESSAGE, null, names, names[0]); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |