• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Associating .java files with Eclipse

 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's an Eclipse plugin called "Fileopen" that apparently allows users to open Eclipse by double-clicking an associated file (for example, .java)...

http://sourceforge.net/project/showfiles.php?group_id=73634&package_id=85503

My questions are:
  • Does this plugin really do what I described above (or am I misunderstanding the intent)?
  • Does this 2-year-old plugin work with Eclipse 3.1?

  • (I'm not very knowledgable about plugins, so I'm afraid of messing things up.)
    [ July 11, 2005: Message edited by: marc weber ]
     
    Ranch Hand
    Posts: 539
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    I haven't tried using it, but I'd be very surprised if it worked - the plugin framework (apparently) changes a lot between minor releases (3.0-3.1), so the change since 2.* would be marked.

    Trying a plugin is (usually) quite safe, though. You just add folders to the 'plugins' directory and they're loaded, and remove them if you don't want them.

    I've only once had a plugin really foul up. It was a PHP plugin (surprise, surprise), and it corrupted my whole workspace - a bit of a pain, but quite simple to restore.

    So...if I were you I'd give it a go!

    That said, I wouldn't like .java files opening in Eclipse myself - if I want to open one that isn't in an Eclipse project already, chances are all I want to do is skim the source and maybe copy a bit out (if it's in one of my old, archived projects) - and a lightweight editor like Context is more suited to this. Still, each to his own!

    Cheers,


    -Tim
     
    marc weber
    Sheriff
    Posts: 11343
    Mac Safari Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Originally posted by Tim West:
    ... That said, I wouldn't like .java files opening in Eclipse myself - if I want to open one that isn't in an Eclipse project already, chances are all I want to do is skim the source and maybe copy a bit out ... and a lightweight editor like Context is more suited to this...


    I'm with you, actually. My .java files open with XCode on my Mac and Notepad (!) on my Windows machine. However, I've been asked whether it's possible to get Eclipse to launch as the associated Java application, so I'm just trying to track down an answer.

    Thanks for the input!
     
    Tim West
    Ranch Hand
    Posts: 539
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Well, looks like it isn't possible then - I just tried associating .java with Eclipse without a plugin, and although Eclipse opens, the files don't.

    You *can* open files that aren't in a workspace - File -> Open File. But, that's a pretty poor second solution.

    (The only reason I'm pointing this out is that you couldn't open files outside your workspace until relatively recently...)


    -Tim
     
    marc weber
    Sheriff
    Posts: 11343
    Mac Safari Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Originally posted by Tim West:
    ... I just tried associating .java with Eclipse without a plugin, and although Eclipse opens, the files don't...


    Yeah, I tried that first, and when I started searching for solutions on the internet, I found that old plugin. Since then, I've read that it does not work with Eclipse 3.1 (although I haven't tried it myself). I did a lot more looking today, but couldn't find anything more recent.

    I'm going with the answer that it's not possible given what's currently available for plugins (and it's not the greatest idea anyway).

    Thanks for your help!
     
    But how did the elephant get like that? What did you do? I think all we can do now is read this tiny ad:
    a bit of art, as a gift, the permaculture playing cards
    https://gardener-gift.com
    reply
      Bookmark Topic Watch Topic
    • New Topic