class="com.quantum.preferences.CopyPreferences"
id="com.quantum.preferences.copy">
</page>
- <page
+ <!-- <page
name="Custom Copy 1"
category="com.quantum.preferences.copy"
class="com.quantum.preferences.CustomCopyPreferences"
category="com.quantum.preferences.copy"
class="com.quantum.preferences.CustomCopyPreferences3"
id="com.quantum.preferences.customcopy3">
- </page>
+ </page> -->
<page
name="PHP Connecting"
category="com.quantum.preferences"
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;
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);