Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » How to associate PHP files that don't have .PHP extension?
icon5.gif  How to associate PHP files that don't have .PHP extension? [message #552464] Thu, 12 August 2010 06:04 Go to next message
Ethereal1m Missing name is currently offline Ethereal1m Missing name
Messages: 35
Registered: January 2010
Member
Dear all,
how can associate php files that don't have .php extension? Suppose I have a php file that name a.module. Since its extension is .module instead of .php, Eclipse PDT cannot put breakpoint on it also the php coloring scheme is not display on the editor.

How can I fix this?

regards,
ethereal1m
Re: How to associate PHP files that don't have .PHP extension? [message #552465 is a reply to message #552464] Thu, 12 August 2010 06:08 Go to previous messageGo to next message
dominik is currently offline dominik
Messages: 122
Registered: July 2009
Senior Member
On 2010-08-12 12:04, Ethereal1m wrote:
> Dear all,
> how can associate php files that don't have .php extension? Suppose I
> have a php file that name a.module. Since its extension is .module
> instead of .php, Eclipse PDT cannot put breakpoint on it also the php
> coloring scheme is not display on the editor.
>
> How can I fix this?

Window->preferences->General->Editors->File Association->Add..

:)

dmc
Re: How to associate PHP files that don't have .PHP extension? [message #552472 is a reply to message #552464] Thu, 12 August 2010 06:28 Go to previous messageGo to next message
Ethereal1m Missing name is currently offline Ethereal1m Missing name
Messages: 35
Registered: January 2010
Member
hey,
thanks for the fast reply, but after I associate .module extension with php and text editor, it doesn't fix the problem, the color scheme still doesn't show and breakpoint still cannot be set (it tries to set a bookmark instead)...

Any idea?

Re: How to associate PHP files that don't have .PHP extension? [message #552483 is a reply to message #552464] Thu, 12 August 2010 07:08 Go to previous messageGo to next message
Ethereal1m Missing name is currently offline Ethereal1m Missing name
Messages: 35
Registered: January 2010
Member
got it, I need to add association to the content through:
Window > Prefrences > General > Content Types > Text > PHP Content Type
Re: How to associate PHP files that don't have .PHP extension? [message #552487 is a reply to message #552472] Thu, 12 August 2010 07:05 Go to previous messageGo to next message
Eclipse User
Originally posted by: dkel50.hotremovemail.com

I found that on eclipse pdt 2.2, I had to restart eclipse in order for
the file content association to work properly.

Dave

On 12/08/2010 11:28, Ethereal1m wrote:
> hey,
> thanks for the fast reply, but after I associate .module extension with
> php and text editor, it doesn't fix the problem, the color scheme still
> doesn't show and breakpoint still cannot be set (it tries to set a
> bookmark instead)...
>
> Any idea?
>
>
icon3.gif  Re: How to associate PHP files that don't have .PHP extension? [message #555479 is a reply to message #552464] Thu, 26 August 2010 13:54 Go to previous messageGo to next message
Chris Charlton is currently offline Chris Charlton
Messages: 8
Registered: January 2010
Location: Los Angeles, CA
Junior Member
I assume you're adding *.module for Drupal sites. Please check out my PDT plug-in for Drupal development at http://xtnd.us/eclipse/install because it'll add *.module, *.install, *.theme, and so on, for you.

Chris Charlton - http://chrischarlton.us

Learn How To Make Drupal Themes Now - http://tinyurl.com/theme-drupal

Download Eclipse & Dreamweaver plugins at http://xtnd.us - xtnd urslf!
Re: How to associate PHP files that don't have .PHP extension? [message #999255 is a reply to message #555479] Fri, 11 January 2013 11:51 Go to previous messageGo to next message
charmi shah is currently offline charmi shah
Messages: 1
Registered: January 2013
Junior Member
To include drupal files into eclipse follow the below steps:
go to window-> preferences-> General ->content Type -> Text-> PHP content type->
add new *.info,*.module and *.install file association in it.

hope this may help you!
Re: How to associate PHP files that don't have .PHP extension? [message #1034019 is a reply to message #999255] Thu, 04 April 2013 19:15 Go to previous messageGo to next message
normk Mising name is currently offline normk Mising name
Messages: 2
Registered: October 2011
Junior Member
this does not help in Juno version of Eclipse. The problem is the %content-type.name.0 bug described at stackoverflow questions 13297314. Unfortunately, the jar file mentioned for the workaround is no longer included in Juno builds even though the bug still persists.
Re: How to associate PHP files that don't have .PHP extension? [message #1034648 is a reply to message #1034019] Fri, 05 April 2013 14:12 Go to previous messageGo to next message
Dennis Sutch is currently offline Dennis Sutch
Messages: 1
Registered: April 2013
Junior Member
The manual solution provided in stackoverflow post 13297314 (cannot-see-php-content-type-in-eclipse-preferences) does work to change the label to "PHP Content Types". However, Eclipse still does not recognize any files matching file associations added to this content type as being PHP files.
Re: How to associate PHP files that don't have .PHP extension? [message #1034897 is a reply to message #1034648] Fri, 05 April 2013 22:49 Go to previous message
Toshihiro Izumi is currently offline Toshihiro Izumi
Messages: 345
Registered: July 2009
Location: Japan
Senior Member
Guys...
PHP Content Types label problem is on PDT 3.1.1. The latest PDT 3.1.2 has no such problem.
Previous Topic:Provisioning exception
Next Topic:how to install PDT 64bit windows by junoļ¼Ÿ
Goto Forum:
  


Current Time: Sat Aug 30 16:27:46 EDT 2014

Powered by FUDForum. Page generated in 0.03620 seconds