Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to listen selection event in package explorer view?
How to listen selection event in package explorer view? [message #169067] Thu, 11 December 2003 02:57 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
>
Previous Topic:synchronize with cvs got dramatically slow down
Next Topic:silent appending to an IFile
Goto Forum:
  


Current Time: Wed Jul 16 03:55:32 EDT 2025

Powered by FUDForum. Page generated in 0.28121 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top