[protege-owl] add menu entry

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[protege-owl] add menu entry

ulrich thye

i can´t get it work!

I indend to add a menu entry in Tools.
I tryed with the code as shown below, create a
package examplemenu.jar with the manifest:

Name mymenu/testmenu.class
OWLModelAction: True

put this jar file in a subfolder: plugins/mymenu/examplemenu.jar

The plugin is loaded, but i can´t see the enty.
I have tryed a lot of variants for the return value of getMenuPath()
but nothing works.

Can someone help me, pleas?

Ulrich Thye

The test source:

package mymenu;

import edu.stanford.smi.protegex.owl.model.OWLModel;
import edu.stanford.smi.protegex.owl.ui.actions.AbstractOWLModelAction;

public class testmenu extends AbstractOWLModelAction {
   public String getMenubarPath() {
    return TOOLS_MENU + PATH_SEPARATOR + "mymenu";
   public String getName() {
        return "Eval menuitem";
   public void run(OWLModel owlModel) {
    System.out.println(" HERE IS  TESTMENU");
To unsubscribe go to http://protege.stanford.edu/community/subscribe.html