Skip to main content


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 13:09 Go to next message
vinay  is currently offline vinay Friend
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 18:40 Go to previous messageGo to next message
Paul Glezen is currently offline Paul GlezenFriend
Messages: 60
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 15:29 Go to previous message
Joel Greenyer is currently offline Joel GreenyerFriend
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: Fri Apr 19 18:35:11 GMT 2024

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

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

Back to the top