Remember to dispose the clipboard after use
commitb0338c95ebd22bb87f3a592858cb96e50ff6d7b1
authorAlex Blewitt <alex.blewitt@gmail.com>
Fri, 4 Jun 2010 18:49:05 +0000 (4 19:49 +0100)
committerAlex Blewitt <alex.blewitt@gmail.com>
Sat, 5 Jun 2010 09:11:02 +0000 (5 10:11 +0100)
tree081e441891701fe54ae1677d3f805b1e03b16d26
parent2854822da4c717e8df745486b440000639f80d49
Remember to dispose the clipboard after use

Once the clipboard is acquired, we should dispose of it afterwards to
prevent memory and resource leaks.

Not all the text on the clipboard will be text; if it isn't, then we'll
get a null back. Handle that case specifically.

If the text begins (or ends) with whitespace, trim it before checking.

Bug: 315589
Change-Id: I1b8eeae47b880b6eef689ca359f9c67e93e7e999
Signed-off-by: Alex Blewitt <Alex.Blewitt@gmail.com>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/components/RepositorySelectionPage.java