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 #596542] Thu, 30 April 2009 14:18
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.
Previous Topic:Do we need different update sites for Windows and MacOSX?
Next Topic:Problem with the function "selectionChanged"
Goto Forum:
  


Current Time: Sun Jun 13 00:42:37 GMT 2021

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

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

Back to the top