edu.stanford.smi.protegex.owl.swrl.ui
Class SWRLProjectPlugin

java.lang.Object
  extended byedu.stanford.smi.protege.plugin.AbstractPlugin
      extended byedu.stanford.smi.protege.plugin.AbstractProjectPlugin
          extended byedu.stanford.smi.protege.plugin.ProjectPluginAdapter
              extended byedu.stanford.smi.protegex.owl.swrl.ui.SWRLProjectPlugin
All Implemented Interfaces:
edu.stanford.smi.protege.util.Disposable, edu.stanford.smi.protege.plugin.Plugin, edu.stanford.smi.protege.plugin.ProjectPlugin

public class SWRLProjectPlugin
extends edu.stanford.smi.protege.plugin.ProjectPluginAdapter

A Project Plugin that does some initialization after a SWRL project has been loaded. The idea is that SWRL support is activated iff the ontology imports the SWRL namespace. This triggers the installation of a specific FrameFactory so that SWRL-specific API classes are used automatically.

Author:
Martin O'Connor , Holger Knublauch

Constructor Summary
SWRLProjectPlugin()
           
 
Method Summary
static void adjustWidgets(edu.stanford.smi.protege.model.Project project)
           
 void afterLoad(edu.stanford.smi.protege.model.Project p)
           
static boolean isSWRLImported(OWLModel owlModel)
           
 
Methods inherited from class edu.stanford.smi.protege.plugin.ProjectPluginAdapter
afterCreate, afterShow, beforeClose, beforeHide, beforeSave
 
Methods inherited from class edu.stanford.smi.protege.plugin.AbstractPlugin
dispose, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.stanford.smi.protege.plugin.Plugin
getName
 
Methods inherited from interface edu.stanford.smi.protege.util.Disposable
dispose
 

Constructor Detail

SWRLProjectPlugin

public SWRLProjectPlugin()
Method Detail

adjustWidgets

public static void adjustWidgets(edu.stanford.smi.protege.model.Project project)

afterLoad

public void afterLoad(edu.stanford.smi.protege.model.Project p)

isSWRLImported

public static boolean isSWRLImported(OWLModel owlModel)