Index: org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
===================================================================
--- org/openstreetmap/josm/gui/dialogs/RelationListDialog.java	(revision 996)
+++ org/openstreetmap/josm/gui/dialogs/RelationListDialog.java	(working copy)
@@ -17,6 +17,7 @@
 import javax.swing.JPanel;
 import javax.swing.JScrollPane;
 import javax.swing.ListSelectionModel;
+import javax.swing.event.ListSelectionListener;
 
 import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.command.DeleteCommand;
@@ -143,4 +144,30 @@
 		repaint();
 	}
 	
+	/**
+	 * Returns the currently selected relation, or null.
+	 * 
+	 * @return the currently selected relation, or null
+	 */
+	public Relation getCurrentRelation() {
+		return (Relation) displaylist.getSelectedValue();
+	}
+
+	/**
+	 * Adds a selection listener to the relation list.
+	 * 
+	 * @param listener the listener to add
+	 */
+	public void addListSelectionListener(ListSelectionListener listener) {
+		displaylist.addListSelectionListener(listener);
+	}
+
+	/**
+	 * Removes a selection listener from the relation list.
+	 * 
+	 * @param listener the listener to remove
+	 */
+	public void removeListSelectionListener(ListSelectionListener listener) {
+		displaylist.removeListSelectionListener(listener);
+	}
 }
Index: org/openstreetmap/josm/gui/MapFrame.java
===================================================================
--- org/openstreetmap/josm/gui/MapFrame.java	(revision 996)
+++ org/openstreetmap/josm/gui/MapFrame.java	(working copy)
@@ -59,6 +59,10 @@
 
 	public ConflictDialog conflictDialog;
 	/**
+	 * The dialog that shows all relations and lets the user edit them.
+	 */
+	public RelationListDialog relationListDialog;
+	/**
 	 * The panel list of all toggle dialog icons. To add new toggle dialog actions, use addToggleDialog
 	 * instead of adding directly to this list.
 	 */
@@ -99,7 +103,7 @@
 		addToggleDialog(new UserListDialog());
 		addToggleDialog(conflictDialog = new ConflictDialog());
 		addToggleDialog(new CommandStackDialog(this));
-		addToggleDialog(new RelationListDialog());
+		addToggleDialog(relationListDialog = new RelationListDialog());
 
 		// status line below the map
 		statusLine = new MapStatus(this);
