This is an automated email from the ASF dual-hosted git repository.

tmysik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 3ed19b1  [NETBEANS-5261] Shared settings for PHP code generators
     new 05596b1  Merge pull request #2691 from 
KacerCZ/netbeans-5261-php-codegen-shared-settings
3ed19b1 is described below

commit 3ed19b1445182f8c0202a58ea1e8bd7343ea5b69
Author: Tomas Prochazka <ka...@razdva.cz>
AuthorDate: Mon Jan 18 22:22:39 2021 +0100

    [NETBEANS-5261] Shared settings for PHP code generators
    
    https://issues.apache.org/jira/browse/NETBEANS-5261
    
    Changes settings of PHP code generators to shared in project.
    Style of generated getters/setters/constructors is part of coding standard 
so it should be part of shared settings.
---
 .../src/org/netbeans/modules/php/editor/codegen/CGSGenerator.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/php/php.editor/src/org/netbeans/modules/php/editor/codegen/CGSGenerator.java 
b/php/php.editor/src/org/netbeans/modules/php/editor/codegen/CGSGenerator.java
index 5ca6da2..06d7a87 100644
--- 
a/php/php.editor/src/org/netbeans/modules/php/editor/codegen/CGSGenerator.java
+++ 
b/php/php.editor/src/org/netbeans/modules/php/editor/codegen/CGSGenerator.java
@@ -418,7 +418,8 @@ public final class CGSGenerator implements CodeGenerator {
         Preferences preferences = null;
         Project project = FileOwnerQuery.getOwner(fo);
         if (project != null) {
-            preferences = ProjectUtils.getPreferences(project, 
CGSGenerator.class, false);
+            // Share settings because style of generated code is part of 
project coding standard.
+            preferences = ProjectUtils.getPreferences(project, 
CGSGenerator.class, true);
             try {
                 
cgsInfo.setHowToGenerate(GenWay.valueOf(preferences.get(GETTER_SETTER_PROJECT_PROPERTY,
 GenWay.AS_JAVA.name())));
             } catch (IllegalArgumentException ex) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to