matthiasblaesing commented on code in PR #8326:
URL: https://github.com/apache/netbeans/pull/8326#discussion_r2021589322


##########
ide/refactoring.api/src/org/netbeans/modules/refactoring/spi/impl/RefactoringPanel.java:
##########
@@ -381,16 +385,26 @@ private JToolBar getToolBar() {
         toolbar.add(expandButton);
         toolbar.add(logicalViewButton);
         toolbar.add(physicalViewButton);
-        if (ui instanceof RefactoringCustomUI) {
+        toolbar.add(previewButton);
+        if (refactoringUI instanceof RefactoringCustomUI) {
             toolbar.add(customViewButton);
         }
         return toolbar;
     }
-    
+
+    private Preferences getPreferences() {
+        return NbPreferences.forModule(RefactoringPanel.class);
+    }
+
+    private String preferencesKeyForUI(String uiPreference) {
+        Class<?> targetClass = refactoringUI.getClass();
+        return targetClass.getName() + "." + uiPreference;
+    }

Review Comment:
   Good idea. Adjusted.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-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