Protege selection issue

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Protege selection issue

ianh

Hi,

 

I’m developing a Protégé plugin that successfully uses this method:  OWLClass concept = getOWLWorkspace().getOWLSelectionModel().getLastSelectedClass();

 

Protégé allows for more than one class to be selected i.e. by using the shift or ctrl key.

 

Is there a method that extends the function of getLastSelectedClass() isuch that it returns all selected classes ??

 

Help appreciated.

 

 

Best regards,

 

Ian.

======================================================================================

Ian Hyland                                  Email: [hidden email]                                      Tel: +44 7816 671 524

======================================================================================

 


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: Protege selection issue

ianh

Hi,

 

I’m developing a Protege plugin that successfully uses this method:  OWLClass concept = getOWLWorkspace().getOWLSelectionModel().getLastSelectedClass();

 

Protege allows for more than one class to be selected i.e. by using the shift or ctrl key.

 

Is there a method that extends the function of getLastSelectedClass() such that it returns all selected classes (will also need to cover ObjectProperties with presumably a separate method) ??

 

Help appreciated.

 

 

 

 

 

Best regards,

 

Ian.

======================================================================================

Ian Hyland                                  Email: [hidden email]                                      Tel: +44 7816 671 524

======================================================================================

 


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: Protege selection issue

ianh
In reply to this post by ianh
Hi all,

I'm hoping to close this (Protege plugin) development within the next couple
of days so any advice / ideas would be much appreciated.

My code is successfully using the following methods to select a single
class/object property/entity.

OWLClass concept =
getOWLWorkspace().getOWLSelectionModel().getLastSelectedClass();
OWLObjectProperty role =
getOWLWorkspace().getOWLSelectionModel().getLastSelectedObjectProperty();
OWLEntity entity =
getOWLWorkspace().getOWLSelectionModel().getSelectedEntity();

Protege allows multiple classes/properties to be selected i.e. by using the
control or shift keys.

Are there any methods available that extend the function of the above to
allow for these multiple selections to be passed into my code ??


Best regards,

Ian.



--
Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: Protege selection issue

Matthew Horridge-2
Administrator
Hi Ian,

The main selection model supports single selection only.  Multi-selection in hierarchies and lists is local to those components and tends to be used to allow bulk deletion etc.

Cheers,

Matthew


> On Sep 5, 2019, at 06:01, ianh <[hidden email]> wrote:
>
> Hi all,
>
> I'm hoping to close this (Protege plugin) development within the next couple
> of days so any advice / ideas would be much appreciated.
>
> My code is successfully using the following methods to select a single
> class/object property/entity.
>
> OWLClass concept =
> getOWLWorkspace().getOWLSelectionModel().getLastSelectedClass();
> OWLObjectProperty role =
> getOWLWorkspace().getOWLSelectionModel().getLastSelectedObjectProperty();
> OWLEntity entity =
> getOWLWorkspace().getOWLSelectionModel().getSelectedEntity();
>
> Protege allows multiple classes/properties to be selected i.e. by using the
> control or shift keys.
>
> Are there any methods available that extend the function of the above to
> allow for these multiple selections to be passed into my code ??
>
>
> Best regards,
>
> Ian.
>
>
>
> --
> Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
> _______________________________________________
> protege-dev mailing list
> [hidden email]
> https://mailman.stanford.edu/mailman/listinfo/protege-dev


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: Protege selection issue

ianh
In reply to this post by ianh
Hi Matthew,

Many thanks for your response - and understood.

Maybe this could be a useful feature development for a future release ??



Best regards,

Ian.




--
Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev