Fix for ticket #358 Interpreter Tab in Mac OSX from mbowie testing and confirming...
[phpeclipse.git] / net.sourceforge.phpeclipse / plugin.xml
index 55fbc41..1a3aee8 100644 (file)
    <extension
                 point="org.eclipse.team.core.fileTypes">
          <fileTypes type="text" extension="php" />
+         <fileTypes type="text" extension="phpc" />
          <fileTypes type="text" extension="php3" />
          <fileTypes type="text" extension="php4" />
          <fileTypes type="text" extension="php5" />
-         <fileTypes type="text" extension="module" />
-         <fileTypes type="text" extension="inc" />
          <fileTypes type="text" extension="phtml" />
+         <fileTypes type="text" extension="inc" />
+         <fileTypes type="text" extension="module" />
          <fileTypes type="text" extension="phpt" />
+         <fileTypes type="text" extension="ctp" />
    </extension>
 
 <!-- declares a content type for PHP Source files -->
        <content-type id="phpSource" name="%phpSourceName"
                base-type="org.eclipse.core.runtime.text"
                priority="high"
-               file-extensions="php,php3,php4,php5,phtml,inc,module,phpt"/>
+               file-extensions="php,phpc,php3,php4,php5,phtml,inc,module,phpt,ctp"/>
    </extension>
 
    <extension
 <!-- PHP Editor Action Definition IDs -->
 <!-- =========================================================================== -->
 
+       <!-- FIXME: there is too much duplication of contributions pointing to the same action. we should find a better way-->
    <extension
                 point="org.eclipse.ui.popupMenus">
+         <!-- php, phpc,php3,php4,php5,phpt-->
          <objectContribution
                        objectClass="org.eclipse.core.resources.IFile"
-                       nameFilter="*.php"
-                       id="net.sourceforge.phpeclipse.actions.popupShowAction.php">
-                <action
-                          label="Open PHP Browser"
-                          class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
-                          menubarPath="additions"
-                          id="net.sourceforge.phpeclipse.actions.showAction">
-                </action>
-         </objectContribution>
-         <objectContribution
-                       objectClass="org.eclipse.core.resources.IFile"
-                       nameFilter="*.php3"
-                       id="net.sourceforge.phpeclipse.actions.popupShowAction.php3">
-                <action
-                          label="Open PHP Browser"
-                          class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
-                          menubarPath="additions"
-                          id="net.sourceforge.phpeclipse.actions.showAction">
-                </action>
-         </objectContribution>
-         <objectContribution
-                       objectClass="org.eclipse.core.resources.IFile"
-                       nameFilter="*.php4"
-                       id="net.sourceforge.phpeclipse.actions.popupShowAction.php4">
+                       nameFilter="*.php*"
+                       id="net.sourceforge.phpeclipse.actions.popupShowAction.phpS">
                 <action
                           label="Open PHP Browser"
                           class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
                           id="net.sourceforge.phpeclipse.actions.showAction">
                 </action>
          </objectContribution>
+
+         <!-- cake PHP support -->
          <objectContribution
                        objectClass="org.eclipse.core.resources.IFile"
-                       nameFilter="*.php5"
-                       id="net.sourceforge.phpeclipse.actions.popupShowAction.php5">
+                       nameFilter="*.ctp"
+                       id="net.sourceforge.phpeclipse.actions.popupShowAction.ctp">
                 <action
                           label="Open PHP Browser"
                           class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
          </objectContribution>
          <objectContribution
                        objectClass="org.eclipse.core.resources.IFile"
-                       nameFilter="*.html"
+                       nameFilter="*.htm*"
                        id="net.sourceforge.phpeclipse.actions.popupShowAction.html">
                 <action
                           label="Open PHP Browser"
                           id="net.sourceforge.phpeclipse.actions.showAction">
                 </action>
          </objectContribution>
-                       <objectContribution
-                       objectClass="org.eclipse.core.resources.IFile"
-                       nameFilter="*.htm"
-                       id="net.sourceforge.phpeclipse.actions.popupShowAction.htm">
-                <action
-                          label="Open PHP Browser"
-                          class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
-                          menubarPath="additions"
-                          id="net.sourceforge.phpeclipse.actions.showAction">
-                </action>
-         </objectContribution>
          <objectContribution
                        objectClass="org.eclipse.core.resources.IFile"
                        nameFilter="*.xml"
                 </action>
          </objectContribution>
 
+         <!-- Viewers -->
          <viewerContribution
                        targetID="#PHPEditorContext"
                        id="net.sourceforge.phpeclipse.actions.popupHTMLWizard">