Package fr.soleil.salsa.exception

Examples of fr.soleil.salsa.exception.SalsaMissingPropertyException


        String serverUrl = SystemUtils.getSystemProperty("SALSA_SERVER_URL");
        String login = SystemUtils.getSystemProperty("SALSA_LOGIN");
        splash.progress(20);

        if (tangoHost == null || tangoHost.trim().isEmpty()) {
            printCorrectUsageAndExit(new SalsaMissingPropertyException("TANGO_HOST"));
        }
        else if (serverUrl == null || serverUrl.trim().isEmpty()) {
            printCorrectUsageAndExit(new SalsaMissingPropertyException("SALSA_SERVER_URL"));
        }
        else if (login == null || login.trim().isEmpty()) {
            printCorrectUsageAndExit(new SalsaMissingPropertyException("SALSA_LOGIN"));
        }
        else {

            splash.setMessage("Building controller ...");
            final ApplicationController applicationController = new ApplicationController();
View Full Code Here


    public static String PREFERENCE_FILE_PROPERTY = "SALSA_UI_PREFERENCES";

    protected static void loadSystemPreferences() throws SalsaPreferencesException {
        String preferencePath = SystemUtils.getSystemProperty(PREFERENCE_FILE_PROPERTY);
        if ((preferencePath == null) || preferencePath.trim().isEmpty()) {
            throw new SalsaMissingPropertyException(PREFERENCE_FILE_PROPERTY);
        } else {
            load(preferencePath);
        }
    }
View Full Code Here

    public static UIPreferences loadSystemPreferences() throws SalsaPreferencesException {
        if (uiPreferences == null) {
            String preferencePath = SystemUtils.getSystemProperty(PREFERENCE_FILE_PROPERTY);
            if ((preferencePath == null) || preferencePath.trim().isEmpty()) {
                throw new SalsaMissingPropertyException(PREFERENCE_FILE_PROPERTY);
            } else {
                uiPreferences = load(preferencePath);
            }
        }
        return uiPreferences;
View Full Code Here

     * @param menuBarViewTool
     */
    public void init() throws SalsaPreferencesException {
        String preferenceDirectory = SystemUtils.getSystemProperty(DIRECTORY_PROPERTY);
        if ((preferenceDirectory == null) || (preferenceDirectory.trim().isEmpty())) {
            throw new SalsaMissingPropertyException(DIRECTORY_PROPERTY);
        }
        else {
            // add menu items for default perspectives
            for (String defaultPerspective : PERSPECTIVES) {
                updateJMenu(defaultPerspective);
View Full Code Here

        }

        salsaResult.setBatch(salsaExecute);

        if (tangoHost == null || tangoHost.trim().isEmpty()) {
            printCorrectUsageAndExit(new SalsaMissingPropertyException("TANGO_HOST"));
        }
        else if (serverUrl == null || serverUrl.trim().isEmpty()) {
            printCorrectUsageAndExit(new SalsaMissingPropertyException("SALSA_SERVER_URL"));
        }
        else if (login == null || login.trim().isEmpty()) {
            printCorrectUsageAndExit(new SalsaMissingPropertyException("SALSA_LOGIN"));
        }
        else {
            // Launch SalsaTrajectoryBean with specified config
            if (roMode) {
                splash.setMessage("Build Salsa read only panel");
View Full Code Here

    public static UIPreferences loadSystemPreferences() throws SalsaPreferencesException {
      if(uiPreferences == null){
            String preferencePath = SystemUtils.getSystemProperty(PREFERENCE_FILE_PROPERTY);
          if ((preferencePath == null) || preferencePath.trim().isEmpty()) {
              throw new SalsaMissingPropertyException(PREFERENCE_FILE_PROPERTY);
          }
          else {
            uiPreferences =  load(preferencePath);
          }
      }
View Full Code Here

    public static UIPreferences loadSystemPreferences() throws SalsaPreferencesException {
        if (uiPreferences == null) {
            String preferencePath = SystemUtils.getSystemProperty(PREFERENCE_FILE_PROPERTY);
            if ((preferencePath == null) || preferencePath.trim().isEmpty()) {
                throw new SalsaMissingPropertyException(PREFERENCE_FILE_PROPERTY);
            }
            else {
                uiPreferences = load(preferencePath);
            }
        }
View Full Code Here

     * @param menuBarViewTool
     */
    public void init() throws SalsaPreferencesException {
        String preferenceDirectory = SystemUtils.getSystemProperty(DIRECTORY_PROPERTY);
        if ((preferenceDirectory == null) || (preferenceDirectory.trim().isEmpty())) {
            throw new SalsaMissingPropertyException(DIRECTORY_PROPERTY);
        }
        else {
            // add menu items for default perspectives
            for (String defaultPerspective : PERSPECTIVES) {
                updateJMenu(defaultPerspective);
View Full Code Here

    public static UIPreferences loadSystemPreferences() throws SalsaPreferencesException {
        if (uiPreferences == null) {
            String preferencePath = SystemUtils.getSystemProperty(PREFERENCE_FILE_PROPERTY);
            if ((preferencePath == null) || preferencePath.trim().isEmpty()) {
                throw new SalsaMissingPropertyException(PREFERENCE_FILE_PROPERTY);
            }
            else {
                uiPreferences = load(preferencePath);
            }
        }
View Full Code Here

        }

        salsaResult.setBatch(salsaExecute);

        if (tangoHost == null || tangoHost.trim().isEmpty()) {
            printCorrectUsageAndExit(new SalsaMissingPropertyException("TANGO_HOST"));
        }
        else if (serverUrl == null || serverUrl.trim().isEmpty()) {
            printCorrectUsageAndExit(new SalsaMissingPropertyException("SALSA_SERVER_URL"));
        }
        else if (login == null || login.trim().isEmpty()) {
            printCorrectUsageAndExit(new SalsaMissingPropertyException("SALSA_LOGIN"));
        }
        else {
            // Launch SalsaTrajectoryBean with specified config
            if (roMode) {
                splash.setMessage("Build Salsa read only panel");
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.exception.SalsaMissingPropertyException

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.