Package fr.soleil.salsa.client.controller.impl

Examples of fr.soleil.salsa.client.controller.impl.ApplicationController


     */
    public ApplicationView(ApplicationController applicationController, boolean aScanResult) {
        super();
        scanResult = aScanResult;
        if (applicationController == null) {
            applicationController = new ApplicationController(this, aScanResult);
        }
        this.controller = applicationController;
        devicePreferences = null;
        preferences = null;
        ResourceBundle bundle;
View Full Code Here


     * @param applicationController
     */
    public ApplicationView(ApplicationController applicationController) {
        super();
        if (applicationController == null) {
            applicationController = new ApplicationController(this);
        }
        this.controller = applicationController;
        devicePreferences = null;
        preferences = null;
        ResourceBundle bundle;
View Full Code Here

                splash.progress(100);
                splash.setVisible(false);
            } else {
                splash.setMessage("Building controller ...");
                // try {
                final ApplicationController applicationController = new ApplicationController(resultMode);
                applicationController.getView().setIconImages(iconList);

                splash.progress(40);

                SwingUtilities.invokeLater(new Runnable() {
                    public void run() {
                        try {
                            splash.setMessage("Loading preferences ...");
                            applicationController.loadPreferences();
                            splash.progress(50);
                        } catch (SalsaPreferencesException e1) {
                            LOGGER.error("Cannot load preferences {}", e1.getMessage());
                            LOGGER.trace("Stack trace", e1);
                            printCorrectUsageAndExit(e1);
                        }

                        splash.setMessage("Building GUI ...");
                        applicationController.setViewVisible(true);
                        splash.toFront();
                        splash.progress(60);

                        try {
                            splash.setMessage("Loading perspective ...");
                            applicationController.loadLastPerspective(perspectiveName);
                            splash.progress(70);

                            splash.setMessage("Set default configuration ...");
                            applicationController.setConfigPath(configName);
                            splash.progress(80);
                        } catch (SalsaPerspectiveException e) {
                            LOGGER.error("Cannot loadLastPerspective{} {} ", perspectiveName, e.getMessage());
                            LOGGER.trace("Stack trace", e);
                        }

                        splash.setMessage("Loading last window bounds ...");
                        applicationController.loadLastWindowBounds();
                        splash.progress(90);

                        splash.progress(100);
                        splash.setVisible(false);
View Full Code Here

        }
        else {

            splash.setMessage("Building controller ...");
            // try {
            final ApplicationController applicationController = new ApplicationController();

            splash.progress(40);

            SwingUtilities.invokeLater(new Runnable() {
                public void run() {

                    try {
                        splash.setMessage("Loading preferences ...");
                        applicationController.loadPreferences();
                        splash.progress(50);
                    }
                    catch (SalsaPreferencesException e1) {
                        printCorrectUsageAndExit(e1);
                    }

                    splash.setMessage("Building GUI ...");
                    applicationController.setConfig(null);
                    applicationController.setViewVisible(true);
                    splash.toFront();
                    splash.progress(60);

                    try {
                        splash.setMessage("Loading perspective ...");
                        applicationController.loadLastPerspective();
                        splash.progress(70);
                    }
                    catch (SalsaPerspectiveException e) {
                        e.printStackTrace();
                    }

                    splash.setMessage("Loading last window bounds ...");
                    applicationController.loadLastWindowBounds();
                    splash.progress(80);

                    splash.setMessage("Refreshing historic log ...");
                    applicationController.refreshHistoricLog();
                    splash.progress(90);

                    splash.progress(100);
                    splash.setVisible(false);
View Full Code Here

     */
    public ApplicationView(ApplicationController applicationController, boolean aScanResult) {
        super();
        scanResult = aScanResult;
        if (applicationController == null) {
            applicationController = new ApplicationController(this, aScanResult);
        }
        this.controller = applicationController;
        devicePreferences = null;
        preferences = null;
        ResourceBundle bundle;
View Full Code Here

        }
        else {

            splash.setMessage("Building controller ...");
            // try {
            final ApplicationController applicationController = new ApplicationController();

            splash.progress(40);

            SwingUtilities.invokeLater(new Runnable() {
                public void run() {

                    try {
                        splash.setMessage("Loading preferences ...");
                        applicationController.loadPreferences();
                        splash.progress(50);
                    }
                    catch (SalsaPreferencesException e1) {
                        printCorrectUsageAndExit(e1);
                    }

                    splash.setMessage("Building GUI ...");
                    applicationController.setConfig(null);
                    applicationController.setViewVisible(true);
                    splash.toFront();
                    splash.progress(60);

                    try {
                        splash.setMessage("Loading perspective ...");
                        applicationController.loadLastPerspective();
                        splash.progress(70);
                    }
                    catch (SalsaPerspectiveException e) {
                        e.printStackTrace();
                    }

                    splash.setMessage("Loading last window bounds ...");
                    applicationController.loadLastWindowBounds();
                    splash.progress(80);

                    splash.setMessage("Refreshing historic log ...");
                    applicationController.refreshHistoricLog();
                    splash.progress(90);

                    splash.progress(100);
                    splash.setVisible(false);
View Full Code Here

     * @param applicationController
     */
    public ApplicationView(ApplicationController applicationController) {
        super();
        if (applicationController == null) {
            applicationController = new ApplicationController(this);
        }
        this.controller = applicationController;
        devicePreferences = null;
        preferences = null;
        ResourceBundle bundle;
View Full Code Here

            printCorrectUsageAndExit(new SalsaMissingPropertyException("SALSA_LOGIN"));
        }
        else {

            splash.setMessage("Building controller ...");
            final ApplicationController applicationController = new ApplicationController();
            splash.progress(40);

            SwingUtilities.invokeLater(new Runnable() {
                public void run() {

                    try {
                        splash.setMessage("Loading preferences ...");
                        applicationController.loadPreferences();
                        splash.progress(50);
                    }
                    catch (SalsaPreferencesException e1) {
                        printCorrectUsageAndExit(e1);
                    }

                    splash.setMessage("Building GUI ...");
                    applicationController.setConfig(null);
                    applicationController.setViewVisible(true);
                    splash.toFront();
                    splash.progress(60);

                    try {
                        splash.setMessage("Loading perspective ...");
                        applicationController.loadLastPerspective();
                        splash.progress(70);
                    }
                    catch (SalsaPerspectiveException e) {
                        e.printStackTrace();
                    }

                    splash.setMessage("Loading last window bounds ...");
                    applicationController.loadLastWindowBounds();
                    splash.progress(80);

                    splash.setMessage("Refreshing historic log ...");
                    applicationController.refreshHistoricLog();
                    splash.progress(90);

                    splash.progress(100);
                    splash.setVisible(false);
View Full Code Here

     * @param applicationController
     */
    public ApplicationView(ApplicationController applicationController) {
        super();
        if (applicationController == null) {
            applicationController = new ApplicationController(this);
        }
        this.controller = applicationController;
        devicePreferences = null;
        preferences = null;
        ResourceBundle bundle;
View Full Code Here

                splash.setVisible(false);
            }
            else {
                splash.setMessage("Building controller ...");
                // try {
                final ApplicationController applicationController = new ApplicationController(
                        resultMode);

                splash.progress(40);

                SwingUtilities.invokeLater(new Runnable() {
                    public void run() {
                        try {
                            splash.setMessage("Loading preferences ...");
                            applicationController.loadPreferences();
                            splash.progress(50);
                        }
                        catch (SalsaPreferencesException e1) {
                            printCorrectUsageAndExit(e1);
                        }

                        splash.setMessage("Building GUI ...");
                        applicationController.setViewVisible(true);
                        splash.toFront();
                        splash.progress(60);

                        try {
                            splash.setMessage("Loading perspective ...");
                            applicationController.loadLastPerspective(perspectiveName);
                            splash.progress(70);

                            splash.setMessage("Set default configuration ...");
                            applicationController.setConfigPath(configName);
                            splash.progress(80);
                        }
                        catch (SalsaPerspectiveException e) {
                            // e.printStackTrace();
                        }

                        splash.setMessage("Loading last window bounds ...");
                        applicationController.loadLastWindowBounds();
                        splash.progress(90);

                        splash.progress(100);
                        splash.setVisible(false);
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.client.controller.impl.ApplicationController

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.