Start the debugger through setting the url with "?DBGSESSID=1@clienthost:10001" in...
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / src / net / sourceforge / phpeclipse / ui / preferences / PHPMiscProjectPreferences.java
index 7759fd0..c0073b1 100644 (file)
@@ -4,7 +4,11 @@ import net.sourceforge.phpeclipse.ui.WebUI;
 import net.sourceforge.phpeclipse.ui.overlaypages.FieldEditorOverlayPage;
 
 import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PathEditor;
 import org.eclipse.jface.preference.StringFieldEditor;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.RowLayout;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.ui.IWorkbench;
 import org.eclipse.ui.IWorkbenchPreferencePage;
@@ -33,16 +37,25 @@ public class PHPMiscProjectPreferences extends FieldEditorOverlayPage
   
   protected void createFieldEditors() {
     Composite composite = getFieldEditorParent();
-
+    
     addField(new StringFieldEditor(IPreferenceConstants.PHP_LOCALHOST_PREF,
         PHPPreferencesMessages.getString("PHPMiscProjectPreferences.localhost"),
         composite));
-    addField(new StringFieldEditor(IPreferenceConstants.PHP_DOCUMENTROOT_PREF,
-        PHPPreferencesMessages.getString("PHPMiscProjectPreferences.documentroot"),
-        composite)); 
     addField(new StringFieldEditor(IPreferenceConstants.PHP_BOOKMARK_DEFAULT,
         PHPPreferencesMessages.getString("PHPMiscProjectPreferences.bookmark"),
         composite));
+    addField(new StringFieldEditor(IPreferenceConstants.PHP_DOCUMENTROOT_PREF,
+        PHPPreferencesMessages.getString("PHPMiscProjectPreferences.documentroot"),
+        composite)); 
+   
+    PathEditor pe = new PathEditor(IPreferenceConstants.PHP_INCLUDE_PATHS,
+        PHPPreferencesMessages.getString("PHPMiscProjectPreferences.include_paths"),
+        "Choose Path...",
+        composite);
+    addField(pe);
+    
+    
+    
     //if (!isPropertyPage)) {
     //  
     //}
@@ -57,6 +70,6 @@ public class PHPMiscProjectPreferences extends FieldEditorOverlayPage
    * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
    */
   public void init(IWorkbench workbench) {
-    setDescription("Default entries for misc project settings.");
+    setDescription("Default entries for PHP projects.");
   }
 }
\ No newline at end of file