From b51eaa49b1eaa25f97f922a50efa429cbcf31625 Mon Sep 17 00:00:00 2001 From: incastrix Date: Fri, 19 Sep 2008 03:09:27 +0000 Subject: [PATCH] Remove unused "Remote location" in Launch Configuration. --- .../xdebug/php/launching/IXDebugConstants.java | 8 +---- .../xdebug/ui/php/launching/PHPRemoteDebug.java | 34 -------------------- 2 files changed, 1 insertions(+), 41 deletions(-) diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/launching/IXDebugConstants.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/launching/IXDebugConstants.java index a6a3bad..7d4f892 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/launching/IXDebugConstants.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/launching/IXDebugConstants.java @@ -4,7 +4,6 @@ package net.sourceforge.phpeclipse.xdebug.php.launching; * Constants for the PDA debugger. */ public interface IXDebugConstants { - /** * Unique identifier for the PHP debug model (value * et.sourceforge.phpeclipse.debug.). @@ -34,10 +33,5 @@ public interface IXDebugConstants { public static final String ATTR_PHP_IDE_ID = ID_PHP_DEBUG_MODEL + ".ATTR_PHP_IDE_ID"; - public static final String ATTR_PHP_REMOTE_LOCATION = ID_PHP_DEBUG_MODEL + ".ATTR_PHP_REMOTE_LOCATION"; - public static final String ATTR_PHP_PATHMAP = ID_PHP_DEBUG_MODEL + ".ATTR_PHP_PATHMAP"; - - -} - +} \ No newline at end of file diff --git a/net.sourceforge.phpeclipse.xdebug.ui/src/net/sourceforge/phpeclipse/xdebug/ui/php/launching/PHPRemoteDebug.java b/net.sourceforge.phpeclipse.xdebug.ui/src/net/sourceforge/phpeclipse/xdebug/ui/php/launching/PHPRemoteDebug.java index d63052f..300655f 100644 --- a/net.sourceforge.phpeclipse.xdebug.ui/src/net/sourceforge/phpeclipse/xdebug/ui/php/launching/PHPRemoteDebug.java +++ b/net.sourceforge.phpeclipse.xdebug.ui/src/net/sourceforge/phpeclipse/xdebug/ui/php/launching/PHPRemoteDebug.java @@ -2,9 +2,7 @@ package net.sourceforge.phpeclipse.xdebug.ui.php.launching; import net.sourceforge.phpdt.internal.ui.PHPUiImages; import net.sourceforge.phpdt.internal.ui.util.PHPProjectSelector; -//import net.sourceforge.phpeclipse.xdebug.core.XDebugCorePlugin; import net.sourceforge.phpeclipse.xdebug.php.launching.IXDebugConstants; -import net.sourceforge.phpeclipse.xdebug.ui.EditPathMapDialog; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResource; @@ -13,29 +11,17 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; import org.eclipse.debug.ui.AbstractLaunchConfigurationTab; -//import org.eclipse.jface.viewers.ColumnWeightData; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.IStructuredSelection; -//import org.eclipse.jface.viewers.TableLayout; import org.eclipse.swt.SWT; import org.eclipse.swt.events.ModifyEvent; import org.eclipse.swt.events.ModifyListener; -//import org.eclipse.swt.events.MouseAdapter; -//import org.eclipse.swt.events.MouseEvent; -//import org.eclipse.swt.events.SelectionAdapter; -//import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.graphics.Font; import org.eclipse.swt.graphics.Image; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; -//import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; -//import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Group; -import org.eclipse.swt.widgets.Label; -//import org.eclipse.swt.widgets.Table; -//import org.eclipse.swt.widgets.TableColumn; -//import org.eclipse.swt.widgets.TableItem; import org.eclipse.swt.widgets.Text; import org.eclipse.ui.IEditorInput; import org.eclipse.ui.IEditorPart; @@ -46,14 +32,12 @@ public class PHPRemoteDebug extends AbstractLaunchConfigurationTab { private PHPProjectSelector projectSelector; private Text fIdeIDText; - private Text fRemoteLocationText; public void createControl(Composite parent) { Font font = parent.getFont(); Composite comp = new Composite(parent, SWT.NONE); setControl(comp); -// PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaDebugHelpContextIds.LAUNCH_CONFIGURATION_DIALOG_MAIN_TAB); GridLayout topLayout = new GridLayout(); topLayout.verticalSpacing = 0; comp.setLayout(topLayout); @@ -90,18 +74,7 @@ public class PHPRemoteDebug extends AbstractLaunchConfigurationTab { } }); - Label remoteLabel= new Label(group,SWT.NONE); - remoteLabel.setText("Remote Location:"); - - fRemoteLocationText = new Text(group,SWT.SINGLE | SWT.BORDER); gd= new GridData(GridData.FILL_HORIZONTAL); - fRemoteLocationText.setLayoutData(gd); - fRemoteLocationText.setFont(font); - fRemoteLocationText.addModifyListener(new ModifyListener() { - public void modifyText(ModifyEvent evt) { - updateLaunchConfigurationDialog(); - } - }); } private void createIdeIDEditor(Composite parent) { @@ -133,7 +106,6 @@ public class PHPRemoteDebug extends AbstractLaunchConfigurationTab { protected IProject getContext() { IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); - //IWorkbenchPage page= XDebugCorePlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage(); if (page != null) { ISelection selection = page.getSelection(); if (selection instanceof IStructuredSelection) { @@ -170,10 +142,6 @@ public class PHPRemoteDebug extends AbstractLaunchConfigurationTab { } String ideID = configuration.getAttribute(IXDebugConstants.ATTR_PHP_IDE_ID, "testID"); fIdeIDText.setText(ideID); - - String remoteLocation=configuration.getAttribute(IXDebugConstants.ATTR_PHP_REMOTE_LOCATION, ""); - fRemoteLocationText.setText(remoteLocation); - } catch (CoreException e) { setErrorMessage(e.getMessage()); } @@ -187,8 +155,6 @@ public class PHPRemoteDebug extends AbstractLaunchConfigurationTab { configuration.setAttribute(IXDebugConstants.ATTR_PHP_PROJECT, project); String ideID = fIdeIDText.getText().trim(); configuration.setAttribute(IXDebugConstants.ATTR_PHP_IDE_ID, ideID); - String remoteLocation = fRemoteLocationText.getText().trim(); - configuration.setAttribute(IXDebugConstants.ATTR_PHP_REMOTE_LOCATION, remoteLocation); } /* (non-Javadoc) -- 1.7.1