<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1505" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>> > 1) Custom Preferences?<BR>> > 
(org.jboss.tools.common.model.ui.preferences.XMOBasedPreferencesPage).<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>> > 
%workspace%/.metadata/.plugins/org.jboss.tools.common.model/Preferences.xml<BR>> 
<BR>> hmm - I can't find such file in any of the workspaces I have run jboss 
<BR>> tools with ? the only one I can see is .rule-sets.xml which I also is 
<BR>> wondering why is there ;)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>It appears their only after user changes 
preferences in dialog.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>.rule-sets.xml  keeps preferences 
for verification rules (jsf and struts)</FONT></DIV>
<DIV><FONT face=Arial size=2>edited on page RedHat/Verification That is one more 
example of our </FONT></DIV>
<DIV><FONT face=Arial size=2>old framework.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><BR><FONT face=Arial size=2> <BR>> 
> There was preference page 'Report Problem'. Someone removed it when<BR>> 
> migrating to RedHat. It is quite easy to restore it.<BR>> <BR>> Ok - 
we should do that. How is that enabled ?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2>ReportProblemPreferencesPage should be 
registered in plugin.xml as preference page, I will do it.</FONT><BR><BR>> 
How does that dialog relate to the "report problems" dialog ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Example:</FONT></DIV>
<DIV><FONT face=Arial 
size=2>ProblemReportingHelper.reportProblem(WebUiPlugin.PLUGIN_ID, "Exception 
caught in AppRegisterWizard.performFinish(): " + ex.getMessage(), 
ex);</FONT></DIV>
<DIV><FONT face=Arial size=2>that results in opening our error 
dialog.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The idea was to prompt users to report problems, by 
showing this dialog instead of silent </FONT></DIV>
<DIV><FONT face=Arial size=2>writing to log. Also, only through this call the 
redhat log we discussed can be filled with</FONT></DIV>
<DIV><FONT face=Arial size=2>problems most interesting to us (we can define 
places for that by call as above example), </FONT></DIV>
<DIV><FONT face=Arial size=2>while writing </FONT><FONT face=Arial size=2>to 
Eclipse log mixes our errors with other stuff that maybe of not much 
interest.</FONT></DIV>
<DIV><FONT face=Arial size=2>Now, I checked in the workspace and found that 
ProblemReportingHelper is used much </FONT></DIV>
<DIV><FONT face=Arial size=2>less than it used to. For instance, most often used 
class <FONT size=2>DefaultSpecialWizard made </FONT></FONT></DIV>
<DIV><FONT face=Arial size=2>such call and now it is replaced with silent 
logging. Should not we resume the practice of </FONT></DIV>
<DIV><FONT face=Arial size=2>using this error dialog more often?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>> >  > 2) ATT_ATTACH_REDHAT_LOG 
and ATT_ATTACH_ECLIPSE_LOG<BR>> >  > What is REDHAT_LOG ?<BR>> 
>  <BR>> How can I reproduce this ? </DIV>
<P>Insert call to ProblemReportingHelper to any part of code and pass 
it exception instance.</P>
<P>> >  > 3) What is AbstractQueryWizard ? The dialog extends it 
but what does it<BR>> >  > help with ?<BR>> 
> AbstractQueryWizard implements SpecialWizard<BR>> <BR>> 
When is it not a dialog ?</FONT></P>
<DIV><FONT face=Arial size=2>I mean that SpecialWizard has a lot of 
implementations that are not dialogs.<BR><BR>> >  > 4) The layout 
looks weird on linux<BR></FONT><FONT face=Arial size=2></FONT></DIV>
<DIV><FONT face=Arial size=2>Well, I think that problem appeared after swt 
widgets were added to </FONT></DIV>
<DIV><FONT face=Arial size=2>that dialog in addition to XAttributeSupport that 
behaves quite well.</DIV>
<DIV><BR>> <BR>> >  > 5) what is XAttributeSupport ?<BR>> 
<BR>> Can you point me to an example of this ?<BR>> <BR>> The 
ReportProblemWizard has alot of ui code so I assume it is not a<BR>> good 
example of xattributesupport usage?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>As I understood after having refreshed this 
class, someone else added </FONT></DIV>
<DIV><FONT face=Arial size=2>swt components to it instead of extending 
meta data for used support.<BR>So result is a cumbersome change of two 
approaches. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Nice examples:</FONT></DIV>
<DIV><FONT face=Arial size=2>XMOBasedPreferencesPage - base for most model 
preference pages</FONT></DIV>
<DIV><FONT face=Arial size=2>SpecialWizardStep - default page for most dialogs 
for XModel.</FONT></DIV>
<DIV><FONT face=Arial size=2>Form - default implementation for most forms in 
editors, </FONT></DIV>
<DIV><FONT face=Arial size=2>it is more complex because it adds table for lists 
of child objects, </FONT></DIV>
<DIV><FONT face=Arial size=2>but part for attributes is </FONT><FONT face=Arial 
size=2>simple enough.</DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Slava Kabanovich</FONT></DIV></BODY></HTML>