Allow Git repository to be pre-filled from clipboard
commit2854822da4c717e8df745486b440000639f80d49
authorAlex Blewitt <alex.blewitt@gmail.com>
Fri, 4 Jun 2010 00:15:50 +0000 (4 01:15 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 4 Jun 2010 12:01:41 +0000 (4 14:01 +0200)
treec8d0a860e16b84b958436d11e85861ab8dc11e69
parent540bf4168ba8f133f7386e340c3d3e91c44414e5
Allow Git repository to be pre-filled from clipboard

If the user has copied a clipboard already, then we can access that
from the SWT clipboard. If it looks like a transport we know about
(as reported by Transport.canHandleProtocol) then we pre-fill the
connection dialog with that as the URI.

Since we need to fill in the user/port combinations, refactor out
the code which does this on keypress and instead call that function,
but only once, and only after all the fields have been created.

Bug: 315589
Change-Id: I2fd6f0d68b4908f938eb5b2df8cd4f99e674e74d
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/components/RepositorySelectionPage.java