Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] Setting the instance under consideration in the collaboration plug-in programmatically

simonpa simon.paradies.ext at siemens.com
Fri Aug 7 01:54:33 PDT 2009


Hi Timothy,

thanks for investing the time to figure out this possibility. However, as
this should just be a stopgap, it would be nice if the plug-in provided
means to enable setting the instance. Maybe Tania gets aware of this
requirement somehow ;)

Cheers
Simon



I looked a bit and I also did not see a clean way to do this.  As  far
as I can tell this is not exported anywhere.  I suspect that Tania did
not expect the collaborative pane to be updated except in response to a
selection change.  

It is possible to get the AnnotationsDisplayComponent by walking the
gui.  In other words  I  reverse engineered
ProtegeCollabGUIProjectPlugin.insertCollabPanel and it worked.  But this
is an *extreme* form of a gross kludged hack.  (But devious enough that
I thought I  would mention it...)

-Timothy

{
    ProjectView view =
ProjectManager.getProjectManager().getCurrentProjectView();
    JSplitPane parent = (JSplitPane) view.getParent();
    AnnotationsDisplayComponent annotations =
(AnnotationsDisplayComponent) parent.getRightComponent();
    
   OWLModel model = (OWLModel) kb;
    OWLNamedClass pizza = model.getOWLNamedClass("SpicyPizza");
    annotations.setInstance(pizza);
}
-- 
View this message in context: http://www.nabble.com/Setting-the-instance-under-consideration-in-the-collaboration-plug-in-programmatically-tp24837449p24861214.html
Sent from the Protege - OWL mailing list archive at Nabble.com.




More information about the protege-owl mailing list