Initial import of the Guide contributed to the project byRobert Kraske. Was originall...
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / preferences / CustomCopyPreferences2.java
1 package com.quantum.preferences;
2
3
4 import com.quantum.QuantumPlugin;
5
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;
11
12 public class CustomCopyPreferences2 
13         extends FieldEditorPreferencePage 
14         implements IWorkbenchPreferencePage {
15
16                 public CustomCopyPreferences2() {
17                         super(FieldEditorPreferencePage.GRID);
18                 
19                         // Set the preference store for the preference page.
20                         IPreferenceStore store =
21                                 QuantumPlugin.getDefault().getPreferenceStore();
22                         setPreferenceStore(store);
23                 }
24
25                 public void init(IWorkbench workbench) {
26                         this.workbench = workbench;
27                 }
28
29                 IWorkbench workbench;
30                 
31                 protected void createFieldEditors() {
32                         StringFieldEditor customCopyName = new StringFieldEditor("customCopyName2", "&Name:", getFieldEditorParent());
33                         addField(customCopyName);
34                         StringFieldEditor customCopyTableItem = new StringFieldEditor("customCopyTableItem2", "&Table Item:", getFieldEditorParent());
35                         addField(customCopyTableItem);
36                         StringFieldEditor customCopyTableSeparator = new StringFieldEditor("customCopyTableSeparator2", "&Table Separator:", getFieldEditorParent());
37                         addField(customCopyTableSeparator);
38                         StringFieldEditor customCopyColumnItem = new StringFieldEditor("customCopyColumnItem2", "&Column Item:", getFieldEditorParent());
39                         addField(customCopyColumnItem);
40                         StringFieldEditor customCopyColumnSeparator = new StringFieldEditor("customCopyColumnSeparator2", "&Column Separator:", getFieldEditorParent());
41                         addField(customCopyColumnSeparator);
42                         StringFieldEditor customCopyTemplate = new StringFieldEditor("customCopyTemplate2", "&Template:", getFieldEditorParent());
43                         addField(customCopyTemplate);
44                 }
45
46 }