|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ui.part.WorkbenchPart org.eclipse.ui.part.ViewPart org.dbe.studio.tools.ontologyviewer.views.OntologyViewer
The main view of the OntologyViewer
Nested Class Summary | |
protected class |
OntologyViewer.AvailableOntology
|
(package private) class |
OntologyViewer.DoubleClickListener
Inner class that implement the DoubleClickListener interface It is used in order to provide an 'interface' for the usage of the Ontology Viewer from other S/W components, e.g. |
Field Summary | |
(package private) org.eclipse.swt.widgets.TabFolder |
additionalInfoTabFolder
|
(package private) org.eclipse.swt.widgets.Combo |
availableOntologies
|
(package private) boolean |
connectionProblem
|
(package private) java.lang.String |
fadaNodeAddress
|
(package private) org.eclipse.swt.widgets.Button |
goSearch
|
static java.util.Vector |
listOfAvailableOntologies
|
(package private) org.eclipse.jface.viewers.TreeViewer |
ontologyTreeViewer
|
(package private) org.eclipse.swt.widgets.Text |
searchValue
|
org.dbe.kb.service.KBI |
theKBIservice
|
(package private) org.eclipse.swt.custom.SashForm |
theMainForm
|
org.dbe.kb.mdrman.JMItool |
theODMtool
|
(package private) OdmOntology |
theOntology
|
(package private) OdmOntology |
theOntologyPart
|
(package private) OntologyTree |
theTree
|
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
Constructor Summary | |
OntologyViewer()
Default constructor |
Method Summary | |
void |
addOntologyTreeListener(IOntologyTreeListener listener)
Adds a listener for double click event that correspond to the selection of an ontology class in this Ontology Viewer |
protected void |
clearView()
|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
|
protected void |
createSearchArea()
It creates the Search area |
protected void |
createTreeViewArea()
Create the Tree View area |
protected void |
getAvailableOntologies()
It uses the ODM proxy and gets the names (URIs) of the available ontologies |
static java.util.Vector |
getListOfAvailableOntologies()
|
OdmOntology |
getOntology()
|
void |
init(org.eclipse.ui.IViewSite site)
Initializes this view with the given view site. |
java.lang.String |
readFADAinfo()
It reads the Ontology Viewer property file |
void |
readOntology(java.lang.String ontName,
java.lang.String ontID)
|
protected void |
readOntologyClasses(org.dbe.kb.metamodel.odm.OdmPackage odmPackage)
It reads the Ontology classes |
protected void |
readOntologyClassesSecond(org.dbe.kb.metamodel.odm.OdmPackage odmPackage)
It reads the Ontology classes and class axioms |
protected void |
readOntologyDataRanges(org.dbe.kb.metamodel.odm.OdmPackage odmPackage)
It reads the Ontology data ranges |
protected void |
readOntologyDatatypeProperties(org.dbe.kb.metamodel.odm.OdmPackage odmPackage)
It reads the Ontology Datatype Properties |
protected void |
readOntologyDatatypePropertiesSecond(org.dbe.kb.metamodel.odm.OdmPackage odmPackage)
It reads the Ontology Datatype Properties axioms |
protected void |
readOntologyIndividuals(org.dbe.kb.metamodel.odm.OdmPackage odmPackage)
It reads the Ontology individuals |
protected void |
readOntologyObjectProperties(org.dbe.kb.metamodel.odm.OdmPackage odmPackage)
It reads the Ontology ObjectProperties |
protected void |
readOntologyObjectPropertiesSecond(org.dbe.kb.metamodel.odm.OdmPackage odmPackage)
It read the Ontology Object Properties axioms |
void |
removeOntologyTreeListener(IOntologyTreeListener listener)
Removes a listener for double click event that correspond to the selection of an ontology class in the Ontology viewer |
java.lang.Object |
run()
|
protected OdmOntology |
searchForOntologyConcept(java.lang.String key)
|
void |
setFocus()
|
Methods inherited from class org.eclipse.ui.part.ViewPart |
checkSite, getViewSite, init, saveState, setContentDescription, setInitializationData, setPartName |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPropertyListener, dispose, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
addPropertyListener, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
Field Detail |
public org.dbe.kb.service.KBI theKBIservice
public org.dbe.kb.mdrman.JMItool theODMtool
java.lang.String fadaNodeAddress
boolean connectionProblem
org.eclipse.jface.viewers.TreeViewer ontologyTreeViewer
org.eclipse.swt.custom.SashForm theMainForm
org.eclipse.swt.widgets.TabFolder additionalInfoTabFolder
public static java.util.Vector listOfAvailableOntologies
org.eclipse.swt.widgets.Combo availableOntologies
org.eclipse.swt.widgets.Text searchValue
org.eclipse.swt.widgets.Button goSearch
OdmOntology theOntology
OdmOntology theOntologyPart
OntologyTree theTree
Constructor Detail |
public OntologyViewer()
Method Detail |
public void init(org.eclipse.ui.IViewSite site) throws org.eclipse.ui.PartInitException
init
in interface org.eclipse.ui.IViewPart
org.eclipse.ui.PartInitException
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
public java.lang.Object run() throws java.lang.Exception
run
in interface IRunner
java.lang.Exception
protected void clearView()
protected void createSearchArea()
protected void createTreeViewArea()
public static java.util.Vector getListOfAvailableOntologies()
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
protected void getAvailableOntologies()
protected OdmOntology searchForOntologyConcept(java.lang.String key)
public void readOntology(java.lang.String ontName, java.lang.String ontID) throws javax.jmi.xmi.MalformedXMIException, java.io.IOException
ontName
- ontID
- It reads an ontology from the ODM repository. The way it reads from OMD
and it creates the ontology has as follows:
javax.jmi.xmi.MalformedXMIException
java.io.IOException
protected void readOntologyClasses(org.dbe.kb.metamodel.odm.OdmPackage odmPackage)
odmPackage
- protected void readOntologyClassesSecond(org.dbe.kb.metamodel.odm.OdmPackage odmPackage)
odmPackage
- protected void readOntologyDataRanges(org.dbe.kb.metamodel.odm.OdmPackage odmPackage)
odmPackage
- protected void readOntologyIndividuals(org.dbe.kb.metamodel.odm.OdmPackage odmPackage)
odmPackage
- protected void readOntologyObjectProperties(org.dbe.kb.metamodel.odm.OdmPackage odmPackage)
odmPackage
- protected void readOntologyObjectPropertiesSecond(org.dbe.kb.metamodel.odm.OdmPackage odmPackage)
odmPackage
- protected void readOntologyDatatypeProperties(org.dbe.kb.metamodel.odm.OdmPackage odmPackage)
odmPackage
- protected void readOntologyDatatypePropertiesSecond(org.dbe.kb.metamodel.odm.OdmPackage odmPackage)
odmPackage
- public void addOntologyTreeListener(IOntologyTreeListener listener)
listener
- an ontology tree viewer listenerpublic void removeOntologyTreeListener(IOntologyTreeListener listener)
listener
- an ontology tree viewer listenerpublic java.lang.String readFADAinfo()
public OdmOntology getOntology()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |