Difference: DpHipePreferences (2 vs. 3)

Revision 32009-03-31 - JaimeSaiz

Line: 1 to 1
 
META TOPICPARENT name="DpHipe"

HIPE Preferences

Line: 146 to 146
  // Preference keyB with type Integer and default value 3 registerHandler("keyB", new AbstractPreferenceHandler<Integer>(3) {
Changed:
<
<
public Integer getValue() { return _fieldB.getvalue(); }
>
>
public Integer getValue() { return _fieldB.getValue(); }
  public void setValue(Integer value) { _fieldB.setValue(value); } }); }
Line: 194 to 194
 


Changed:
<
<
If you want to organize your categories under a common parent category, and don't have any preference associated to that parent category, it may even be easier. Just skip the creation of the panel and write:
>
>
You may want to organize your categories under a common parent category, but don't have any preference associated to that parent category. In this case, you don't need to create a panel for the parent category:
 
REGISTRY.register(CATEGORY, Extension(

Changed:
<
<
"Some/Category",
>
>
"Parent/Category",
  None, # empty panel None, # unused None)) # unused
Changed:
<
<
In this case, the framework creates an empty panel for you, with a message saying that preferences can be found in children categories.
>
>
The framework creates here an empty panel for you, with a message saying that preferences can be found in children categories.
  Note:
Changed:
<
<
Preferences are just released. The still unused fields in the extension may be used in the future, although for the time being the only foreseen (probable) change is to provide an icon to each category.
>
>
Preferences are just released. The still unused fields in the Extension when registering may be used in the future, although for the time being the only foreseen (probable) change is to provide an icon to each category.
 

Read preferences

 
This site is powered by the TWiki collaboration platform Powered by Perl