package org.csstudio.alarm.table.preferences;

import org.csstudio.alarm.table.JmsLogsPlugin;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;


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

	/*
	 * (non-Javadoc)
	 *
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	public void initializeDefaultPreferences() {
		IPreferenceStore store = JmsLogsPlugin.getDefault().getPreferenceStore();
		store.setDefault(AlarmViewerPreferenceConstants.P_STRINGAlarm,
				"TYPE" + ";" + //$NON-NLS-1$ //$NON-NLS-2$
				"EVENTTIME" + ";" + //$NON-NLS-1$ //$NON-NLS-2$
				"TEXT" + ";" + //$NON-NLS-1$ //$NON-NLS-2$
				"USER" + ";" + //$NON-NLS-1$ //$NON-NLS-2$
				"HOST" + ";" + //$NON-NLS-1$ //$NON-NLS-2$
				"APPLICATION-ID" + ";" + //$NON-NLS-1$ //$NON-NLS-2$
				"PROCESS-ID" + ";" + //$NON-NLS-1$ //$NON-NLS-2$
				"NAME" + ";" + //$NON-NLS-1$ //$NON-NLS-2$
				"CLASS" + ";" + //$NON-NLS-1$ //$NON-NLS-2$
				"DOMAIN" + ";" + //$NON-NLS-1$ //$NON-NLS-2$
				"FACILITY" + ";" + //$NON-NLS-1$ //$NON-NLS-2$
				"LOCATION" + ";" + //$NON-NLS-1$ //$NON-NLS-2$
				"SEVERITY" + ";" + //$NON-NLS-1$ //$NON-NLS-2$
				"STATUS" + ";" + //$NON-NLS-1$ //$NON-NLS-2$
				"VALUE" + ";" + //$NON-NLS-1$ //$NON-NLS-2$
				"DESTINATION" //$NON-NLS-1$
		);

		store.setDefault(AlarmViewerPreferenceConstants.MAX, 100);
		store.setDefault(AlarmViewerPreferenceConstants.REMOVE, 10);
		store.setDefault(AlarmViewerPreferenceConstants.INITIAL_PRIMARY_CONTEXT_FACTORY, "org.exolab.jms.jndi.InitialContextFactory"); //$NON-NLS-1$
		store.setDefault(AlarmViewerPreferenceConstants.PRIMARY_URL, "rmi://krykelog.desy.de:1099/"); //$NON-NLS-1$
		store.setDefault(AlarmViewerPreferenceConstants.INITIAL_SECONDARY_CONTEXT_FACTORY, "org.exolab.jms.jndi.InitialContextFactory"); //$NON-NLS-1$
		store.setDefault(AlarmViewerPreferenceConstants.SECONDARY_URL, "rmi://krynfs.desy.de:1099/"); //$NON-NLS-1$
		store.setDefault(AlarmViewerPreferenceConstants.QUEUE, "LOG"); //$NON-NLS-1$
	}

}

@@ -715,98 +715,42 @@
 ;%22 +
- //$NON-NLS-1$ //$NON-NLS-2$%0A%09%09%09%09%22EVENTTIME%22 + %22;%22 + //$NON-NLS-1$ //$NON-NLS-2$
+%0A%09%09%09%09%22EVENTTIME%22 + %22;%22 +
 %0A%09%09%09%09%22
-TEXT
+NAME
 %22 + 
@@ -758,250 +758,101 @@
 ;%22 +
- //$NON-NLS-1$ //$NON-NLS-2$%0A%09%09%09%09%22USER%22 + %22;%22 + //$NON-NLS-1$ //$NON-NLS-2$%0A%09%09%09%09%22HOST%22 + %22;%22 + //$NON-NLS-1$ //$NON-NLS-2$%0A%09%09%09%09%22APPLICATION-ID%22 + %22;%22 + //$NON-NLS-1$ //$NON-NLS-2$%0A%09%09%09%09%22PROCESS-ID%22 + %22;%22 + //$NON-NLS-1$ //$NON-NLS-2$
+%0A%09%09%09%09%22SEVERITY%22 + %22;%22 +%0A%09%09%09%09%22STATUS%22 + %22;%22 +%0A%09%09%09%09%22VALUE%22 + %22;%22 +%0A%09%09%09%09%22TEXT%22 + %22;%22 +
 %0A%09%09%09%09%22
-NAME
+USER
 %22 + 
@@ -860,47 +860,18 @@
 ;%22 +
- //$NON-NLS-1$ //$NON-NLS-2$
 %0A%09%09%09%09%22
-CLASS
+HOST
 %22 + 
@@ -879,198 +879,114 @@
 ;%22 +
- //$NON-NLS-1$ //$NON-NLS-2$%0A%09%09%09%09%22DOMAIN%22 + %22;%22 + //$NON-NLS-1$ //$NON-NLS-2$%0A%09%09%09%09%22FACILITY%22 + %22;%22 + //$NON-NLS-1$ //$NON-NLS-2$%0A%09%09%09%09%22LOCATION%22 + %22;%22 + //$NON-NLS-1$ //$NON-NLS-2$
+%0A%09%09%09%09%22APPLICATION-ID%22 + %22;%22 +%0A%09%09%09%09%22PROCESS-ID%22 + %22;%22 +%0A%09%09%09%09%22CLASS%22 + %22;%22 +%0A%09%09%09%09%22DOMAIN%22 + %22;%22 +
 %0A%09%09%09%09%22
-SEVER
+FACIL
 ITY%22
@@ -997,133 +997,51 @@
 ;%22 +
- //$NON-NLS-1$ //$NON-NLS-2$%0A%09%09%09%09%22STATUS%22 + %22;%22 + //$NON-NLS-1$ //$NON-NLS-2$%0A%09%09%09%09%22VALUE%22 + %22;%22 + //$NON-NLS-1$ //$NON-NLS-2$
+%0A%09%09%09%09%22LOCATION%22 + %22;%22 +%0A%09%09%09%09%22VALUE%22 + %22;%22 +
 %0A%09%09%09
@@ -1054,30 +1054,16 @@
 INATION%22
- //$NON-NLS-1$
 %0A%09%09);%0A%0A%09
@@ -1755,28 +1755,16 @@
 E, %22
-LOG%22); //$NON-NLS-1$
+ALARM%22);
 %0A%09%7D%0A

Change order of table constants