Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Refresh the view in eclipse plugin(Refresh the view based on my popup action menu result)
Refresh the view in eclipse plugin [message #701338] Mon, 25 July 2011 01:32 Go to next message
Dhanasekar  is currently offline Dhanasekar Friend
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: Mon, 25 July 2011 01:32]

Report message to a moderator

Re: Refresh the view in eclipse plugin [message #703267 is a reply to message #701338] Wed, 27 July 2011 11:22 Go to previous messageGo to next message
Lubomir S. is currently offline Lubomir S.Friend
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;
	}
}

Re: Refresh the view in eclipse plugin [message #703270 is a reply to message #701338] Wed, 27 July 2011 11:25 Go to previous message
Lubomir S. is currently offline Lubomir S.Friend
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;
	}
}
Previous Topic:Eclispe 3.7 cannot resolve external jars
Next Topic:How to add source lookup to my own launch configuration programmatically
Goto Forum:
  


Current Time: Fri Apr 26 04:39:58 GMT 2024

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

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

Back to the top