Revision 37968
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/LegendManager.java | ||
---|---|---|
51 | 51 |
import java.awt.event.ActionListener; |
52 | 52 |
import java.io.File; |
53 | 53 |
import java.util.ArrayList; |
54 |
import java.util.Collections; |
|
55 |
import java.util.Comparator; |
|
54 | 56 |
import java.util.Enumeration; |
55 | 57 |
import java.util.Hashtable; |
56 | 58 |
import java.util.prefs.Preferences; |
... | ... | |
295 | 297 |
NotificationManager.addInfo(message+PluginServices.getText(this, "OK")); |
296 | 298 |
|
297 | 299 |
} |
300 |
|
|
301 |
Collections.sort(drivers, new Comparator<IFMapLegendDriver>() { |
|
302 |
|
|
303 |
public int compare(IFMapLegendDriver o1, IFMapLegendDriver o2) { |
|
304 |
if (o1.getFileExtension().toLowerCase().equalsIgnoreCase("gvl")) { |
|
305 |
return 1; |
|
306 |
} |
|
307 |
return 0; |
|
308 |
} |
|
309 |
}); |
|
310 |
|
|
298 | 311 |
return (IFMapLegendDriver[]) drivers.toArray(new IFMapLegendDriver[0]); |
299 | 312 |
}; |
300 | 313 |
}; |
Also available in: Unified diff