add option to choose between ssh and http protocol

There is a option in the preferences to choose if the CopyAction class copies a link with a HTTP protocol or SSH protocol. If you are adding a new repository you must define a SSH port (the given default is 29418).
I changed this, because this method requires a boolean parameter and I could not compile the code.