Associating the launcher with a type of file
Now you are ready to associate the Open File launcher with some file type in your application. The details of how to do this will of course vary depending on the system. Generally, you must specify everything before the filename in the above example command as the "external editor".
As an example, to associate the IDE with *.java files on Windows machines:
- Open any Windows Explorer window and choose Tools | Global Options.... Go to the File Types tab.
- See if there is some kind of entry for Java source files (the name may vary, depending on what software has been installed) - the entry should specify the file extension
java
. Click New Type... if necessary; otherwise select the entry and click Edit....- In the Actions box, you need at least one action which opens the file in the IDE - you can name it whatever you like, usually
Open
. Click New... or Edit... as appropriate.- In the resulting action dialog box, supply whatever name you like, and give as the application the command you typed before, but replacing the filename with
%1
:C:\jdk1.2.2\jre\bin\javaw -jar "C:\Program Files\forte4j\modules\utilities.jar" "%1"- Normally you will also click Set Default (it will be bold if it is the default) to make it the default action for double-clicks.
- If desired, you may similarly associate other file types - recommended are
*.properties
,*.ser
,*.form
,*.class
,*.jar
,*.zip
, and so on.Now you should just be able to double-click any of these files in the Windows environment and the IDE will open them for you. For other systems such as Solaris and Linux, if you use a file browser (such as from KDE or Gnome, or a separate browser) you can similarly set up file associations.
Contents | Prev | Next | Index |