Problem with 'prj' file association

Project, workspace, and file management issues

Problem with 'prj' file association

Postby analox » Fri Sep 24, 2004 1:42 am

I want to use UE together with an IAR compiler.

But as IAR already uses 'prj' for project files ... is there a way to change prj inside UE to some other extension eg pru ?

UE seems to be hardwired to prj for files given via commandline

That will end up in confusion ... :(
User avatar
analox
Newbie
 
Posts: 1
Joined: Thu Sep 23, 2004 11:00 pm

Re: Problem with 'prj' file association

Postby Mofi » Fri Sep 24, 2004 5:57 am

Yes, the extension of UltraEdit project file is prj and cannot be changed and no command line option is available to specify a file with a different extension as project file. This is a problem of many applications, which uses projects.

This problem was discussed in the old forum. Not available anymore - see below my next post..

Maybe the workaround I wrote there is usefull for you.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 3936
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Problem with 'prj' file association

Postby crodgers » Thu Apr 07, 2005 3:23 pm

Being new, I am still looking around and found this old thread. But the old forum referenced no longer exists. What was the workaround for UE specific prj files?

One thing that I found that seems to work for now is to hexedit the uedit32.exe using UltraEdit and replace the little "prj"s with "pru"s. Now when I create a new project file, it is looking for .pru files and it saves my projects as .pru files. The downside to this is that I lose the change and have to re-patch the .exe every time there is an upgrade or hotfix...

Since the extension "prj" is referenced explicitly, it seems like it would be fairly easy to make the extension a configurable item. It is probably not very high up on the requirements list, though...
User avatar
crodgers
Basic User
Basic User
 
Posts: 12
Joined: Fri Mar 18, 2005 12:00 am
Location: FL

Re: Problem with 'prj' file association

Postby Mofi » Fri Apr 08, 2005 2:40 am

The workaround was to add a context menu entry for all programs, which use .prj files and set the most needed one as default. The default association is activated by double clicking on the file.

The alternatives are shown by right clicking on the file in the context menu and the user can now select the appropriate tool. The project files are named for example projectname_avr.prj, projectname_ue.prj, ... so the user knows, which is the appropriate tool for this project file and how it should be opened - with double click or selecting the correct tool from the right mouse button menu list.

I have installed three programs - Tasking EDE, ICCAVR and UE - which all have .prj as extension for project files and none of these programs let me specify a different extension for their project file. But with this workaround, I have no problem to handle it.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 3936
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Problem with 'prj' file association

Postby crodgers » Fri Apr 08, 2005 9:36 am

Mofi wrote:The workaround was to add a context menu entry for all programs, which use .prj files and set the most needed one as default. The default association is activated by double clicking on the file.


How do you add a context menu entry? Is that a UE thing? Or is it a Windows thing? Are you talking about when I use Windows Explorer to find a file and right-click the file? Then I get the little menu that includes things like Properties, Send To, Open With, etc. Is that the context menu?

Or are you talking about finding files in the UE Explorer tab and right clicking on them there?
User avatar
crodgers
Basic User
Basic User
 
Posts: 12
Joined: Fri Mar 18, 2005 12:00 am
Location: FL

Re: Problem with 'prj' file association

Postby Mofi » Sun Apr 10, 2005 11:38 am

crodgers wrote:How do you add a context menu entry? Is that a UE thing? Or is it a Windows thing?


It is a general Windows feature. Open Windows Explorer - search for the Folder Options in the menu - click on File Types - search for the correct file type, i.e. Project Files .prj - click on the Edit button - click on button New - enter for example "Open with UltraEdit" and set path to uedit32.exe - OK. I cannot exactly describe the procedure, because it differs a little on various windows OS. I'm writting this at the moment with Win98.

crodgers wrote:Are you talking about when I use Windows Explorer to find a file and right-click the file? Then I get the little menu that includes things like Properties, Send To, Open With, etc. Is that the context menu?


Yes, that's what I talk about.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 3936
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Projects/Workspace