eclipse plugin: fix creation of the preferences file
This commit is contained in:
parent
56246d3844
commit
ba3e65b4db
2 changed files with 5 additions and 4 deletions
|
@ -5,6 +5,6 @@ package wesnoth_eclipse_plugin.preferences;
|
|||
*/
|
||||
public class PreferenceConstants {
|
||||
|
||||
public static final String P_WESNOTH_EXEC_PATH = "";
|
||||
public static final String P_WESNOTH_WORKING_DIR ="";
|
||||
public static final String P_WESNOTH_EXEC_PATH = "wesnoth_exec_path";
|
||||
public static final String P_WESNOTH_WORKING_DIR ="wesnoth_working_dir";
|
||||
}
|
||||
|
|
|
@ -17,8 +17,9 @@ public class PreferenceInitializer extends AbstractPreferenceInitializer {
|
|||
*/
|
||||
@Override
|
||||
public void initializeDefaultPreferences() {
|
||||
//IPreferenceStore store = Activator.getDefault().getPreferenceStore();
|
||||
//store.setDefault(name, value)
|
||||
IPreferenceStore store = Activator.getDefault().getPreferenceStore();
|
||||
store.setDefault(PreferenceConstants.P_WESNOTH_EXEC_PATH, "");
|
||||
store.setDefault(PreferenceConstants.P_WESNOTH_WORKING_DIR, "");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue