Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Apply/Revert button not getting enabled in launch configuration tab(Apply/Revert button not getting enabled in launch configuration tab)
Apply/Revert button not getting enabled in launch configuration tab [message #684343] Wed, 15 June 2011 09:09 Go to next message
vinay  is currently offline vinay
Messages: 26
Registered: March 2011
Junior Member
Hi,

I have created an launch configuration tab for a new debug configuration.I have added controls(Text, CheckBox etc) on that tab. But when I enter some data or change data in those controls, the Apply/Revert buttons are not getting enabled.

Would someone please provide me some guidance?

Thanks in advance.
Re: Apply/Revert button not getting enabled in launch configuration tab [message #692574 is a reply to message #684343] Mon, 04 July 2011 14:40 Go to previous messageGo to next message
Paul Glezen is currently offline Paul Glezen
Messages: 59
Registered: July 2009
Member
You may want to create your own local instance of a ModifyListener for your configuration
tab like the one below.

private ModifyListener modifyListener = new ModifyListener() {
public void modifyText(ModifyEvent e) {
setDirty(true);
updateLaunchConfigurationDialog();
}
};

Add the listener to the important fields on your configuration tab.
Re: Apply/Revert button not getting enabled in launch configuration tab [message #836518 is a reply to message #692574] Wed, 04 April 2012 11:29 Go to previous message
Joel Greenyer is currently offline Joel Greenyer
Messages: 170
Registered: July 2009
Senior Member
Hi,
I'm having the same problem.

I extend the AbstractLaunchConfigurationTab class and do the same.
The Apply and Revert buttons stay deactivated... what could I be missing...?

When I debug, I see that setDirty(true) and updateLaunchConfigurationDialog() are definitely called.

Any idea?

Thanks

Joel

On 04.07.2011 20:40, Paul Glezen wrote:
> You may want to create your own local instance of a ModifyListener for your configuration tab like the one below.
>
> private ModifyListener modifyListener = new ModifyListener() {
> public void modifyText(ModifyEvent e) {
> setDirty(true);
> updateLaunchConfigurationDialog();
> }
> };
>
> Add the listener to the important fields on your configuration tab.
>
Previous Topic:Widget disposed when changing perspective
Next Topic:Creating plugin in eclipse
Goto Forum:
  


Current Time: Sun Aug 31 00:23:32 EDT 2014

Powered by FUDForum. Page generated in 0.01644 seconds