file-association

How to handle File Associations from Application?

烂漫一生 提交于 2019-12-30 07:17:47
问题 I know Installers can setup File Associations for your Application during the installation process, so if you have your own File types that open with your Application, it will be setup to do that, and also the associated File will have its own icon in Windows what you define. Anyway, I would like to be able to Set/Remove the File types my Application will use, directly from the preferences form in my Application. What methods are needed to do this, I am thinking along the lines of the

How do I add my application in the Default Programs list of Windows Vista/7?

僤鯓⒐⒋嵵緔 提交于 2019-12-30 02:20:14
问题 So many programs feature a list of possible extensions and protocols under the "Default Programs" control panel applet. "Set Default PRograms", more precisely. (Vista & 7) I wish to add my programs in that list and set some extensions that it can handle. One more thing. My program supports addons for opening more files, so that list should be dynamic (I can add more extensions or even protocols at any time) By the way, yes, I know, this is not exactly a programming question. It'd be my humble

Associate file type with Java Swing application

巧了我就是萌 提交于 2019-12-29 00:38:48
问题 I am creating a java swing application and I need to set the my program as the default program for the file extension .mcsd (MIME type text/mcsd ). This must work on windows, and it would be nice if it worked on OS X/Linux as well. I am somewhat new to java (3 or 4 months) so please don't bombard me with all kinds of expert talk. I have seen associating a custom file extension with java app in windows, but I would prefer not to use the Java Web Start. If possible, I would also like to know

Double click document file in Mac OS X to open Java application

冷暖自知 提交于 2019-12-28 04:09:21
问题 I have a Java application in an application bundle that I want to associate a file type with. For example, if there's a file foo.example when that file, or any file with the .example extension, is double-clicked, I want my application to start and open the file. I also want the files to have my application's icon. I'd like to do this by editing the info.plist file, but it doesn't seem to be working. Also, how does my Java application know which file is passed to it? 回答1: Here is what needs to

Windows registry - register an application to open a file type

大兔子大兔子 提交于 2019-12-26 09:00:58
问题 I'm making an installer for an application which has a custom URI scheme and its own file type to open with it. The application executed with a launcher.bat , In the registry I've set the launcher.bat to do so. It works as it should be, unless I want to register the application wit its name to be shown as opening application both in exporer and browsers instead of launcher.bat . The registry file that applied by the installer script is the following ( it is gets generated dynamically, so don

How can I get syntax highlighting for my format in an Eclipse text editor?

橙三吉。 提交于 2019-12-25 04:58:45
问题 I need syntax highlighting for text with a specific structure in an Eclipse text editor. The scheme is simple; basically each line has six words separated by white-space, and lines starting with # are comments. Most important is to highlight the comments, but it would be useful to individually color the six elements in the non-commented lines. If it is too complicated to obtain, perhaps I could use an existing plugin meant for something with a similar syntax. Any suggestions? 回答1: If you want

Associate File Type and Icon

核能气质少年 提交于 2019-12-24 00:43:56
问题 Ok, I have looked all over and I am having a difficult time trying to figure out how to associate a custom file type with my C# application. I am using Visual Studio 2008 and am limited to .NET 2.0 due to company deployment. Basically all I really want to do is be able to allow the user to double click my custom file type or drag and drop it on the app icon and it load the data, as well as display a custom icon on the file itself. I can open the file via a dialog box and everything works

Setting Wix icon when advertise is set to no

别等时光非礼了梦想. 提交于 2019-12-23 23:09:39
问题 Seems like I'm forever asking questions about Wix. This should be the last, and it's just a polishing one. I'm wanting my associated files to have an icon to go with them, but in my ProgId element, the advertise is not specified which I assume defaults to no. Therefore in the wix documentation, it states: For an advertised ProgId, the Id of an Icon element. For a non-advertised ProgId, this is the Id of a file containing an icon resource. I'm not understanding how this works at all. Do I set

Java application doesn't know name of file being opened - Mac OS X

心不动则不痛 提交于 2019-12-23 20:27:51
问题 I have a Java application in an application bundle that has a file association (using Info.plist) that runs when a document is double-clicked. How do I get the filename of the document that was double-clicked in my Java application? Right now my Java app just runs and displays an empty document. There doesn't seem to be any command line arguments passed to the application. 回答1: I think you have to implement ApplicationListener or extend ApplicationAdapter and implement the handleOpenFile()

How do I pass a file as argument to my Java application created using JAR Bundler?

本秂侑毒 提交于 2019-12-22 04:51:54
问题 I would like to associate a specific file type with my application, so when I double-click one of the files of this specific type, my application opens. This works just fine, but the file I double-clicked does not get passed as an argument to my program. If I for instance associate my application with txt files and I double-click todo.txt , my application opens, but I have no idea which txt file I double-clicked. From what I can read, this is how it's supposed to work on OS X, and instead of