user189340
user189340

Reputation:

Windows file association to open with Eclipse/CDT editor

How can I open a file with Eclipse/CDT when I double click it in windows explorer?

I set the file association in windoes to eclipsec.exe and it opened Eclipse/CDT, but not the file.

If Eclipse is open, it says "Workspace in use..."

Ideas?

mcb

Upvotes: 1

Views: 2479

Answers (3)

carlin.scott
carlin.scott

Reputation: 7325

Associate the file type with eclipse.exe, not eclipsec.exe.

  1. If the file type is not already associated with an application then you can choose the application by double-clicking the file, otherwise you will need to open the "Set Associations" app from control panel. a. In Windows 7 this is done via the "Default Programs" item in "Control Panel".
    b. Inside that item there's an option labeled "Associate a file type... with a program".
    c. Look for the filetype, in my case I looked for .java. Select it and click "Change program..." in the upper right.
  2. From there click "Browse..." and find eclipse.exe, not eclipsec.exe, in your filesystem, select it and click ok.
  3. Now when you double-click the file it will be opened in eclipse regardless of whether eclipse is already open.

Upvotes: 0

alex
alex

Reputation: 11

this Might be what you are looking for

http://wiki.eclipse.org/Eclipse/OpenFileFeature

Upvotes: 1

DVK
DVK

Reputation: 129491

This article may be somewhat helpful, it talks about associating content types with specific editors:

http://www.developer.com/java/other/article.php/3648736/Eclipse-Tip-Define-Custom-Content-Types-to-Identify-Your-Data-Files.htm

In addition, an [Eclipse book on Google Books gives instructions on associating file types.][2]

Also, see this.

[2]: http://books.google.com/books?id=6Ob1ANNVcXcC&pg=PA59&lpg=PA59&dq=how+to+associate+a+file+extension+with+eclipse&source=bl&ots=jlFv9NRjyt&sig=OrWkd8nvLFVXuM5SWexG2uWeAHM&hl=en&ei=_GTWSqePBtPTlAf85JWjBg&sa=X&oi=book_result&ct=result&resnum=14&ved=0CDwQ6AEwDQ#v=onepage&q=how to associate a file extension with eclipse&f=false

Upvotes: 0

Related Questions