How to listen selection event in package explorer view? [message #169067] |
Thu, 11 December 2003 02:57  |
Eclipse User |
|
|
|
Originally posted by: duan-yonghong.sjtu.edu.cn
Hi, everyone,
Recently, I am wondering how to listen selection event in package
explorer view. For example, when I right click a project name which shows in
package explorer view, how can I catch this event and get some information
such as which project I have just selected.
Is there any example which do the same thing just like what I want to
do? I have read some document and code about these things. But I still have
no idea about event handle mechanism in views.
Thank you!
Duanyh
SJTU
|
|
|
Re: How to listen selection event in package explorer view? [message #172013 is a reply to message #169067] |
Thu, 18 December 2003 12:26  |
Eclipse User |
|
|
|
Originally posted by: John_Arthorne.oti.com_
IWorkbenchPage extends ISelectionService, which can be queried for the
current selection, or you can attach a listener to be notified of
selection changes.
--
duanyh wrote:
> Hi, everyone,
>
> Recently, I am wondering how to listen selection event in package
> explorer view. For example, when I right click a project name which shows in
> package explorer view, how can I catch this event and get some information
> such as which project I have just selected.
> Is there any example which do the same thing just like what I want to
> do? I have read some document and code about these things. But I still have
> no idea about event handle mechanism in views.
> Thank you!
>
> Duanyh
> SJTU
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.28121 seconds