All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.protege.editor.owl.ui.explanation.io.InconsistentOntologyPlugin Maven / Gradle / Ivy

Go to download

OWL ontology editing infrastructure used by the Protege desktop application.

The newest version!
package org.protege.editor.owl.ui.explanation.io;

import org.eclipse.core.runtime.IExtension;
import org.protege.editor.core.plugin.AbstractProtegePlugin;
import org.protege.editor.owl.OWLEditorKit;

public class InconsistentOntologyPlugin extends AbstractProtegePlugin {
	public static final String ID = "inconsistentOntologyExplanation";
	public static final String NAME_FIELD = "name";
	
	private OWLEditorKit editorKit;
	
	public InconsistentOntologyPlugin(OWLEditorKit editorKit, IExtension extension) {
		super(extension);
		this.editorKit = editorKit;
	}
	
	public String getName() {
		return getPluginProperty(NAME_FIELD);
	}
	
	@Override
	public InconsistentOntologyPluginInstance newInstance() throws ClassNotFoundException, IllegalAccessException, InstantiationException {
		InconsistentOntologyPluginInstance i = super.newInstance();
		i.setup(editorKit);
		return i;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy