Open the clone wizard when a git URL is dropped anywhere on Eclipse
commitc8e178cc3eff1851ce223c8e3546bf0cdec23a69
authorIan Pun <ipun@redhat.com>
Wed, 8 Mar 2017 15:46:29 +0000 (8 10:46 -0500)
committerThomas Wolf <thomas.wolf@paranor.ch>
Fri, 5 May 2017 20:57:42 +0000 (5 22:57 +0200)
tree3997d5cca19ed038dc642f57e96b0c8d9bb3e911
parent8de3d09557363f33dee188d7026984d3539bb794
Open the clone wizard when a git URL is dropped anywhere on Eclipse

Created new GitUrlChecker class that allows for checking strings to
see if it is a proper git URL. You are now able to drag and drop a git
URL into a running workspace to spawn a clone wizard (implemented by
GitCloneDropAdapter).

GitCloneDropAdapter is copied from MarketplaceDropAdapter with minor
modifications (run clone wizard, resolve compiler warnings, improve a
misleading exception handler).

Bug: 513247
Change-Id: I609d9847eff4de70f198c8d6ce1289e1a2155e98
Signed-off-by: Ian Pun <ipun@redhat.com>
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/plugin.xml
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitCloneDropAdapter.java [new file with mode: 0644]
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitUrlChecker.java [new file with mode: 0644]
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/components/RepositorySelectionPage.java