Protege 4.1.0

org.protege.editor.core.plugin
Class AbstractProtegePlugin<P extends ProtegePluginInstance>

java.lang.Object
  extended by org.protege.editor.core.plugin.AbstractProtegePlugin<P>
All Implemented Interfaces:
ProtegePlugin<P>
Direct Known Subclasses:
AltStartupActionPlugin, CatalogEntryManagerPlugin, EditorKitHookPluginImpl, ExplanationPlugin, InconsistentOntologyPlugin, InferencePreferencePlugin, OntologyBuilderPlugin, OWLClassExpressionEditorPluginImpl, PreferencesPanelPluginJPFImpl, ProtegeActionPluginJPFImpl, ProtegeOWLReasonerPluginJPFImpl, RendererPlugin

public abstract class AbstractProtegePlugin<P extends ProtegePluginInstance>
extends Object
implements ProtegePlugin<P>


Field Summary
protected  org.eclipse.core.runtime.IExtension extension
           
 
Constructor Summary
protected AbstractProtegePlugin(org.eclipse.core.runtime.IExtension extension)
           
 
Method Summary
 String getDocumentation()
           
 String getId()
          Gets the plugin Id.
 org.eclipse.core.runtime.IExtension getIExtension()
           
 String getLabel()
           
protected  String getPluginProperty(String key)
           
protected  String getPluginProperty(String key, String defaultValue)
           
 P newInstance()
          Creates an instance of the plugin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extension

protected org.eclipse.core.runtime.IExtension extension
Constructor Detail

AbstractProtegePlugin

protected AbstractProtegePlugin(org.eclipse.core.runtime.IExtension extension)
Method Detail

getIExtension

public org.eclipse.core.runtime.IExtension getIExtension()

getId

public String getId()
Description copied from interface: ProtegePlugin
Gets the plugin Id.

Specified by:
getId in interface ProtegePlugin<P extends ProtegePluginInstance>
Returns:
A String that represents the Id of the plugin

getLabel

public String getLabel()

getDocumentation

public String getDocumentation()
Specified by:
getDocumentation in interface ProtegePlugin<P extends ProtegePluginInstance>

newInstance

public P newInstance()
                                            throws ClassNotFoundException,
                                                   IllegalAccessException,
                                                   InstantiationException
Description copied from interface: ProtegePlugin
Creates an instance of the plugin. It is expected that this instance will be "setup", but the instance's initialise method will not have been called in the instantiation process.

Specified by:
newInstance in interface ProtegePlugin<P extends ProtegePluginInstance>
Throws:
ClassNotFoundException
IllegalAccessException
InstantiationException

getPluginProperty

protected String getPluginProperty(String key)

getPluginProperty

protected String getPluginProperty(String key,
                                   String defaultValue)

Protege 4.1.0

Submit a bug report or feature request

For further API reference and developer documentation, see Protege 4 Developer Documentation.

Copyright © 2010 Stanford Center for Biomedical Informatics Research