From 5a11a0e84fd3c6f6c4c56100fd59ec27ceaa1471 Mon Sep 17 00:00:00 2001 From: axelcl Date: Mon, 4 Apr 2005 20:25:38 +0000 Subject: [PATCH] Delete association of htmledit.gif for the PHPUnitEditor --- .../debug/ui/launcher/PHPLaunchShortcut.java | 14 +-- net.sourceforge.phpeclipse/build.xml | 2 +- net.sourceforge.phpeclipse/plugin.properties | 1 + net.sourceforge.phpeclipse/plugin.xml | 98 +++----------------- .../sourceforge/phpdt/core/JavaConventions.java | 48 +++++----- .../phpdt/internal/compiler/util/Util.java | 80 ++++++++-------- .../sourceforge/phpdt/internal/core/util/Util.java | 4 +- .../phpdt/internal/ui/util/PHPFileUtil.java | 2 +- .../phpeclipse/PHPEclipseBasePreferencePage.java | 2 +- .../phpeclipse/phpeditor/PHPParserAction.java | 66 +++++-------- 10 files changed, 114 insertions(+), 203 deletions(-) diff --git a/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/launcher/PHPLaunchShortcut.java b/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/launcher/PHPLaunchShortcut.java index 5a3cafb..53b337f 100644 --- a/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/launcher/PHPLaunchShortcut.java +++ b/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/launcher/PHPLaunchShortcut.java @@ -7,6 +7,7 @@ import net.sourceforge.phpdt.debug.ui.PHPDebugUiConstants; import net.sourceforge.phpdt.internal.debug.ui.PHPDebugUiMessages; import net.sourceforge.phpdt.internal.debug.ui.PHPDebugUiPlugin; import net.sourceforge.phpdt.internal.launching.PHPLaunchConfigurationAttribute; +import net.sourceforge.phpdt.internal.ui.util.PHPFileUtil; import org.eclipse.core.resources.IFile; import org.eclipse.core.runtime.CoreException; @@ -26,17 +27,12 @@ import org.eclipse.ui.IEditorPart; public class PHPLaunchShortcut implements ILaunchShortcut { public PHPLaunchShortcut() { } - + public void launch(ISelection selection, String mode) { - if (selection instanceof IStructuredSelection) { + if (selection instanceof IStructuredSelection) { Object firstSelection = ((IStructuredSelection)selection).getFirstElement(); - if (firstSelection instanceof IFile) { - if ( - ((IFile) firstSelection).getFileExtension().equals("php") || - ((IFile) firstSelection).getFileExtension().equals("php3") || - ((IFile) firstSelection).getFileExtension().equals("php4") || - ((IFile) firstSelection).getFileExtension().equals("php5") - ) { + if (firstSelection instanceof IFile) { + if (PHPFileUtil.isPHPFile((IFile) firstSelection)) { ILaunchConfiguration config = findLaunchConfiguration((IFile)firstSelection, mode); try { if (config != null) diff --git a/net.sourceforge.phpeclipse/build.xml b/net.sourceforge.phpeclipse/build.xml index 33ee802..981ed8e 100644 --- a/net.sourceforge.phpeclipse/build.xml +++ b/net.sourceforge.phpeclipse/build.xml @@ -27,7 +27,7 @@ - + diff --git a/net.sourceforge.phpeclipse/plugin.properties b/net.sourceforge.phpeclipse/plugin.properties index 50d4a2f..97a008a 100644 --- a/net.sourceforge.phpeclipse/plugin.properties +++ b/net.sourceforge.phpeclipse/plugin.properties @@ -8,6 +8,7 @@ elementFiltersName=PHPElement Filters phpProblemName=PHP Problem transientPHPProblemName=Transient PHP Problem phpTaskName=PHP Task +phpSourceName=PHP Source File viewCategoryName = PHPeclipse Web Development phpEditorTextHoversName=PHP Editor Text Hovers diff --git a/net.sourceforge.phpeclipse/plugin.xml b/net.sourceforge.phpeclipse/plugin.xml index 5f7ce85..709ac8f 100644 --- a/net.sourceforge.phpeclipse/plugin.xml +++ b/net.sourceforge.phpeclipse/plugin.xml @@ -142,7 +142,7 @@ - + @@ -192,6 +192,14 @@ --> + + + + + - - - - - - - - - - - --> - - -