Hi,

Am Samstag, dem 08.01.2022 um 15:04 +0100 schrieb antonio:
> [CND and cpplite both define an OptionsDialog container]
>
> Option 1:
> 
> Use a "weight" attribute in layer.xml registration [1], so both 
> "cpplite.editor" and "cnd.editor" can register the "C/C++" pane, but 
> only one "wins" depending on the weight. Sadly this attribute is not 
> currently supported in the OptionsDialog (nor in commit-validation 
> test?), and adding it just for this corner case seems too much, I think.
> 
> Option 2:
> 
> Make "cpplite.editor" depend on "cnd.editor". This will make the cpplite 
> cluster depend on the cnd cluster (currently only cpplite is in the 
> "release" set).
> 
> Option 3:
> 
> Make "cnd.editor" depend on "cpplite.editor". This will make the cnd 
> cluster depend on the cpplite cluster.
> 

before the whole module tree is changed, I would go with the least
intrusive change, which is Option 1 (only the layer is changed).

This can either be done by moving from annotiaton to a manually written
layer file or by changing the annotation processor, to support the
weight attribute. I would be willing to do the changes of the
annotation processor, if that is the chosen way.

Lets not introduce dependencies where there are none. And if I read the
comments about weight in the filesystem module, this looks like the
intention of the introduction of the weight attribute.

Greetings

Matthias


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to