Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Manage button accessibility in Repository Setting Page(WizardDialog.restoreUIState() overrides the user setting)
Manage button accessibility in Repository Setting Page [message #651061] Thu, 27 January 2011 16:03
Evgeny Avtsin is currently offline Evgeny Avtsin
Messages: 4
Registered: November 2009
Junior Member
Hello,

I need updating accessibility of a plugin-added button in Repository Setting Page following user input .
setEnabled() is called for the appropriate button from the validator.

The code looks:
public class MyValidator extends org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySetting sPage.Validator {

@Override
public void run(IProgressMonitor monitor) throws CoreException {
...
PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
public void run() {
MyButton.setEnabled(enable);

But the value is immediately overridden by WizardDialog.restoreUIState()
How could I preserve my setting?

Thank you in advance,
Evgeny
Previous Topic:How Troubleshoot? Submit failed: Failed submitting task data
Next Topic:Access trac's wiki pages via ant
Goto Forum:
  


Current Time: Fri Oct 24 15:39:01 GMT 2014

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

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