Importing the XDebugProxy code in the HEAD. The repo was tagged with T_BEFORE_XDEBUGP...
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.ui / src / net / sourceforge / phpeclipse / xdebug / ui / php / launching / PHPEnvironmentTab.java
index eb99160..e1e0e30 100644 (file)
@@ -419,14 +419,8 @@ public class PHPEnvironmentTab extends AbstractLaunchConfigurationTab {
                        EnvironmentVariable existingVariable = (EnvironmentVariable) items[i]
                                        .getData();
                        if (existingVariable.getName().equals(name)) {
-                               boolean overWrite = MessageDialog
-                                               .openQuestion(
-                                                               getShell(),
-                                                               "Overwrite variable?",
-                                                               MessageFormat
-                                                                               .format(
-                                                                                               "A variable named {0} already exists. Overwrite?",
-                                                                                               new String[] { name }));
+                               boolean overWrite = MessageDialog.openQuestion(getShell(),"Overwrite variable?",
+                                       MessageFormat.format("A variable named {0} already exists. Overwrite?",new String[] { name }));
                                if (!overWrite) {
                                        return false;
                                }
@@ -762,9 +756,8 @@ public class PHPEnvironmentTab extends AbstractLaunchConfigurationTab {
         * 
         * @see org.eclipse.debug.ui.ILaunchConfigurationTab#getImage()
         */
-       public Image getImage() {
-               return XDebugUIPluginImages
-                               .get(XDebugUIPluginImages.IMG_EVIEW_ENVIROMENT_TAB);
+       public Image getImage() {       
+               return XDebugUIPluginImages.get(XDebugUIPluginImages.IMG_EVIEW_ENVIROMENT_TAB);
        }
 
        /*
@@ -794,8 +787,8 @@ public class PHPEnvironmentTab extends AbstractLaunchConfigurationTab {
                }
 
                protected IDialogSettings getDialogSettings() {
-                       IDialogSettings settings = XDebugCorePlugin.getDefault()
-                                       .getDialogSettings();
+//                     IDialogSettings settings = XDebugCorePlugin.getDefault().getDialogSettings();
+                       IDialogSettings settings = getDialogSettings();
                        IDialogSettings section = settings
                                        .getSection(getDialogSettingsSectionName());
                        if (section == null) {
@@ -833,19 +826,16 @@ public class PHPEnvironmentTab extends AbstractLaunchConfigurationTab {
                // * @see org.eclipse.jface.window.Window#getInitialSize()
                // */
                // protected Point getInitialSize() {
-               // Point size = super.getInitialSize();
-               // return
-               // DialogSettingsHelper.getInitialSize(getDialogSettingsSectionName(),
-               // size);
-               // }
-
-               // /* (non-Javadoc)
-               // * @see org.eclipse.jface.window.Window#close()
-               // */
-               // public boolean close() {
-               // DialogSettingsHelper.persistShellGeometry(getShell(),
-               // getDialogSettingsSectionName());
-               // return super.close();
-               // }
+               //              Point size = super.getInitialSize();
+               //              return DialogSettingsHelper.getInitialSize(getDialogSettingsSectionName(), size);
+               //              }
+
+               //              /* (non-Javadoc)
+               //              * @see org.eclipse.jface.window.Window#close()
+               //              */
+               //              public boolean close() {
+               //              DialogSettingsHelper.persistShellGeometry(getShell(), getDialogSettingsSectionName());
+               //              return super.close();
+               //              }
        }
 }