improved include detection
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / wizards / BookmarkWizard.java
index 84750ba..201c58d 100644 (file)
@@ -1,6 +1,7 @@
 package com.quantum.wizards;
 
 import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.preference.IPreferenceStore;
 import org.eclipse.jface.wizard.Wizard;
 import org.eclipse.jface.wizard.WizardPage;
 import org.eclipse.swt.SWT;
@@ -183,7 +184,23 @@ class BookmarkPage extends WizardPage {
                 BookmarkPage.this.password.setEditable(!prompt.getSelection());
             }
         });
-
+        //jsurfer start typical MySQL settings !?
+        IPreferenceStore fStore =      QuantumPlugin.getDefault().getPreferenceStore();
+
+        username.setText(fStore.getString("phpeclipse.sql.username.connect"));
+               connect.setText(fStore.getString("phpeclipse.sql.connect.connect"));
+               driver.setText(fStore.getString("phpeclipse.sql.driver.connect"));
+               String typeData = fStore.getString("phpeclipse.sql.type.connect");
+               int selectedIndex = 0;
+               for (int i = 0; i < drivers.length; i++) {
+                       if (typeData.equals(drivers[i].getDisplayName())) {
+                               selectedIndex = i;
+                       }
+               }
+               type.select(selectedIndex);
+               driverFile.setText(fStore.getString("phpeclipse.sql.filename.connect"));
+//             jsurfer end
+               
                setControl(container);
 
                setPageComplete(true);