<!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> <BR>> Why aren't
these just normal eclipse properties ?<BR>The Exadel framework for
prefernces was created a long ago </FONT></DIV>
<DIV><FONT face=Arial size=2>and migrated to Eclipse with minimal changes. It
describes preferences in terms</FONT></DIV>
<DIV><FONT face=Arial size=2>of XModel which allows to reuse in preference pages
same forms that are </FONT></DIV>
<DIV><FONT face=Arial size=2>used in editors and dialogs </FONT></DIV>
<DIV><FONT face=Arial size=2><FONT
size=2>(org.jboss.tools.common.model.ui.preferences.</FONT>XMOBasedPreferencesPage).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>ReportPreference is a utility
class accessing the XModel object keeping the </FONT></DIV>
<DIV><FONT face=Arial size=2>preferences. "Struts Studio" is an
awkward slip, it can be fixed.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR><FONT
face=Arial size=2>> Where are they stored
?<BR>%workspace%/.metadata/.plugins/org.jboss.tools.common.model/Preferences.xml</FONT></DIV>
<DIV><FONT face=Arial size=2> <BR>> How can the user toggle them
?</FONT></DIV>
<DIV><FONT face=Arial size=2>There was preference page '</FONT><FONT face=Arial
size=2>Report Problem'. Someone removed it when </FONT></DIV>
<DIV><FONT face=Arial size=2>migrating to RedHat. It is </FONT><FONT face=Arial
size=2>quite easy to restore it.</FONT></DIV>
<DIV><FONT face=Arial size=2>Also, some of these preferences are saved
according to user </FONT></DIV>
<DIV><FONT face=Arial size=2>choice in checkboxes in</FONT></DIV>
<DIV><FONT face=Arial size=2><FONT
size=2>org.jboss.tools.common.model.ui.dialog.</FONT>ErrorDialog</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial size=2>> 2) ATT_ATTACH_REDHAT_LOG and
ATT_ATTACH_ECLIPSE_LOG<BR>> What is REDHAT_LOG ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>%workspace%/.metadata/.plugins/org.jboss.tools.common/.log</FONT><FONT
face=Arial size=2></FONT></DIV>
<DIV><FONT face=Arial size=2>When error dialog appears it prompts user either to
report problem immediately</FONT></DIV>
<DIV><FONT face=Arial size=2>or to save it into that log to be sent at a later
time (by action Report Problem).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>> Why aren't these attributes used for anything
?<BR>> Attaching the eclipse log would be an relavant
option.<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>ATT_ATTACH_REDHAT_LOG is used - when reporting a
problem user may </FONT></DIV>
<DIV><FONT face=Arial size=2>type a letter without attaching content of the log
(result of previously preferring </FONT></DIV>
<DIV><FONT face=Arial size=2>to postpone reporting in error
dialog).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>ATT_ATTACH_ECLIPSE_LOG had been used in
the same way, but later was </FONT></DIV>
<DIV><FONT face=Arial size=2>commented out from <FONT size=2>ReportProblemWizard
(I do not remember exact reason, </FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2>maybe a caution because eclipse log
may be quite lo-o-ong).</FONT></DIV>
<DIV><BR>> 3) What is AbstractQueryWizard ? The dialog extends it but what
does it <BR>> help with ?</DIV>
<DIV> </DIV>
<DIV>Again, this framework for dialogs was developed a long before Eclipse
epoch </DIV>
<DIV>and migrated to Eclipse with reimplementing <FONT
size=2>AbstractQueryDialog that extends </FONT></DIV>
<DIV>standard <FONT size=2>TitleAreaDialog. <FONT size=2>AbstractQueryWizard
implements SpecialWizard </FONT></FONT></DIV>
<DIV>which makes it a common service that can be loaded by id and executed
</DIV>
<DIV>without bothering if it is a dialog or not.<BR> <BR>> 4) The
layout looks weird on linux </DIV>
<DIV>That must be studied and fixed. In Windows dialog looked fine.<BR>>
<BR>> 5) what is XAttributeSupport ?</FONT></DIV>
<DIV><FONT face=Arial size=2>It manages an input form in dialogs, editors
and preferences. </FONT></DIV>
<DIV><FONT face=Arial size=2>A set of input fields is described in XModel
metadata.</FONT></DIV>
<DIV><FONT face=Arial size=2>This approach is very helpful because
it sets the standard for all forms, </FONT></DIV>
<DIV><FONT face=Arial size=2>and in most cases allows to create a form just
putting few tags to </FONT></DIV>
<DIV><FONT face=Arial size=2>*.meta file.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Slava Kabanovich</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>