<!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>&gt; &gt; 1) Custom Preferences?<BR>&gt; &gt; 
(org.jboss.tools.common.model.ui.preferences.XMOBasedPreferencesPage).<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>&gt; &gt; 
%workspace%/.metadata/.plugins/org.jboss.tools.common.model/Preferences.xml<BR>&gt; 
<BR>&gt; hmm - I can't find such file in any of the workspaces I have run jboss 
<BR>&gt; tools with ? the only one I can see is .rule-sets.xml which I also is 
<BR>&gt; wondering why is there ;)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>.rule-sets.xml&nbsp; keeps preferences 
for&nbsp;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>&nbsp;<BR>&gt; 
&gt; There was preference page 'Report Problem'. Someone removed it when<BR>&gt; 
&gt; migrating to RedHat. It is quite easy to restore it.<BR>&gt; <BR>&gt; Ok - 
we should do that. How is that enabled ?</FONT></DIV>
<DIV>&nbsp;</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>&gt; 
How does that dialog relate to the "report problems" dialog ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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&nbsp;results in opening&nbsp;our error 
dialog.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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&nbsp;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&nbsp;resume the&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&gt;&nbsp;&gt;&nbsp; &gt; 2) ATT_ATTACH_REDHAT_LOG 
and ATT_ATTACH_ECLIPSE_LOG<BR>&gt; &gt;&nbsp; &gt; What is REDHAT_LOG ?<BR>&gt; 
&gt;&nbsp; <BR>&gt; How can I reproduce this ? </DIV>
<P>Insert call to ProblemReportingHelper&nbsp;to any part of code&nbsp;and pass 
it exception instance.</P>
<P>&gt; &gt;&nbsp; &gt; 3) What is AbstractQueryWizard ? The dialog extends it 
but what does it<BR>&gt; &gt;&nbsp; &gt; help with ?<BR>&gt; 
&gt;&nbsp;AbstractQueryWizard implements SpecialWizard<BR>&gt;&nbsp;<BR>&gt; 
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>&gt; &gt;&nbsp; &gt; 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>&gt; <BR>&gt; &gt;&nbsp; &gt; 5) what is XAttributeSupport ?<BR>&gt; 
<BR>&gt; Can you point me to an example of this ?<BR>&gt; <BR>&gt; The 
ReportProblemWizard has alot of ui code so I assume it is not a<BR>&gt; good 
example of xattributesupport usage?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>As I understood after&nbsp;having refreshed this 
class, someone else added </FONT></DIV>
<DIV><FONT face=Arial size=2>swt components&nbsp;to it&nbsp;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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Slava Kabanovich</FONT></DIV></BODY></HTML>