Status: Implemented
Created by titen96 07 Jun 2010 20:07
**STE **
i just wanted to know if this was a bug or not


tsangk |
07 Jun 2010 22:27. Edited 0 times. (Edit, Permalink) Included page "inc:signature" does not exist (create it now) |
leiger |
07 Jun 2010 23:35. Edited 0 times. (Edit, Permalink) Included page "inc:signature" does not exist (create it now) |
(user deleted) |
08 Jun 2010 23:47. Edited 1 times. (Edit, Permalink)
That should work as long as you can pass the filename to the routine that opens a file. The bigger issue (at least in Windows) is that *.jar files are not recognized as valid win32 apps. You could create a batch file, I suppose, to launch STE something like this:
Then you could call the batch file from the command line like so:
Note: This assumes you have ste.jar in a folder that is located in your path. I like to put utilities like this in a utils folder and then add that folder to my %path% environment variable. You should also be able to create a shortcut to the bat file and then use drag and drop to drop any text file on a shortcut to the bat file. Of course, none of this will work unless/until Shane figures out how to read a command line parameter. ;) Once this is working, I found a slick open source utility to convert jar files to a Windows executable:
It took off and created a working exe of STE in no time. I realize converting a jar to exe kind of defeats the purpose of java and cross-platform compatibility, but if you're only going to use it on a Windows PC, then this is a viable way to create an exe that can be associated with *.ste files, create shortcuts, etc. Included page "inc:signature" does not exist (create it now) |
leiger |
09 Jun 2010 00:00. Edited 3 times. (Edit, Permalink) I haven't used batch files that often, so I'm glad you know what you're talking about :) Will see if I can get it working in a way that doesn't require too much to set up (so that the tutorial in the doc's section isn't too long). Edit: If I really wanted to make it easy, I could probably write a separate JAR file just for generating the batch file etc!!! ;-) Included page "inc:signature" does not exist (create it now) |
leiger |
09 Jun 2010 00:09. Edited 1 times. (Edit, Permalink)
That's in the documentation ;-)
Can you please test the Help options that launch this website in a browser? That is the only part that requires the latest version of the JRE. Included page "inc:signature" does not exist (create it now) |
leiger |
04 Jul 2010 14:00. Edited 0 times. (Edit, Permalink) I'm fairly certain now after doing a bit of searching and experimenting that it is impossible to do this with just a JAR file. I can make it so that you can create a shortcut that will launch a certain file using STE by providing the filename as a parameter, but that doesn't seem to be enough to allow it to be defined as the default for a specific file type. Not even "Open with…" will work. I have applied for a free license of Excelsior JET. As well as some performance improvements, it should hopefully open up a few more possibilities… including this wish finally being able to be implemented! :) There is a possibility that using Excelsior might prevent me from accessing the Wikidot API as it might be incompatible with the libraries I need to do that. If that is the case then it's a deal-breaker. I'm enquiring about that at the moment. Cheers, Included page "inc:signature" does not exist (create it now) |
(user deleted) |
05 Jul 2010 01:58. Edited 0 times. (Edit, Permalink)
I find that sometimes that's the only way to have an intelligent conversation! It's a bummer that associating *.ste files with STE is such a challenge. One of the best features of most editors I use is the ability to add them to the context menu (edit with STE and open with STE would be very handy). Included page "inc:signature" does not exist (create it now) |
leiger |
09 Jul 2010 13:51. Edited 0 times. (Edit, Permalink) There seems to be no way at the current point in time to allow dynamic launching (launching of files without knowing the name of the file beforehand) as JAR files are not considered to be proper applications on most operating systems. As I mentioned above this is partially implemented though… so if you are launching STE using the console you can provide a filename as a parameter and it should launch that file when STE starts. Not being able to show the STE logo in the taskbar when the app is running is a part of the same problem… I'm restricted to using the JDK/JRE icon only. So, I'm going to mark this as IMPLEMENTED because I've done as much as I can here for now. Included page "inc:signature" does not exist (create it now) |