Bug 306866 - [DataBinding] TitleAreaDialogSupport overwrites default message
Summary: [DataBinding] TitleAreaDialogSupport overwrites default message
Status: CLOSED DUPLICATE of bug 272794
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-23 15:04 EDT by Matt Biggs CLA
Modified: 2010-03-25 04:23 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Biggs CLA 2010-03-23 15:04:55 EDT
Build Identifier: 20100218-1602

I'm unsure if this should be solved by databinding or by the TitleAreaDialog class itself. Or perhaps i am mis-using TitleAreaDialog.

When you create a WizardPage you can also setDescription(). If databinding then occurs with no validation failures, the description message is returned from an error message to how it was before. 

With a TitleAreaDialog you can use setMessage() which then makes the dialog look similar to a wizards description field. The message however is always reset to null when TitleAreaDialogSupport is used. 

Would it be possible to make the TitleAreaDialog have a setDescription() method or possibly for the databinding to specify a default message and use this when no validation failures occur? 

 

Reproducible: Always
Comment 1 Ovidio Mallo CLA 2010-03-24 15:24:15 EDT
Matt, you might want to look at bug 272794 which seems to include your problem above. After skimming through that bug, it seems like some API was added to the TitleAreaDialog class (bug 272997) in order to make it possible to adapt the TitleAreaDialogSupport class in databinding in order to solve you're problem.
Comment 2 Matt Biggs CLA 2010-03-25 04:23:39 EDT
(In reply to comment #1)
> Matt, you might want to look at bug 272794 which seems to include your problem
> above. After skimming through that bug, it seems like some API was added to the
> TitleAreaDialog class (bug 272997) in order to make it possible to adapt the
> TitleAreaDialogSupport class in databinding in order to solve you're problem.


Thanks Ovidio that looks like the exact same issue.

*** This bug has been marked as a duplicate of bug 272794 ***