package eu.scasefp7.eclipse.core.ui.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import eu.scasefp7.eclipse.core.ui.Activator;
import eu.scasefp7.eclipse.core.ui.ScaseUiConstants;

/**
 * Class used to initialize default preference values.
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {

	@Override
    public void initializeDefaultPreferences() {
		IPreferenceStore store = Activator.getDefault().getPreferenceStore();

	    store.setDefault(PreferenceConstants.P_PROJECT_DOMAIN, ScaseUiConstants.PROP_PROJECT_DOMAIN_DEFAULT);
		store.setDefault(PreferenceConstants.P_USE_PROJECT_PREFS, false);
		store.setDefault(PreferenceConstants.P_NLP_ENDPOINT, "http://nlp.scasefp7.eu:8010/"); //$NON-NLS-1$
        store.setDefault(PreferenceConstants.P_UML_ENDPOINT, "http://uml.scasefp7.com/"); //$NON-NLS-1$
        store.setDefault(PreferenceConstants.P_ONTOREPO_ENDPOINT, "http://109.231.126.165:8080"); //$NON-NLS-1$
        store.setDefault(PreferenceConstants.P_WSC_ENDPOINT, "http://109.231.127.61:8080"); //$NON-NLS-1$
        
        IPreferenceStore secureStore = Activator.getDefault().getSecurePreferenceStore();
        secureStore.setDefault(PreferenceConstants.P_CONTROLTOWER_ENDPOINT, "https://app.scasefp7.com/"); //$NON-NLS-1$
        secureStore.setDefault(PreferenceConstants.P_CONTROLTOWER_SECRET, "ctSecret"); 
        secureStore.setDefault(PreferenceConstants.P_CONTROLTOWER_TOKEN, "ctToken"); 
	}
}

@@ -820,17 +820,17 @@
 p7.eu:80
-1
+8
 0/%22); //
@@ -919,32 +919,37 @@
 uml.scasefp7.com
+:8080
 /%22); //$NON-NLS-
@@ -1030,23 +1030,25 @@
 p://
-109.231.126.165
+repo.scasefp7.com
 :808
@@ -1140,22 +1140,24 @@
 p://
-109.231.127.61
+wsc.scasefp7.com
 :808

Update default server addresses in preferences