Problem with the function "selectionChanged" [message #58933] |
Thu, 30 April 2009 10:18  |
Eclipse User |
|
|
|
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.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05444 seconds