| Refresh the view in eclipse plugin [message #701338] |
Sun, 24 July 2011 21:32  |
Dhanasekar Messages: 2 Registered: July 2011 |
Junior Member |
|
|
I have created view a. It looks fine. But i do not know how to change the view content based on menu action. I tried inputChanged method. but it does not work for me. Could you please give a good example for "ContentProvider" and "inputChanged "
[Updated on: Sun, 24 July 2011 21:32] Report message to a moderator
|
|
|
|
| Re: Refresh the view in eclipse plugin [message #703270 is a reply to message #701338] |
Wed, 27 July 2011 07:25  |
Lubomir S. Messages: 3 Registered: July 2011 |
Junior Member |
|
|
Hi
Do you mean from eclipse menu?
You must have defined your own menu Handler, see command button example.
Define in extensions or.eclipse.ui.handler see help
create class.
public class SampleHandler extends AbstractHandler {
/**
* The constructor.
*/
public SampleHandler() {
}
/**
* the command has been executed, so extract extract the needed information
* from the application context.
*/
public Object execute(ExecutionEvent event) throws ExecutionException {
Here you jut get your panel from your view and change it and refresh.
return null;
}
}
|
|
|
Powered by
FUDForum. Page generated in 0.01761 seconds