initial quantum version
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / preferences / CustomCopyPreferences2.java
diff --git a/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/preferences/CustomCopyPreferences2.java b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/preferences/CustomCopyPreferences2.java
new file mode 100644 (file)
index 0000000..ad0fbf4
--- /dev/null
@@ -0,0 +1,46 @@
+package com.quantum.preferences;
+
+
+import com.quantum.QuantumPlugin;
+
+import org.eclipse.jface.preference.FieldEditorPreferencePage;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.StringFieldEditor;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPreferencePage;
+
+public class CustomCopyPreferences2 
+       extends FieldEditorPreferencePage 
+       implements IWorkbenchPreferencePage {
+
+               public CustomCopyPreferences2() {
+                       super(FieldEditorPreferencePage.GRID);
+               
+                       // Set the preference store for the preference page.
+                       IPreferenceStore store =
+                               QuantumPlugin.getDefault().getPreferenceStore();
+                       setPreferenceStore(store);
+               }
+
+               public void init(IWorkbench workbench) {
+                       this.workbench = workbench;
+               }
+
+               IWorkbench workbench;
+               
+               protected void createFieldEditors() {
+                       StringFieldEditor customCopyName = new StringFieldEditor("customCopyName2", "&Name:", getFieldEditorParent());
+                       addField(customCopyName);
+                       StringFieldEditor customCopyTableItem = new StringFieldEditor("customCopyTableItem2", "&Table Item:", getFieldEditorParent());
+                       addField(customCopyTableItem);
+                       StringFieldEditor customCopyTableSeparator = new StringFieldEditor("customCopyTableSeparator2", "&Table Separator:", getFieldEditorParent());
+                       addField(customCopyTableSeparator);
+                       StringFieldEditor customCopyColumnItem = new StringFieldEditor("customCopyColumnItem2", "&Column Item:", getFieldEditorParent());
+                       addField(customCopyColumnItem);
+                       StringFieldEditor customCopyColumnSeparator = new StringFieldEditor("customCopyColumnSeparator2", "&Column Separator:", getFieldEditorParent());
+                       addField(customCopyColumnSeparator);
+                       StringFieldEditor customCopyTemplate = new StringFieldEditor("customCopyTemplate2", "&Template:", getFieldEditorParent());
+                       addField(customCopyTemplate);
+               }
+
+}