public static SshToolsConnectionProfile showConnectionDialog(
Component parent, SshToolsConnectionProfile profile,
SshToolsConnectionTab[] optionalTabs) {
// If no properties are provided, then use the default
if (profile == null) {
profile = new SshToolsConnectionProfile();
profile.setHost(PreferencesStore.get(
SshToolsApplication.PREF_CONNECTION_LAST_HOST, ""));
profile.setPort(PreferencesStore.getInt(
SshToolsApplication.PREF_CONNECTION_LAST_PORT, DEFAULT_PORT));
profile.setUsername(PreferencesStore.get(