Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » ILaunchConfigurationTab - enabling the Apply button
icon5.gif  ILaunchConfigurationTab - enabling the Apply button [message #1061685] Mon, 03 June 2013 13:34 Go to next message
M M is currently offline M MFriend
Messages: 4
Registered: June 2013
Junior Member
Hello,

I created a class that implements the ILaunchConfigurationTab, and it works just right, except that I do not know how to enable the Apply button. The class javadoc does not provide any hints on this. Shocked


Using Juno Service Release 2.
Re: ILaunchConfigurationTab - enabling the Apply button [message #1068594 is a reply to message #1061685] Sat, 13 July 2013 20:25 Go to previous messageGo to next message
Ken Gilmer is currently offline Ken GilmerFriend
Messages: 1
Registered: July 2013
Junior Member
I found the answer by looking at the org.eclipse.debug.ui.CommonTab implementation. They define a method to make the dialog dirty when any UI elements change:

/**
	 * Updates the buttons and message in this page's launch
	 * configuration dialog.
	 */
	protected void updateLaunchConfigurationDialog() {
		if (getLaunchConfigurationDialog() != null) {
			//order is important here due to the call to 
			//refresh the tab viewer in updateButtons()
			//which ensures that the messages are up to date
			getLaunchConfigurationDialog().updateButtons();
			getLaunchConfigurationDialog().updateMessage();
		}
	}
icon10.gif  Re: ILaunchConfigurationTab - enabling the Apply button [message #1140456 is a reply to message #1068594] Wed, 16 October 2013 11:16 Go to previous message
M M is currently offline M MFriend
Messages: 4
Registered: June 2013
Junior Member
Yeah, this worked when I deleted the overridden method of
@Override
public void setLaunchConfigurationDialog(ILaunchConfigurationDialog dialog){
}

that was doing nothing when I was assigning the dialog.
Now it works perfectly. Thanks! Smile
Previous Topic:custom Editor development in eclipse plugin using eclipse ganymede version
Next Topic:How create folder under eclipse/configuration directory during software install
Goto Forum:
  


Current Time: Fri Apr 26 23:48:24 GMT 2024

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

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

Back to the top