Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Opening *any* file(CSV, SQL, unknown script file) in Eclipse?
Opening *any* file(CSV, SQL, unknown script file) in Eclipse? [message #784572] Fri, 27 January 2012 18:07 Go to next message
Lawrence Coffin is currently offline Lawrence CoffinFriend
Messages: 5
Registered: January 2012
Junior Member
Last question for now...

How do you get Eclipse to open a file as a text file? To just read the file as a text file, and work with it as a text file? For example, if you drag a CSV or do an Open on a CSV file, Eclipse opens it instead with Excel. If you don't have a perl plugin installed and try to drag a perl script on Eclipse, Eclipse passes it off to perl to execute it. These are *text* files. How do I tell Eclipse to just open the file for *editing*?

Obviously I can change the file extension to .txt before opening it, but that seems like such a kludge.

Thanks,

-L
Re: Opening *any* file(CSV, SQL, unknown script file) in Eclipse? [message #784667 is a reply to message #784572] Fri, 27 January 2012 21:14 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 27-Jan-12 11:07, Lawrence Coffin wrote:
> Last question for now...
>
> How do you get Eclipse to open a file as a text file? To just read the
> file as a text file, and work with it as a text file? For example, if
> you drag a CSV or do an Open on a CSV file, Eclipse opens it instead
> with Excel. If you don't have a perl plugin installed and try to drag a
> perl script on Eclipse, Eclipse passes it off to perl to execute it.
> These are *text* files. How do I tell Eclipse to just open the file for
> *editing*?
>
> Obviously I can change the file extension to .txt before opening it, but
> that seems like such a kludge.
>
> Thanks,
>
> -L

Right-click on the file in the Project Explorer, Package Explorer or
Navigator views, choose Open With, then choose the editor you wish to use.
Re: Opening *any* file(CSV, SQL, unknown script file) in Eclipse? [message #784715 is a reply to message #784667] Fri, 27 January 2012 22:48 Go to previous messageGo to next message
Lawrence Coffin is currently offline Lawrence CoffinFriend
Messages: 5
Registered: January 2012
Junior Member
Thanks Russell,

What if it's not in a package? Just a file on my hard drive? Say a recent data export from a database or a CSV file from Excel? Those don't show up in any of those views, do they?
Re: Opening *any* file(CSV, SQL, unknown script file) in Eclipse? [message #784726 is a reply to message #784715] Fri, 27 January 2012 23:03 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 1/27/2012 3:48 PM, Lawrence Coffin wrote:
> Thanks Russell,
>
> What if it's not in a package? Just a file on my hard drive? Say a
> recent data export from a database or a CSV file from Excel? Those don't
> show up in any of those views, do they?

In the scenario I describe, the file is part of an Eclipse project.

While I consider Eclipse to be the primo IDE, I'm not so enthralled with
its text editor that I would want to use them in place of, say, vi/vim.
Maybe someone else can help you crack this walnut with a jackhammer. (No
offense intended here...just saying I wouldn't use Eclipse as an editor.)
Re: Opening *any* file(CSV, SQL, unknown script file) in Eclipse? [message #786994 is a reply to message #784726] Tue, 31 January 2012 03:04 Go to previous messageGo to next message
Lawrence Coffin is currently offline Lawrence CoffinFriend
Messages: 5
Registered: January 2012
Junior Member
Thanks Russell, no offense taken! Smile I'm a little disappointed at how weak Eclipse is at general functionality. I'm so used to IDEs that work really well across the board for a wide range of languages and general text editing for any file on your system. Eclipse seems to be so tied into the package/installed module model that it really sucks for general use. Unfortunately it's a tool that a vendor our company has chosen as one of their standard tools so most of our consultants -- particularly the developers -- have it installed. It would be nice to leverage Eclipse for other things I'd normally use a decent IDE/editor for that other standard Windows tools don't support.

Anyway, thanks again! Since this seems to be something Eclipse doesn't support very well, maybe I'll put in a feature request and see if it could be added down the line.

-L
Re: Opening *any* file(CSV, SQL, unknown script file) in Eclipse? [message #787401 is a reply to message #786994] Tue, 31 January 2012 14:38 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 30-Jan-12 20:04, Lawrence Coffin wrote:
> Thanks Russell, no offense taken! :) I'm a little disappointed at how
> weak Eclipse is at general functionality. I'm so used to IDEs that work
> really well across the board for a wide range of languages and general
> text editing for any file on your system. Eclipse seems to be so tied
> into the package/installed module model that it really sucks for general
> use. Unfortunately it's a tool that a vendor our company has chosen as
> one of their standard tools so most of our consultants -- particularly
> the developers -- have it installed. It would be nice to leverage
> Eclipse for other things I'd normally use a decent IDE/editor for that
> other standard Windows tools don't support.
>
> Anyway, thanks again! Since this seems to be something Eclipse doesn't
> support very well, maybe I'll put in a feature request and see if it
> could be added down the line.
>
> -L

If we had our fingers wrapped tightly around your throat and forced you
to write on and for a single, narrow platform, I could see the
criticism. But, Eclipse is open source and written by many contributing
developers around the world. There's even tight integration of vi/vim
for Eclipse, written by third-parties.

Take the time to ease into it. You'll doubtless find that, except for
C#/.NET, you can develop pretty much anything in Eclipse. You just have
to find where to get the plug-ins for it.
Previous Topic:Icons of Outline-view
Next Topic:Emulator didn't work
Goto Forum:
  


Current Time: Thu Jun 24 19:31:27 GMT 2021

Powered by FUDForum. Page generated in 0.03241 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top