/**
 * 
 */
package org.mwc.cmap.core.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;

public class ETOPOPreferenceInitializer extends AbstractPreferenceInitializer {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	public void initializeDefaultPreferences() {
	}

}
@@ -56,74 +56,250 @@
 ort 
-org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
+java.io.IOException;%0Aimport java.net.URL;%0A%0Aimport org.eclipse.core.runtime.*;%0Aimport org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;%0Aimport org.eclipse.jface.preference.IPreferenceStore;%0Aimport org.mwc.cmap.core.CorePlugin
 ;%0A%0Ap
@@ -563,13 +563,672 @@
 ces() %7B%0A
+%09%09%0A%09%09// hmm, set the default location%0A%09%09Path coastPath = new Path(%22data/etopo.raw%22);%0A%09%09%0A%09%09// and get the relative path compared to the Core Plugin%0A%09%09URL fileURL = Platform.find(CorePlugin.getDefault().getBundle(), coastPath);%0A%09%09%0A%09%09// right, that's the relative location, switch to absolute path%0A%09%09try%0A%09%09%7B%0A%09%09%09fileURL = Platform.asLocalURL(fileURL);%0A%09%09%7D%0A%09%09catch (IOException e)%0A%09%09%7B%0A%09%09%09CorePlugin.logError(Status.ERROR, %22Unable to find ETOPO data-file%22, e);%0A%09%09%7D%0A%09%09%0A%09%09// and store the default location%0A%09%09IPreferenceStore store = CorePlugin.getDefault().getPreferenceStore();%0A%09%09store.setDefault(ETOPOPrefsPage.PreferenceConstants.ETOPO_FILE,fileURL.getFile());%0A%09%09%0A
 %09%7D%0A%0A%7D

Initialise where the ETOPO bits are