Author: tchemit Date: 2008-04-27 08:38:00 +0000 (Sun, 27 Apr 2008) New Revision: 632 Added: trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/ConnexionConfigUI.java Removed: trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/ConfigConnexionUI.java Modified: trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/VCSUIFactory.java trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/action/ShowConfigAction.java trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/action/TestConnexionAction.java trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/handler/ConfigUIHandler.java trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/model/ConfigUIModel.java Log: renommage ConfigUI en ConnexionConfigUI Deleted: trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/ConfigConnexionUI.java =================================================================== --- trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/ConfigConnexionUI.java 2008-04-27 08:36:35 UTC (rev 631) +++ trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/ConfigConnexionUI.java 2008-04-27 08:38:00 UTC (rev 632) @@ -1,199 +0,0 @@ -/** - * # #% Copyright (C) 2008 Code Lutin, Tony Chemit - * This program is free software; you - * can redistribute it and/or modify it under the terms of the GNU General - * Public License as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. This program is - * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A - * PARTICULAR PURPOSE. See the GNU General Public License for more details. You - * should have received a copy of the GNU General Public License along with this - * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - * - Suite 330, Boston, MA 02111-1307, USA. - * # #% - */ -package org.codelutin.vcs.ui; - -import static org.codelutin.i18n.I18n._; -import org.codelutin.ui.FormElement; -import org.codelutin.util.FileUtil; -import org.codelutin.vcs.type.VCSConnexionMode; -import org.codelutin.vcs.ui.handler.ConfigUIHandler; -import org.codelutin.vcs.ui.util.ui.AbstractUI; - -import javax.swing.AbstractButton; -import javax.swing.ButtonGroup; -import javax.swing.JCheckBox; -import javax.swing.JComponent; -import javax.swing.JEditorPane; -import javax.swing.JLabel; -import javax.swing.JPasswordField; -import javax.swing.JRadioButton; -import javax.swing.JTextField; -import java.io.File; -import java.util.Arrays; - -/** @author chemit */ -public abstract class ConfigConnexionUI extends AbstractUI<ConfigUIHandler> { - - public enum Element implements FormElement<ConfigConnexionUI> { - connexion, - login, - sshLogin, - password, - passphrase, - nopassphrase, - privateKeyFile; - - public Object getValue(ConfigConnexionUI ui) { - return ui.getElementValue(this); - } - - public void setValue(ConfigConnexionUI ui, String value) { - //TODO - JComponent component = ui.getElement(this); - } - - public JLabel getLabel(ConfigConnexionUI ui) { - return ui.getElementLabel(this); - } - } - - public abstract ButtonGroup getConnexionMode(); - - public abstract AbstractButton getChangePrivateKeyFile(); - - public abstract AbstractButton getGenerateKey(); - - public abstract AbstractButton getOk(); - - public abstract AbstractButton getReset(); - - public abstract AbstractButton getCancel(); - - public abstract AbstractButton getTestConnection(); - - public abstract AbstractButton getAddRoot(); - - public abstract AbstractButton getDeleteRoot(); - - public abstract AbstractButton getEditRoot(); - - public String getElementValue(Element element) { - JComponent o = getElement(element); - if (o instanceof JPasswordField) { - return Arrays.toString(((JPasswordField) o).getPassword()); - } - if (o instanceof JTextField) { - return ((JTextField) o).getText(); - } - if (o instanceof JRadioButton) { - return String.valueOf(((JRadioButton) o).isSelected()); - } - if (o instanceof JCheckBox) { - return String.valueOf(((JCheckBox) o).isSelected()); - } - return ""; - } - - public JLabel getElementLabel(Element element) { - return (JLabel) getObjectById(element.name() + "Label"); - } - - public JComponent getElement(Element element) { - return (JComponent) getObjectById(element.name()); - } - - - public abstract JEditorPane getDoc(); - - public abstract JRadioButton getConnexionModeAnonymous(); - - public abstract JRadioButton getConnexionModePassword(); - - public abstract JRadioButton getConnexionModeSsh(); - - public abstract JTextField getLogin(); - - public abstract JTextField getSshLogin(); - - public abstract JPasswordField getPassword(); - - public abstract JPasswordField getPassphrase(); - - public abstract JCheckBox getNoPassPhrase(); - - public abstract JTextField getPrivateKeyFile(); - - public abstract JLabel getLoginLabel(); - - public abstract JLabel getSshLoginLabel(); - - public abstract JLabel getPasswordLabel(); - - public abstract JLabel getPassphraseLabel(); - - public abstract JLabel getPrivateKeyFileLabel(); - - public abstract javax.swing.JPanel getConnexionPanel(); - - public abstract java.awt.CardLayout getConnexionPanelLayout(); - - public abstract javax.swing.JPanel getAnonymousPanel(); - - public abstract javax.swing.JPanel getPasswordPanel(); - - public abstract javax.swing.JPanel getSshPanel(); - - public abstract javax.swing.JComboBox getRootsList(); - - - public boolean isConfigValid() { - return getHandler().isConfigValid(); - } - - protected void reset() { - getHandler().reset(); - } - - protected void save() { - getHandler().save(); - dispose(); - } - - protected void doCheck(Element element) { - getHandler().doCheck(element); - } - - protected void changeAutheticationMode(VCSConnexionMode mode) { - getHandler().getModel().setConnexionMode(mode); - doCheck(Element.connexion); - } - - protected void changePrivateKeyFile() { - //TODO add title in lutinutil :) - File file = FileUtil.getFile(".*.pub$", _("lutinvcs.config.find.public.key")); - if (file != null) { - String path = file.getAbsolutePath(); - getPrivateKeyFile().setText(path.substring(0, path.length() - 4)); - doCheck(Element.privateKeyFile); - } - } - - protected void generateKey() { - //TODO - } - - protected void editRoot() { - //TODO - } - - protected void addRoot() { - //TODO - } - - protected void deleteRoot() { - //TODO - } - -} Copied: trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/ConnexionConfigUI.java (from rev 631, trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/ConfigConnexionUI.java) =================================================================== --- trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/ConnexionConfigUI.java (rev 0) +++ trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/ConnexionConfigUI.java 2008-04-27 08:38:00 UTC (rev 632) @@ -0,0 +1,199 @@ +/** + * # #% Copyright (C) 2008 Code Lutin, Tony Chemit + * This program is free software; you + * can redistribute it and/or modify it under the terms of the GNU General + * Public License as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. This program is + * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A + * PARTICULAR PURPOSE. See the GNU General Public License for more details. You + * should have received a copy of the GNU General Public License along with this + * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place + * - Suite 330, Boston, MA 02111-1307, USA. + * # #% + */ +package org.codelutin.vcs.ui; + +import static org.codelutin.i18n.I18n._; +import org.codelutin.ui.FormElement; +import org.codelutin.util.FileUtil; +import org.codelutin.vcs.type.VCSConnexionMode; +import org.codelutin.vcs.ui.handler.ConfigUIHandler; +import org.codelutin.vcs.ui.util.ui.AbstractUI; + +import javax.swing.AbstractButton; +import javax.swing.ButtonGroup; +import javax.swing.JCheckBox; +import javax.swing.JComponent; +import javax.swing.JEditorPane; +import javax.swing.JLabel; +import javax.swing.JPasswordField; +import javax.swing.JRadioButton; +import javax.swing.JTextField; +import java.io.File; +import java.util.Arrays; + +/** @author chemit */ +public abstract class ConnexionConfigUI extends AbstractUI<ConfigUIHandler> { + + public enum Element implements FormElement<ConnexionConfigUI> { + connexion, + login, + sshLogin, + password, + passphrase, + nopassphrase, + privateKeyFile; + + public Object getValue(ConnexionConfigUI ui) { + return ui.getElementValue(this); + } + + public void setValue(ConnexionConfigUI ui, String value) { + //TODO + JComponent component = ui.getElement(this); + } + + public JLabel getLabel(ConnexionConfigUI ui) { + return ui.getElementLabel(this); + } + } + + public abstract ButtonGroup getConnexionMode(); + + public abstract AbstractButton getChangePrivateKeyFile(); + + public abstract AbstractButton getGenerateKey(); + + public abstract AbstractButton getOk(); + + public abstract AbstractButton getReset(); + + public abstract AbstractButton getCancel(); + + public abstract AbstractButton getTestConnection(); + + public abstract AbstractButton getAddRoot(); + + public abstract AbstractButton getDeleteRoot(); + + public abstract AbstractButton getEditRoot(); + + public String getElementValue(Element element) { + JComponent o = getElement(element); + if (o instanceof JPasswordField) { + return Arrays.toString(((JPasswordField) o).getPassword()); + } + if (o instanceof JTextField) { + return ((JTextField) o).getText(); + } + if (o instanceof JRadioButton) { + return String.valueOf(((JRadioButton) o).isSelected()); + } + if (o instanceof JCheckBox) { + return String.valueOf(((JCheckBox) o).isSelected()); + } + return ""; + } + + public JLabel getElementLabel(Element element) { + return (JLabel) getObjectById(element.name() + "Label"); + } + + public JComponent getElement(Element element) { + return (JComponent) getObjectById(element.name()); + } + + + public abstract JEditorPane getDoc(); + + public abstract JRadioButton getConnexionModeAnonymous(); + + public abstract JRadioButton getConnexionModePassword(); + + public abstract JRadioButton getConnexionModeSsh(); + + public abstract JTextField getLogin(); + + public abstract JTextField getSshLogin(); + + public abstract JPasswordField getPassword(); + + public abstract JPasswordField getPassphrase(); + + public abstract JCheckBox getNoPassPhrase(); + + public abstract JTextField getPrivateKeyFile(); + + public abstract JLabel getLoginLabel(); + + public abstract JLabel getSshLoginLabel(); + + public abstract JLabel getPasswordLabel(); + + public abstract JLabel getPassphraseLabel(); + + public abstract JLabel getPrivateKeyFileLabel(); + + public abstract javax.swing.JPanel getConnexionPanel(); + + public abstract java.awt.CardLayout getConnexionPanelLayout(); + + public abstract javax.swing.JPanel getAnonymousPanel(); + + public abstract javax.swing.JPanel getPasswordPanel(); + + public abstract javax.swing.JPanel getSshPanel(); + + public abstract javax.swing.JComboBox getRootsList(); + + + public boolean isConfigValid() { + return getHandler().isConfigValid(); + } + + protected void reset() { + getHandler().reset(); + } + + protected void save() { + getHandler().save(); + dispose(); + } + + protected void doCheck(Element element) { + getHandler().doCheck(element); + } + + protected void changeAutheticationMode(VCSConnexionMode mode) { + getHandler().getModel().setConnexionMode(mode); + doCheck(Element.connexion); + } + + protected void changePrivateKeyFile() { + //TODO add title in lutinutil :) + File file = FileUtil.getFile(".*.pub$", _("lutinvcs.config.find.public.key")); + if (file != null) { + String path = file.getAbsolutePath(); + getPrivateKeyFile().setText(path.substring(0, path.length() - 4)); + doCheck(Element.privateKeyFile); + } + } + + protected void generateKey() { + //TODO + } + + protected void editRoot() { + //TODO + } + + protected void addRoot() { + //TODO + } + + protected void deleteRoot() { + //TODO + } + +} Modified: trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/VCSUIFactory.java =================================================================== --- trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/VCSUIFactory.java 2008-04-27 08:36:35 UTC (rev 631) +++ trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/VCSUIFactory.java 2008-04-27 08:38:00 UTC (rev 632) @@ -59,7 +59,7 @@ public static final DialogUIDef<DiffUIModel, DiffUI, DiffUIHandler> DIFF_UI; public static final DialogUIDef<ChangelogUIModel, ChangelogUI, ChangelogUIHandler> CHANGELOG_UI; public static final DialogUIDef<ConfirmUIModel, ConfirmUI, ConfirmUIHandler> CONFIRM_UI; - public static final DialogUIDef<ConfigUIModel, ConfigConnexionUI, ConfigUIHandler> CONFIG_UI; + public static final DialogUIDef<ConfigUIModel, ConnexionConfigUI, ConfigUIHandler> CONFIG_UI; public static final DialogUIDef<GenerateSshKeyUIModel, GenerateSshKeyUI, GenerateSshKeyUIHandler> GENERATE_SHH_KEY_UI; public static final DialogUIDef<IdentityUIModel, IdentityUI, IdentityUIHandler> IDENTITY_UI; public static final DialogUIDef<TestUIModel, TestUI, TestUIHandler> TEST_UI; @@ -132,7 +132,7 @@ n_("lutinvcs.action.show.confirmui"), n_("lutinvcs.action.show.confirmui.tip"), n_("lutinvcs.confirmui.title")); - CONFIG_UI = newDef(ConfigUIHandler.class, ConfigConnexionUI.class, ConfigUIModel.class, + CONFIG_UI = newDef(ConfigUIHandler.class, ConnexionConfigUI.class, ConfigUIModel.class, n_("lutinvcs.action.show.configui"), n_("lutinvcs.action.show.configui.tip"), n_("lutinvcs.configui.title")); Modified: trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/action/ShowConfigAction.java =================================================================== --- trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/action/ShowConfigAction.java 2008-04-27 08:36:35 UTC (rev 631) +++ trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/action/ShowConfigAction.java 2008-04-27 08:38:00 UTC (rev 632) @@ -15,7 +15,7 @@ package org.codelutin.vcs.ui.action; import org.codelutin.ui.DialogUIHandler; -import org.codelutin.vcs.ui.ConfigConnexionUI; +import org.codelutin.vcs.ui.ConnexionConfigUI; import org.codelutin.vcs.ui.VCSUIFactory; import org.codelutin.vcs.ui.handler.ConfigUIHandler; import org.codelutin.vcs.ui.model.ConfigUIModel; @@ -24,7 +24,7 @@ import java.awt.event.ActionEvent; /** @author chemit */ -public class ShowConfigAction extends AbstractVCSShowUIAction<ConfigUIModel, ConfigConnexionUI, ConfigUIHandler, DialogUIHandler<?, ?>> { +public class ShowConfigAction extends AbstractVCSShowUIAction<ConfigUIModel, ConnexionConfigUI, ConfigUIHandler, DialogUIHandler<?, ?>> { private static final long serialVersionUID = 1L; @@ -33,8 +33,8 @@ } @Override - protected ConfigConnexionUI initUI(ActionEvent e) { - ConfigConnexionUI ui = super.initUI(e); + protected ConnexionConfigUI initUI(ActionEvent e) { + ConnexionConfigUI ui = super.initUI(e); ui.getHandler().getModel().populate(getConfig()); ui.pack(); return ui; Modified: trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/action/TestConnexionAction.java =================================================================== --- trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/action/TestConnexionAction.java 2008-04-27 08:36:35 UTC (rev 631) +++ trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/action/TestConnexionAction.java 2008-04-27 08:38:00 UTC (rev 632) @@ -19,7 +19,7 @@ import org.codelutin.vcs.VCSConnexionConfig; import org.codelutin.vcs.VCSException; import org.codelutin.vcs.VCSFactory; -import org.codelutin.vcs.ui.ConfigConnexionUI; +import org.codelutin.vcs.ui.ConnexionConfigUI; import org.codelutin.vcs.ui.handler.ConfigUIHandler; import javax.swing.JOptionPane; @@ -32,7 +32,7 @@ private static final long serialVersionUID = 1L; - public TestConnexionAction(ConfigConnexionUI ui) { + public TestConnexionAction(ConnexionConfigUI ui) { super(null, org.codelutin.ui.UIHelper.createActionIcon("testconnexion"), ui); putValue(SHORT_DESCRIPTION, org.codelutin.i18n.I18n._("lutinvcs.config.test.tip")); //putValue(DISPLAYED_MNEMONIC_INDEX_KEY, 0); @@ -44,7 +44,7 @@ ConfigUIHandler uiHandler = getHandler(); VCSConnexionConfig config = uiHandler.getConfig(); VCSConnexion connexion = VCSFactory.newConnexion(config); - ConfigConnexionUI ui = uiHandler.getUi(); + ConnexionConfigUI ui = uiHandler.getUi(); boolean result = false; try { connexion.testConnection(); Modified: trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/handler/ConfigUIHandler.java =================================================================== --- trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/handler/ConfigUIHandler.java 2008-04-27 08:36:35 UTC (rev 631) +++ trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/handler/ConfigUIHandler.java 2008-04-27 08:38:00 UTC (rev 632) @@ -16,15 +16,15 @@ import org.codelutin.vcs.VCSConnexionConfig; import org.codelutin.vcs.type.VCSConnexionMode; -import org.codelutin.vcs.ui.ConfigConnexionUI; -import org.codelutin.vcs.ui.ConfigConnexionUI.Element; -import static org.codelutin.vcs.ui.ConfigConnexionUI.Element.login; -import static org.codelutin.vcs.ui.ConfigConnexionUI.Element.nopassphrase; -import static org.codelutin.vcs.ui.ConfigConnexionUI.Element.passphrase; -import static org.codelutin.vcs.ui.ConfigConnexionUI.Element.password; -import static org.codelutin.vcs.ui.ConfigConnexionUI.Element.privateKeyFile; -import static org.codelutin.vcs.ui.ConfigConnexionUI.Element.sshLogin; -import static org.codelutin.vcs.ui.ConfigConnexionUI.Element.values; +import org.codelutin.vcs.ui.ConnexionConfigUI; +import org.codelutin.vcs.ui.ConnexionConfigUI.Element; +import static org.codelutin.vcs.ui.ConnexionConfigUI.Element.login; +import static org.codelutin.vcs.ui.ConnexionConfigUI.Element.nopassphrase; +import static org.codelutin.vcs.ui.ConnexionConfigUI.Element.passphrase; +import static org.codelutin.vcs.ui.ConnexionConfigUI.Element.password; +import static org.codelutin.vcs.ui.ConnexionConfigUI.Element.privateKeyFile; +import static org.codelutin.vcs.ui.ConnexionConfigUI.Element.sshLogin; +import static org.codelutin.vcs.ui.ConnexionConfigUI.Element.values; import org.codelutin.vcs.ui.model.ConfigUIModel; import org.codelutin.vcs.ui.util.handler.AbstractUIHandler; @@ -40,12 +40,12 @@ import java.util.List; /** @author chemit */ -public class ConfigUIHandler extends AbstractUIHandler<ConfigUIModel, ConfigConnexionUI> { +public class ConfigUIHandler extends AbstractUIHandler<ConfigUIModel, ConnexionConfigUI> { protected List<Element> errors; - public ConfigUIHandler(ConfigConnexionUI ui, VCSConnexionConfig config) { + public ConfigUIHandler(ConnexionConfigUI ui, VCSConnexionConfig config) { super(ui, new ConfigUIModel(), config); ui.setHandler(this); errors = new ArrayList<Element>(); @@ -53,7 +53,7 @@ public void init() { super.init(); - ConfigConnexionUI ui = getUi(); + ConnexionConfigUI ui = getUi(); JPanel connexionPanel = ui.getConnexionPanel(); connexionPanel.add(ui.getAnonymousPanel(), VCSConnexionMode.ANONYMOUS.name()); connexionPanel.add(ui.getPasswordPanel(), VCSConnexionMode.PASSWORD.name()); @@ -98,7 +98,7 @@ public synchronized List<Element> validateModel(Element element) { errors.clear(); - ConfigConnexionUI ui = getUi(); + ConnexionConfigUI ui = getUi(); if (element != null) { // compute modifed setModified(element, ui); @@ -129,7 +129,7 @@ return errors; } - public void setModified(Element element, ConfigConnexionUI ui) { + public void setModified(Element element, ConnexionConfigUI ui) { boolean modify = false; ConfigUIModel model = getModel(); @@ -198,7 +198,7 @@ } protected void populateUI(ConfigUIModel model) { - ConfigConnexionUI ui = getUi(); + ConnexionConfigUI ui = getUi(); VCSConnexionConfig config = model.getConfig(); switch (config.getMode()) { case ANONYMOUS: @@ -218,7 +218,7 @@ } protected void updateUI(final VCSConnexionMode mode) { - ConfigConnexionUI ui = getUi(); + ConnexionConfigUI ui = getUi(); //getModel().removeModified(sshLogin, nopassphrase, passphrase, privateKeyFile, login, password); switch (mode) { case ANONYMOUS: @@ -246,7 +246,7 @@ } protected void updateUI(List<Element> errors) { - ConfigConnexionUI ui = getUi(); + ConnexionConfigUI ui = getUi(); boolean valid = isConfigValid(); ui.getOk().setEnabled(valid && getModel().isModified()); //ui.getTestConnection().setEnabled(valid); Modified: trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/model/ConfigUIModel.java =================================================================== --- trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/model/ConfigUIModel.java 2008-04-27 08:36:35 UTC (rev 631) +++ trunk/lutinvcs/ui/common/src/main/java/org/codelutin/vcs/ui/model/ConfigUIModel.java 2008-04-27 08:38:00 UTC (rev 632) @@ -16,14 +16,14 @@ import org.codelutin.vcs.VCSConnexionConfig; import org.codelutin.vcs.type.VCSConnexionMode; -import org.codelutin.vcs.ui.ConfigConnexionUI.Element; -import static org.codelutin.vcs.ui.ConfigConnexionUI.Element.connexion; -import static org.codelutin.vcs.ui.ConfigConnexionUI.Element.login; -import static org.codelutin.vcs.ui.ConfigConnexionUI.Element.nopassphrase; -import static org.codelutin.vcs.ui.ConfigConnexionUI.Element.passphrase; -import static org.codelutin.vcs.ui.ConfigConnexionUI.Element.password; -import static org.codelutin.vcs.ui.ConfigConnexionUI.Element.privateKeyFile; -import static org.codelutin.vcs.ui.ConfigConnexionUI.Element.sshLogin; +import org.codelutin.vcs.ui.ConnexionConfigUI.Element; +import static org.codelutin.vcs.ui.ConnexionConfigUI.Element.connexion; +import static org.codelutin.vcs.ui.ConnexionConfigUI.Element.login; +import static org.codelutin.vcs.ui.ConnexionConfigUI.Element.nopassphrase; +import static org.codelutin.vcs.ui.ConnexionConfigUI.Element.passphrase; +import static org.codelutin.vcs.ui.ConnexionConfigUI.Element.password; +import static org.codelutin.vcs.ui.ConnexionConfigUI.Element.privateKeyFile; +import static org.codelutin.vcs.ui.ConnexionConfigUI.Element.sshLogin; import org.codelutin.vcs.ui.util.model.AbstractUIModel; import java.io.File;