added code completion for HTML mode
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / PHPSyntaxPreferencePage.java
index 20a26f5..a182244 100644 (file)
@@ -13,10 +13,8 @@ package net.sourceforge.phpeclipse;
 
 import org.eclipse.jface.preference.BooleanFieldEditor;
 import org.eclipse.jface.preference.ColorFieldEditor;
-import org.eclipse.jface.preference.DirectoryFieldEditor;
 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;
 
@@ -35,6 +33,10 @@ public class PHPSyntaxPreferencePage extends FieldEditorPreferencePage implement
   protected void createFieldEditors() {
     final IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
 
+    BooleanFieldEditor showLineNumbers =
+      new BooleanFieldEditor(PHPeclipsePlugin.LINE_NUMBER_RULER, "Show line numbers", getFieldEditorParent());
+    this.addField(showLineNumbers);
+
     ColorFieldEditor multilineComment =
       new ColorFieldEditor(PHP_MULTILINE_COMMENT, "Multi-line comment:", this.getFieldEditorParent());
     this.addField(multilineComment);
@@ -45,7 +47,7 @@ public class PHPSyntaxPreferencePage extends FieldEditorPreferencePage implement
     this.addField(keyWords);
     ColorFieldEditor variables = new ColorFieldEditor(PHP_VARIABLE, "Variables:", this.getFieldEditorParent());
     this.addField(variables);
-    ColorFieldEditor types = new ColorFieldEditor(PHP_FUNCTIONNAME, "Types:", this.getFieldEditorParent());
+    ColorFieldEditor types = new ColorFieldEditor(PHP_FUNCTIONNAME, "Built-in functions:", this.getFieldEditorParent());
     this.addField(types);
     ColorFieldEditor strings = new ColorFieldEditor(PHP_STRING, "Strings:", this.getFieldEditorParent());
     this.addField(strings);