Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / August 2006

Tip: Looking for answers? Try searching our database.

Non *.java files as java acociation in Eclipse

Thread view: 
sarsonj@gmail.com - 02 Aug 2006 10:28 GMT
Hi,

I'm using Eclipse and in project, that I'm working with use *.jcx and
*.jws files, that are in fact regular *.java files. But I don't know,
how to tell Eclipse to work with them as with regular java files (so
that it provide syntax highlight, etc.). Can somebody help me?

Thank you,

Jindra
Roland de Ruiter - 02 Aug 2006 11:34 GMT
> Hi,
>
[quoted text clipped - 6 lines]
>
> Jindra

Window > Preferences > General > Editors > File Associations
Use the upper Add... button to add a file associations for *.jcx.
Then select *.jcx in the list and hit the lower Add... button to
associate the Java Editor with it.
Repeat for other files.
Signature

Regards,

Roland

sarsonj@gmail.com - 02 Aug 2006 13:02 GMT
Hi Roland,

thank you for reply - this helps with editors, thank you. But there is
still problem, that for example package explorer didn't think, this is
Java file and didn't work with this as a Java class. For example, it
doesn't compile automaticaly and I cannot find it using Class browser
etc. Is there any sollution to tell Eclipse, that is shlould handle
this files as regular Java?

Thank you,

Jindra
> > Hi,
> >
[quoted text clipped - 12 lines]
> associate the Java Editor with it.
> Repeat for other files.
Roland de Ruiter - 02 Aug 2006 13:48 GMT
> Hi Roland,
>
[quoted text clipped - 4 lines]
> etc. Is there any sollution to tell Eclipse, that is shlould handle
> this files as regular Java?

I don't think that is possible with Eclipse (at least not without some
custom written plugin). Couldn't find it mentioned in the JLS (Java
Language Specification), but the commandline compiler (javac) mandates
that Java source files have .java suffixes (see
<http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javac.html>).
Eclipse probably follows this convention.

What is the reason that you cannot just have *.java file names?
Signature

Regards,

Roland

sarsonj@gmail.com - 02 Aug 2006 14:41 GMT
There are generated files from Bea workshop (jws files) and also other
generated javas from bea tools. Those are normal java files, only the
extension is other.

Jindra

> > Hi Roland,
> >
[quoted text clipped - 13 lines]
>
> What is the reason that you cannot just have *.java file names?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.