Difference between revisions of "EnablingDoubleClick"

From Protege Wiki
Jump to: navigation, search
(OS X)
(OS X)
Line 22: Line 22:
 
</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.
 
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.
 +
 +
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]]
 +
Then navigate to and select the Protege application.

Revision as of 07:46, August 20, 2008

Enabling Double-Click

This is a work in development and when this is better tested this functionality will be better integrated into the Protege 4 OWL editor. Thanks to Alan Ruttenberg for contributing the OS X portion of this plugin.

OS X

Follow the instructions from [[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:

        <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>

and copy the Bootstrap.jar file into the plugins directory.

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. Selecting the application to open an owl file Then navigate to and select the Protege application.