|
|
(4 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
− | =Enabling Double-Click= | + | == Double-clicking on OWL files == |
| | | |
− | This is a work in development and when this is better tested this functionality will be better integrated into the Protege 4 OWL editor. (This will probably happen within the next couple of builds after the upcoming beta release.) Thanks to Alan Ruttenberg for contributing the OS X portion of this plugin.
| + | For all operating systems except OS X, Protege 4 works with double-click as installed - you simply follow the usual OS specific steps for indicating which application to use to open an OWL file. In the case of OS X there is an extra adjustment that needs to be done (we are working on removing this extra step). |
| | | |
− | For the time being, there is a slight problem with the first double-click. The welcome dialog sticks around when it really should be hidden. This is fixed in the latest svn and will work properly in the next build.
| + | If you are trying to enable double-click on an OS X machine, follow the instructions from [[ChangingTheHeapSize#Editting_the_Info.plist|editing the Info.plist]] to open the Info.plist file with a text editor. Add the following lines underneath any other key/value pair: |
| | | |
− | ==OS X==
| |
− |
| |
− | In this case, apple has to handle double-clicking in a different way from all operating systems past and future. But the web (and in this case Alan Ruttenberg) has all the answers
| |
− |
| |
− | Follow the instructions from [[ChangingTheHeapSize#Editting_the_Info.plist|Editing the Info.plist]] to open the Info.plist file with a text editor. Add the following lines underneath some other key/value pair:
| |
| <pre> | | <pre> |
| <key>CFBundleDocumentTypes</key> | | <key>CFBundleDocumentTypes</key> |
Line 25: |
Line 20: |
| </array> | | </array> |
| </pre> | | </pre> |
− | and copy the [http://smi-protege.stanford.edu/repos/protege/protege4/small-projects/org.protege.editor.bootstrap/trunk/Bootstrap.jar Bootstrap.jar] file into the plugins directory. After build 101 you will no longer need to copy the Bootstrap.jar file. The OS X specific code is already included in the core editing framework.
| |
− |
| |
− | Now Protege is ready for double-click functionality. Probably due to some setting on my machines, I have not yet succeeded in fully enabling double click. But I can enable the open-with menu.
| |
| | | |
− | [[Image:OwlDoubleClickOsXOpenWith.png|Selecting the application to open an owl file]]
| + | Now configure double-click as you would with any other OS X application. |
| | | |
− | Then navigate to and select the Protege application. You will probably want to select "Always open with" and you may need to choose "All Applications" in order to find protege.
| + | Thanks are due to Alan Ruttenberg for his suggestion on how to enable double-click on the OS X platform. |
− | | |
− | [[Image:OwlDoubleClickOsXOpenWithOptions.png|Selecting the open options]]
| |
− | | |
− | Now if you right click on a file and select Protege Application the Protege application will open the desired file.
| |
− | | |
− | == Other Operating Systems ==
| |
− | | |
− | Now we come to the rest of the world (hopefully you are running linux but this probably works for windows). Edit the Protege.lax file with a text editor to change the main class,
| |
− | <pre>
| |
− | # LAX.MAIN.CLASS
| |
− | # --------------
| |
− | # the class that contains the main method for the application
| |
− | | |
− | lax.main.class=org.protege.editor.bootstrap.Main
| |
− | </pre>
| |
− | and the class path,
| |
− | <pre>
| |
− | # LAX.CLASS.PATH
| |
− | # --------------
| |
− | # the Java classpath necessary to run this application
| |
− | # Can be separated by colons (Mac OS/Unix) or semicolons (Windows)
| |
− | | |
− | lax.class.path=org.eclipse.osgi.jar:lax.jar:Bootstrap.jar
| |
− | </pre>
| |
− | Now right click on an owl file and request to open it with Protege.
| |
Latest revision as of 16:41, September 30, 2008
Double-clicking on OWL files
For all operating systems except OS X, Protege 4 works with double-click as installed - you simply follow the usual OS specific steps for indicating which application to use to open an OWL file. In the case of OS X there is an extra adjustment that needs to be done (we are working on removing this extra step).
If you are trying to enable double-click on an OS X machine, follow the instructions from editing the Info.plist to open the Info.plist file with a text editor. Add the following lines underneath any other key/value pair:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>owl</string>
</array>
<key>CFBundleTypeName</key>
<string>OWL Ontology</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
</dict>
</array>
Now configure double-click as you would with any other OS X application.
Thanks are due to Alan Ruttenberg for his suggestion on how to enable double-click on the OS X platform.