Difference between revisions of "Protege4DevDocs"

From Protege Wiki
Jump to: navigation, search
(Anatomy of a Plugin: link to plugin types page)
(Added code contributions)
Line 5: Line 5:
  
 
__TOC__
 
__TOC__
 +
  
 
== Working with the Protege source code ==
 
== Working with the Protege source code ==
 
 
  
 
=== Compiling and Running the Protege-OWL editor in a Generic IDE ===
 
=== Compiling and Running the Protege-OWL editor in a Generic IDE ===
Line 28: Line 27:
  
 
* [[CompileProtege4InEclipse|Compile and run the Protege 4 OWL editor in Eclipse]] <b>(In Progress)</b>- this page gives directions for compiling Protege 4.0 sources in Eclipse where ''each bundle is created as a separate Eclipse project''.
 
* [[CompileProtege4InEclipse|Compile and run the Protege 4 OWL editor in Eclipse]] <b>(In Progress)</b>- this page gives directions for compiling Protege 4.0 sources in Eclipse where ''each bundle is created as a separate Eclipse project''.
 +
  
 
=== Anatomy of a Plugin ===
 
=== Anatomy of a Plugin ===
Line 37: Line 37:
  
 
The example delves into producing a view plugin, but we also have a short list of other useful [[PluginTypes|plugin types]] that you may wish to implement (such as menu items etc).
 
The example delves into producing a view plugin, but we also have a short list of other useful [[PluginTypes|plugin types]] that you may wish to implement (such as menu items etc).
 +
  
 
== Troubleshooting ==
 
== Troubleshooting ==
  
 
* [[SolvingClassLoaderProblems|Troubleshooting class loader issues]]
 
* [[SolvingClassLoaderProblems|Troubleshooting class loader issues]]
 +
  
 
== Building The FaCT++ jni library ==
 
== Building The FaCT++ jni library ==
Line 52: Line 54:
  
 
* [[BuildingTheFactJniLibrary|Building the FaCT++ JNI Library]]
 
* [[BuildingTheFactJniLibrary|Building the FaCT++ JNI Library]]
 +
 +
 +
== Code contributions ==
 +
 +
Please see this page [[Protege4Contributing#Code_submissions|code contributions]].

Revision as of 08:09, August 14, 2008

Protege 4 Developer Documentation

This page is still somewhat under construction...




Working with the Protege source code

Compiling and Running the Protege-OWL editor in a Generic IDE

This section describes how to set up an IDE for plugin development. We describe this in two steps - first the core Protege sources are downloaded and compiled and then a plugin project is created. While these instructions were put together using eclipse we believe that they can be applied to other development environments and we welcome contributions from people using other development environments.

Compiling and Running a Plugin for Eclipse Users Only (Windows and Linux only)

Unlike the approaches for plugin development described above, the following instructions are only relevant to eclipse developers. These instructions use the OSGi development capabilities of eclipse (aka plugin development or rich client platform development). As far as I know - eclipse is the best IDE environment for developing OSGI applications.

Unfortunately - though we now know that this works - we have not yet finished the documentation. While this also has not yet been verified, it may be necessary to download the latest version of eclipse to get the OSGi runnable to work.


Anatomy of a Plugin

A short guide to writing a plug-in to show the class hierarchy. This doesn't delve deeply into setting up your build environment, but concentrates on a simple code example and making sure you understand the components and the structure of a plug-in.

This page also contains some information about the different parts of a plugin and how they work together. It also includes a very simple plugin and shows how to install it into the eclipse development environment.

The example delves into producing a view plugin, but we also have a short list of other useful plugin types that you may wish to implement (such as menu items etc).


Troubleshooting


Building The FaCT++ jni library

Because FaCT++ is written in C++, it is a little harder to get it to compile properly across platforms. In particular, a user may see errors such as

Link (dyld) error:
Symbol not found: _clock$UNIX2003

or a java.lang.UnsatisfiedLinkError with a message similar to the following

libFaCTPlusPlusJNI.so: /usr/lib/libstdc++.so.6: version `GL IBCXX_3.4.9' not found (required by libFaCTPlusPlusJNI.so)

This happens because the version of FaCT++ that was compiled into the Protege 4 owl editor is not compatible with the libraries in the users operating system. If this happens on a windows or an OS X machine then send a message to the P4 mailing list because the developers probably should fix this situation. (If you are not subscribed to this list look at this web page.) However on a linux or other operating system this is much more difficult because there are too many different variants. In this case you will probably have to build you own version of FaCT++. Hence we added the following page to make the work a little easier.


Code contributions

Please see this page code contributions.