From: axelcl Date: Mon, 4 Apr 2005 20:25:38 +0000 (+0000) Subject: Delete association of htmledit.gif for the PHPUnitEditor X-Git-Url: http://git.phpeclipse.com Delete association of htmledit.gif for the PHPUnitEditor --- 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 @@ --> + + + + + - - - - - - - - - - - --> - - -