1 package com.quantum.preferences;
4 import com.quantum.QuantumPlugin;
6 import org.eclipse.jface.preference.FieldEditorPreferencePage;
7 import org.eclipse.jface.preference.IPreferenceStore;
8 import org.eclipse.jface.preference.StringFieldEditor;
9 import org.eclipse.ui.IWorkbench;
10 import org.eclipse.ui.IWorkbenchPreferencePage;
12 public class CopyPreferences
13 extends FieldEditorPreferencePage
14 implements IWorkbenchPreferencePage {
16 public CopyPreferences() {
17 super(FieldEditorPreferencePage.GRID);
19 // Set the preference store for the preference page.
20 IPreferenceStore store =
21 QuantumPlugin.getDefault().getPreferenceStore();
22 setPreferenceStore(store);
25 public void init(IWorkbench workbench) {
26 this.workbench = workbench;
31 protected void createFieldEditors() {
32 StringFieldEditor copyColumnSeparator = new StringFieldEditor("copyColumnSeparator", "&Normal Copy Separator:", getFieldEditorParent());
34 addField(copyColumnSeparator);