Examples of IPreferenceService


Examples of org.fenrir.yggdrasil.core.service.IPreferenceService

        return pContents;
    }

    private void initializeForm()
    {
        IPreferenceService preferenceService = (IPreferenceService)ApplicationContext.getInstance().getRegisteredComponent(IPreferenceService.class);

        String strWorkspaceDirectory = preferenceService.getProperty(CoreConstants.PREFERENCES_WORKSPACE_CURRENT);
        inputDirectori.setText(strWorkspaceDirectory);
       
        if(StringUtils.isNotBlank(strWorkspaceDirectory)){
            Map<String, String> variables = new HashMap<String, String>();
            variables.put("folder", strWorkspaceDirectory);       
            boolean isDefaultWorkspace = IPreferenceService.CONFIGURATION_VALUE_TRUE.equals(preferenceService.getProperty(CoreConstants.PREFERENCES_WORKSPACE_IS_DEFAULT, variables));
            checkDefault.setSelected(isDefaultWorkspace);
        }
    }
View Full Code Here

Examples of org.fenrir.yggdrasil.core.service.IPreferenceService

            {               
                // S'especifica el look and feel. Si no es troba per defecte serà el del sistema
                String laf = null;               
                // Pot ser que encara no estigui creat el contexte de l'aplicació
                try{
                    IPreferenceService preferenceService = (IPreferenceService)ApplicationContext.getInstance().getRegisteredComponent(IPreferenceService.class);
                    laf = preferenceService.getProperty(UIConstants.PREFERENCES_UI_LOOK_AND_FEEL_SKIN);                   
                }
                catch(Exception e){
                    log.warn("Error obtenint el contexte de l'aplicació: {}", e.getMessage(), e);                   
                }
                if(StringUtils.isBlank(laf)){
View Full Code Here

Examples of org.fenrir.yggdrasil.core.service.IPreferenceService

        if(log.isDebugEnabled()){
            log.debug("Configurant contexte del workspace");
        }
       
        ApplicationContext applicationContext = ApplicationContext.getInstance();
        IPreferenceService preferenceService = (IPreferenceService)applicationContext.getRegisteredComponent(IPreferenceService.class);

        /* Configuració del proxy */
        String httpProxyHost = preferenceService.getProperty(CoreConstants.PREFERENCES_PROXY_HOST);
        if(StringUtils.isNotBlank(httpProxyHost)){
            String httpProxyPort = preferenceService.getProperty(CoreConstants.PREFERENCES_PROXY_PORT, CoreConstants.PREFERENCES_HTTP_PROXY_PORT_DEFAULT);
            System.setProperty("http.proxyHost", httpProxyHost);
            System.setProperty("http.proxyPort", httpProxyPort);
        }

        /* Es programen les tasques automàtiques configurades en inicialitzar l'aplicació
View Full Code Here

Examples of org.rssowl.core.persist.service.IPreferenceService

    // eclipse preferences.
    //Preferences lPreferences = Activator.getDefault().getPluginPreferences();
    // What do we do with this?
   
    // Owl preferences.
    IPreferenceService lPrefs = Owl.getPreferenceService();
    IPreferenceScope lDefaultScope = lPrefs.getDefaultScope();
    DefaultPreferences lPodcastPreferences = new DefaultPreferences();
    lPodcastPreferences.initialize(lDefaultScope);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.