[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-dev] Sorted repositories in the checkout wizard.

From: Jörg Eichhorn <jeichhorn_at_gmail.com>
Date: 2006-01-22 11:30:42 CET

Hello,

when checking out a project using the checkout wizard, the list of
configured repositories is unsorted.
The attached patch which fixed this small issue was made using the 1.0.x
branch.
Maybe this can be integrated before the final release of subclipse 1.0.0
is made.

Jörg

Index: src/org/tigris/subversion/subclipse/ui/wizards/CheckoutWizardLocationPage.java
===================================================================
--- src/org/tigris/subversion/subclipse/ui/wizards/CheckoutWizardLocationPage.java (revision 2056)
+++ src/org/tigris/subversion/subclipse/ui/wizards/CheckoutWizardLocationPage.java (working copy)
@@ -1,5 +1,7 @@
 package org.tigris.subversion.subclipse.ui.wizards;
 
+import java.util.Arrays;
+
 import org.eclipse.jface.resource.ImageDescriptor;
 import org.eclipse.jface.viewers.ColumnWeightData;
 import org.eclipse.jface.viewers.ISelectionChangedListener;
@@ -20,6 +22,7 @@
 import org.eclipse.ui.model.WorkbenchContentProvider;
 import org.eclipse.ui.model.WorkbenchLabelProvider;
 import org.tigris.subversion.subclipse.core.ISVNRepositoryLocation;
+import org.tigris.subversion.subclipse.core.repo.RepositoryComparator;
 import org.tigris.subversion.subclipse.ui.Policy;
 import org.tigris.subversion.subclipse.ui.SVNUIPlugin;
 import org.tigris.subversion.subclipse.ui.util.AdaptableList;
@@ -86,6 +89,7 @@
         
         public void refreshLocations() {
         ISVNRepositoryLocation[] locations = SVNUIPlugin.getPlugin().getRepositoryManager().getKnownRepositoryLocations();
+ Arrays.sort(locations, new RepositoryComparator());
         AdaptableList input = new AdaptableList(locations);
         table.setInput(input);
         if (locations.length == 0) {

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: dev-help@subclipse.tigris.org
Received on Sun Jan 22 11:30:59 2006

This is an archived mail posted to the Subclipse Dev mailing list.