Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Problem with the function "selectionChanged"
Problem with the function "selectionChanged" [message #58933] Thu, 30 April 2009 14:18 Go to next message
Gaston is currently offline GastonFriend
Messages: 5
Registered: July 2009
Junior Member
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 17:53 Go to previous message
Gaston is currently offline GastonFriend
Messages: 5
Registered: July 2009
Junior Member
It is a bug of Eclipse?
Re: Problem with the function "selectionChanged" [message #596555 is a reply to message #58933] Thu, 30 April 2009 17:53 Go to previous message
Gaston is currently offline GastonFriend
Messages: 5
Registered: July 2009
Junior Member
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: Sat Jun 12 18:44:33 GMT 2021

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

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

Back to the top