Author Topic: "File associations"?  (Read 10260 times)

henriko

  • Guest
"File associations"?
« on: December 04, 2005, 01:35:29 pm »
First time when i clicked on an .ico and an .rc , in the projects workspace tree, I was asked by Code::Blocks what to do.

The choices was if I would like to open the file within the Code::Block text editor, or in a external program of my choice.

Now I can't find a way to get this question once more. (I have looked in menus, in the registry, and I have serached for ini-files.)

How do one change theese buiit in file associations ?
« Last Edit: December 04, 2005, 01:38:55 pm by henriko »

Offline Urxae

  • Regular
  • ***
  • Posts: 376
Re: "File associations"?
« Reply #1 on: December 04, 2005, 01:41:24 pm »
Settings -> Plugins -> Default MIME handler

miggl

  • Guest
Re: "File associations"?
« Reply #2 on: December 04, 2005, 06:39:55 pm »
LOL, I had the EXACT same question. Thanks for asking it, henriko :). Thanks for the answer Urxae.

miggl

  • Guest
Re: "File associations"?
« Reply #3 on: December 04, 2005, 06:43:19 pm »
Settings -> Plugins -> Default MIME handler
That helped! Thanks, now the file opens in my resource editor. However, I still get the following error message:
Quote
ERROR:

Could not open file '[resource file here]'.
No handler registered for this type of file.

Any ideas? Again, thanks for your help :)

Mike

henriko

  • Guest
Re: "File associations"?
« Reply #4 on: December 04, 2005, 08:03:00 pm »
Thanks Urxae

takeshimiya

  • Guest
Re: "File associations"?
« Reply #5 on: December 04, 2005, 08:20:22 pm »
Perhaps 'Default MIME handler' name isn't very intuitive, it isn't?

Something like 'Registered File Types' or 'File Open Actions'?

The 'Default' part lends to think that there would be other MIME handler plugins.
Wouldn't be better (from a end-user standpoint) having only one MIME plugin, and other plugins requering for extensions (ie. wxSmith) just calling the MIME plugin with the extension?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: "File associations"?
« Reply #6 on: December 04, 2005, 09:45:12 pm »
Perhaps 'Default MIME handler' name isn't very intuitive, it isn't?

Something like 'Registered File Types' or 'File Open Actions'?

That's the name of the plugin...

The 'Default' part lends to think that there would be other MIME handler plugins.
Wouldn't be better (from a end-user standpoint) having only one MIME plugin, and other plugins requering for extensions (ie. wxSmith) just calling the MIME plugin with the extension?

This plugin provides the "default" implementation by associating file extensions with C::B or external programs.
Allowing many MIME plugins, makes C::B more open to extension.
For example, wxSmith could register its own MIME plugin to handle *.wxs files so on double-clicking them, they would open in the designer for editing.
Be patient!
This bug will be fixed soon...

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: "File associations"?
« Reply #7 on: December 04, 2005, 10:05:57 pm »
This plugin provides the "default" implementation by associating file extensions with C::B or external programs.
Allowing many MIME plugins, makes C::B more open to extension.
For example, wxSmith could register its own MIME plugin to handle *.wxs files so on double-clicking them, they would open in the designer for editing.

As a matter of fact, I just noticed wxSmith already provides a MIME plugin for this :)
Byo didn't waste any time. Since I enabled multiple plugins residing in the same DLL, he made it work already :D.
Be patient!
This bug will be fixed soon...

takeshimiya

  • Guest
Re: "File associations"?
« Reply #8 on: December 05, 2005, 12:19:20 am »
That's the name of the plugin...

And that's what I was suggesting to change :)
Not that it's a problem for me, but it seems to be not very intuitive for those who don't know what a MIME is.