Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Problem with the function "selectionChanged"
Problem with the function "selectionChanged" [message #58933] Thu, 30 April 2009 10:18 Go to next message
Eclipse UserFriend
Hi, we are developing a plugin, and we have a problem with the function
"selectionChanged".

The problem happend when this sequence occurs:
1. Run Eclipse Application;
2. To select (click) a project;
3. Execute an action of the top menu; //To extract project's information
4. To select (click) other project;
5. Execute an action of the top menu; //To extract project's information

The function selectionChanged don't register the selection (step 4).
Because in the step 5 extract the information of the same project selected
in the step 2.

The function selectionChanged is not working very well.
We didn't find the solution to this problem.

We attached the IWorkbenchWindowActionDelegate Class.

public class ProjectSelectionAction implements
IWorkbenchWindowActionDelegate {

private static IWorkbenchWindow window = null;
private static ISelection selection = null;

public void init(IWorkbenchWindow window) {
this.window = window;
}
public void run(IAction action) {}

public void selectionChanged(IAction action, ISelection selection) {
if (selection instanceof TreeSelection)
this.selection = selection;
}
public void dispose() { }
}

We need your help!!! Thanks.
Re: Problem with the function "selectionChanged" [message #58958 is a reply to message #58933] Thu, 30 April 2009 13:53 Go to previous message
Eclipse UserFriend
It is a bug of Eclipse?
Re: Problem with the function "selectionChanged" [message #596555 is a reply to message #58933] Thu, 30 April 2009 13:53 Go to previous message
Eclipse UserFriend
It is a bug of Eclipse?
Previous Topic:Problem with the function "selectionChanged"
Next Topic:Can Repo folder be used as update site?
Goto Forum:
  


Current Time: Thu May 08 15:18:45 EDT 2025

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

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

Back to the top