Skip to main content



      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] Sun, 24 July 2011 21:32 Go to next message
Eclipse UserFriend
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] by Moderator

Re: Refresh the view in eclipse plugin [message #703267 is a reply to message #701338] Wed, 27 July 2011 07:22 Go to previous messageGo to next message
Eclipse UserFriend
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 07:25 Go to previous message
Eclipse UserFriend
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 Jul 04 02:05:45 EDT 2025

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

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

Back to the top