[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform] Re: Content types with 'multiple' extensions
|
- From: emarcotte@xxxxxxxxx (Eugene Marcotte)
- Date: Thu, 3 Jul 2008 21:53:08 +0000 (UTC)
- Newsgroups: eclipse.platform
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Makes sense.
Out of curiosity, since it is limited to extensions or whole filenames,
then what is the point of supporting a "wildcard"? Could you just have a
checkbox for each content type to say "extension" vs "full name."
I don't want to sound too cynical but letting me type wildcards makes me
want to actually have it match the wild cards :)
Oh well, I'll just add *.in and live with it for now :)
See ya and thanks for listening!
Eugene
Ed Merks wrote:
Eugene,
I think it's more working as designed. I could have a file like a.b.c.d
so where exactly does the the file name end and the extension begin? I
think the typical/standard definition is that only the last segment
starting with "." is the extension.
Eugene Marcotte wrote:
That sounds pretty logical. Do you think this qualifies as a bug or is
that the desired approach?
Is there no way around it other than putting the full filename or the
.in extension, which i was hoping to avoid since there are several
other .in files that are not XML :)
Thanks for your quick reply!
Eugene
Ed Merks wrote:
Eugene,
My guess would be that the extension matcher just looks for the last
"." in the file name and for abc.jnlp.in would find ".in" which would
match only against "*.in".
Eugene Marcotte wrote:
Hi,
I originally posted this in the webtools group, but they suggested I
try here.
I'm using Ganymede, on Fedora Core 9, 64 bit.
I was just trying to edit a file using the XML editor, the file does
not end .xml or any of the other xml content types that are listed
by default. The dialog that came up told me to add the content type
for this file, so I did. I added "*.jnlp.in" under xml and I also
added *.jnlp while I was there.
I went back to the file, and tried again. It still wouldn't open,
same exact message comes up. If I rename the file to end with just
.jnlp, it works fine and opens up in the XML editor. If I add
Test.jnlp.in (the full name of the file) to the content types, tried
again, and it opened right up. I just cannot have a 'complex' file
extension it seems.
So, I guess my question is: is there a way to get this to work?
Alternatively, is there any way to simply turn off content type
checking? I mean, does the XML editor really care what the extension
of my file is so long as it can be parsed as XML? I don't mind
having to go to a file and say "Open with XML editor" each time, if
it will actually work.
Thanks a bunch,
Eugene