Package com.sshtools.common.configuration

Examples of com.sshtools.common.configuration.SshToolsConnectionProfile


        if (connectImmediately) {
            loadingPanel.setStatus("Connecting");

            if (showConnectionDialog) {
                SshToolsConnectionProfile newProfile = ((SshToolsApplicationClientPanel) applicationPanel).newConnectionProfile(profile);

                if (newProfile != null) {
                    profile = newProfile;
                    ((SshToolsApplicationClientPanel) applicationPanel).connect(profile,
                        true);
View Full Code Here


*
*
* @throws IOException
*/
    protected void buildProfile() throws IOException {
        profile = new SshToolsConnectionProfile();

        //  Load the connection profile if specified
        if (!connectionProfileLocation.equals("")) {
            log.info("Loading connection profile " + connectionProfileLocation);
            loadingPanel.setStatus("Loading connection profile");
View Full Code Here

            // Get the file
            File f = fileDialog.getSelectedFile();

            // Load the profile
            SshToolsConnectionProfile p = new SshToolsConnectionProfile();

            try {
                p.open(f);

                if (editConnection(p)) {
                    saveConnection(false, f, p);
                }
            } catch (IOException ioe) {
View Full Code Here

        }

        // Make sure its not invalid
        if (f != null) {
            // Create a new connection properties object
            SshToolsConnectionProfile profile = new SshToolsConnectionProfile();

            try {
                // Open the file
                profile.open(f.getAbsolutePath());
                setNeedSave(false);
                currentConnectionFile = f;
                setContainerTitle(f);

                // Connect with the new details.
View Full Code Here

    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(
View Full Code Here

            // Get the file
            File f = fileDialog.getSelectedFile();

            // Load the profile
            SshToolsConnectionProfile p = new SshToolsConnectionProfile();

            try {
                p.open(f);

                if (editConnection(p)) {
                    saveConnection(false, f, p);
                }
            } catch (IOException ioe) {
View Full Code Here

        }

        // Make sure its not invalid
        if (f != null) {
            // Create a new connection properties object
            SshToolsConnectionProfile profile = new SshToolsConnectionProfile();

            try {
                // Open the file
                profile.open(f.getAbsolutePath());
                setNeedSave(false);
                currentConnectionFile = f;
                setContainerTitle(f);

                // Connect with the new details.
View Full Code Here

    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(
View Full Code Here

        if (connectImmediately) {
            loadingPanel.setStatus("Connecting");

            if (showConnectionDialog) {
                SshToolsConnectionProfile newProfile = ((SshToolsApplicationClientPanel) applicationPanel).newConnectionProfile(profile);

                if (newProfile != null) {
                    profile = newProfile;
                    ((SshToolsApplicationClientPanel) applicationPanel).connect(profile,
                        true);
View Full Code Here

*
*
* @throws IOException
*/
    protected void buildProfile() throws IOException {
        profile = new SshToolsConnectionProfile();

        //  Load the connection profile if specified
        if (!connectionProfileLocation.equals("")) {
            log.info("Loading connection profile " + connectionProfileLocation);
            loadingPanel.setStatus("Loading connection profile");
View Full Code Here

TOP

Related Classes of com.sshtools.common.configuration.SshToolsConnectionProfile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.