.class PHP Files and PHPEclipse

levander

Joined: 2006-03-31
Posts: 7
Posted: Sat, 2006-04-08 06:20

Using Eclipse 3.1.2 and PHPEclipse 1.1.8.CVS-20060407.

I've got it so that .class files are color highlight and outlined in the outline pane by adding .class files as a PHP Source File in Window->Preferences->General->Content Types, and by in Window->Preferences->General->File Associations associating .class with the PHP Editor.

Yeah, I've got that problem with .class files not being saved, but I don't care to fix it since it right now since I don't think I'll be modifying any .class files just yet.

The problem is that when I double click a file ending in .class in the Eclipse Navigator, not only is the .class file opened in eclipse, but an instance of whatever program (notepad in my case) .class files are associated with Windows itself is also popped open, with a copy of the .class file in that window too.

A work-around is to remove the file association in Windows, but long term I'd rather just be able to double click a file in Explorer and pop it open.

Anybody know another solution?

Levander's Yabbering

 
levander

Joined: 2006-03-31
Posts: 7
Posted: Sat, 2006-04-08 06:36

And, it's doing it for .php files also, unless I remove the file association in Windows. Wierd.

Levander's Yabbering

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-04-08 09:13
 
levander

Joined: 2006-03-31
Posts: 7
Posted: Sat, 2006-04-08 12:31

The main things I see in that tutorial is how to get syntax highlighting and saving .class files. As I said above, syntax highlighting I've already done, and I'm not concerned about saving .class files right now.

What I'm concerned about is that when I double click on a .class or even .php file, Eclipse opens up the file in Eclipse, as well as whatever program the file name extension is associated with in Windows.

Does anyone know how to get it to just open the php files in eclipse only?

Or, was that in that wiki page, and I just don't see it?

Levander's Yabbering

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-04-08 20:34

i don't have that problem. if i double click a .class in explorer, it just opens with wordpad (i did that association). and if i doubleclick a .class in eclipse, it opens in eclipse.