Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » File associations problems
File associations problems [message #275990] Mon, 15 November 2004 15:04 Go to next message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

Eclipse 3.0.0
Windows XP

I am having problems with some file extensions and the editor
associations. It seems that .properties files are currently messed up,
although I've seen the same with other text-based file types (.log,
..txt, etc.)

When I select any .properties file in my Eclipse Navigator, it is opened
in the system editor (TextPad, in this case) instead of the Eclipse
editor. I have checked my File Association preferences, and the
*.properties and build.properties settings both indicate Eclipse editors
as the only one available. I have also tried removing the *.properties
and build.properties associations with no luck - same behavior. In fact,
when I restart Eclipse after doing so, those associations are magically
resurrected.

Seems that the file associations is somehow broken, but I'm trying to
determine if anyone else is seeing this or if it could be something
funky going on with one of the many plugins I have installed.
At a minimum I'd like to be able to correct it so .properties files get
opened in the Eclipse text or Properties editor.

Any ideas?

Eric
Re: File associations problems [message #275992 is a reply to message #275990] Mon, 15 November 2004 15:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Does the properties editor show up in Open With->...?

It remembers the last non-default editor used to open the file, so if
you opened it once with some other editor than that new editor becomes
the default editor for that file.


--
Thanks,
Rich Kulp
Re: File associations problems [message #276019 is a reply to message #275990] Tue, 16 November 2004 04:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Eric Rizzo wrote:

> Eclipse 3.0.0
> Windows XP
>
> I am having problems with some file extensions and the editor
> associations. It seems that .properties files are currently messed up,
> although I've seen the same with other text-based file types (.log,
> .txt, etc.)
>
> When I select any .properties file in my Eclipse Navigator, it is
> opened in the system editor (TextPad, in this case) instead of the
> Eclipse editor. I have checked my File Association preferences, and
> the *.properties and build.properties settings both indicate Eclipse
> editors as the only one available. I have also tried removing the
> *.properties and build.properties associations with no luck - same
> behavior. In fact, when I restart Eclipse after doing so, those
> associations are magically resurrected.

The extensions that are registered via extension point can't be removed.
This should be indicated in the UI, see:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=78703

Dani

>
> Seems that the file associations is somehow broken, but I'm trying to
> determine if anyone else is seeing this or if it could be something
> funky going on with one of the many plugins I have installed.
> At a minimum I'd like to be able to correct it so .properties files
> get opened in the Eclipse text or Properties editor.
>
> Any ideas?
>
> Eric
Re: File associations problems [message #276033 is a reply to message #276019] Tue, 16 November 2004 09:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

Daniel Megert wrote:
> Eric Rizzo wrote:
>
>> Eclipse 3.0.0
>> Windows XP
>>
>> I am having problems with some file extensions and the editor
>> associations. It seems that .properties files are currently messed up,
>> although I've seen the same with other text-based file types (.log,
>> .txt, etc.)
>>
>> When I select any .properties file in my Eclipse Navigator, it is
>> opened in the system editor (TextPad, in this case) instead of the
>> Eclipse editor. I have checked my File Association preferences, and
>> the *.properties and build.properties settings both indicate Eclipse
>> editors as the only one available. I have also tried removing the
>> *.properties and build.properties associations with no luck - same
>> behavior. In fact, when I restart Eclipse after doing so, those
>> associations are magically resurrected.
>
>
> The extensions that are registered via extension point can't be removed.
> This should be indicated in the UI, see:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=78703
>
> Dani

Thanks for opening that bug - I suspected that was the case but was at
the time more concerned about the wrong editor opening than the
ancillary issue of removed associations coming back to life ;-)

Eric
Re: File associations problems [message #276034 is a reply to message #275992] Tue, 16 November 2004 09:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

Rich Kulp wrote:
> Does the properties editor show up in Open With->...?
>
> It remembers the last non-default editor used to open the file, so if
> you opened it once with some other editor than that new editor becomes
> the default editor for that file.

That is interesting to know. But I never use Open with... for properties
files, so I'd be curious to know ow it gets into a state where it thinks
I had done so in the past. As I said, I was seeing this with .txt and
..log files a while back (although currently they are behaving correctly
- probably because I removed the associations for those files in an
effort to get them back to normal). Again, I would not use Open with...
on those types of files.
The file I was testing with yesterday is now behaving correctly - I did
Open With... on it and chose the Text Editor; now that choice sticks.

Guess I'll have to keep an eye on this the next time it happens and see
what Open with... options there are. Is there a way to inspect what
Eclipse thinks was the last used non-default editor for a given file?

Eric
Re: File associations problems [message #276035 is a reply to message #276034] Tue, 16 November 2004 10:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

OpenWith... :-) That tells you what it thinks the default is.


--
Thanks,
Rich Kulp
Re: File associations problems [message #276036 is a reply to message #276034] Tue, 16 November 2004 10:50 Go to previous message
Eclipse UserFriend
Originally posted by: chaves.inf.no.ufsc.spam.br

Eric Rizzo wrote:
> Is there a way to inspect what
> Eclipse thinks was the last used non-default editor for a given file?

The Core Tools plug-in has a view that shows all persistent properties
for a given selected resource. Platform/UI sets a property on files
whenever a non-default editor is chosen by the user. You should easily
spot that info. Another way would be to write such a view yourself.

You can get the Core Tools plug-in from:

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-core-home/downloads.html

Rafael
Previous Topic:Using javac with plugin
Next Topic:Problems restoring the expanded state of a tree
Goto Forum:
  


Current Time: Tue Jul 22 00:54:57 EDT 2025

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

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

Back to the top