[hg] main-silver: #226303 all panels need to implement HelpCtx.P...

  • From: Milos Kleint < >
  • To: , , ,
  • Subject: [hg] main-silver: #226303 all panels need to implement HelpCtx.P...
  • Date: Thu, 21 Feb 2013 19:38:36 -0800

changeset 1cb8d7658e53 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/1cb8d7658e53
description:
        #226303 all panels need to implement HelpCtx.Provider

diffstat:

 
maven.apisupport/src/org/netbeans/modules/maven/apisupport/InstallerPanel.java
         |  8 +++++++-
 
maven.apisupport/src/org/netbeans/modules/maven/apisupport/PublicPackagesPanel.java
    |  7 ++++++-
 
maven.checkstyle/src/org/netbeans/modules/maven/format/checkstyle/CheckstylePanel.java
 |  7 ++++++-
 
maven.j2ee/src/org/netbeans/modules/maven/j2ee/ui/customizer/BaseRunCustomizer.java
    |  8 +++++++-
 maven.osgi/src/org/netbeans/modules/maven/osgi/customizer/PackagesPanel.java 
          |  7 ++++++-
 maven/src/org/netbeans/modules/maven/configurations/ConfigurationsPanel.java 
          |  9 +++++++--
 maven/src/org/netbeans/modules/maven/customizer/ActionMappings.java          
          |  8 +++++++-
 maven/src/org/netbeans/modules/maven/customizer/BasicInfoPanel.java          
          |  8 +++++++-
 maven/src/org/netbeans/modules/maven/customizer/CompilePanel.java            
          |  7 ++++++-
 maven/src/org/netbeans/modules/maven/customizer/CustomizerProviderImpl.java  
          |  3 ++-
 maven/src/org/netbeans/modules/maven/customizer/RunJarPanel.form             
          |  2 +-
 maven/src/org/netbeans/modules/maven/customizer/RunJarPanel.java             
          |  8 +++++++-
 maven/src/org/netbeans/modules/maven/customizer/SourcesPanel.java            
          |  7 ++++++-
 13 files changed, 75 insertions(+), 14 deletions(-)

diffs (359 lines):

diff --git 
a/maven.apisupport/src/org/netbeans/modules/maven/apisupport/InstallerPanel.java
 
b/maven.apisupport/src/org/netbeans/modules/maven/apisupport/InstallerPanel.java
--- 
a/maven.apisupport/src/org/netbeans/modules/maven/apisupport/InstallerPanel.java
+++ 
b/maven.apisupport/src/org/netbeans/modules/maven/apisupport/InstallerPanel.java
@@ -68,11 +68,12 @@
 import org.netbeans.modules.maven.model.pom.Plugin;
 import org.netbeans.spi.project.ui.support.ProjectCustomizer;
 import org.openide.filesystems.FileUtil;
+import org.openide.util.HelpCtx;
 import org.openide.util.Lookup;
 import org.openide.util.NbBundle.Messages;
 import org.openide.util.Utilities;
 
-public class InstallerPanel extends JPanel {
+public class InstallerPanel extends JPanel implements HelpCtx.Provider {
 
     private static final String PROP_LICENSE = "installerLicenseFile";
     private static final String PROP_LINUX = "installerOsLinux";
@@ -272,6 +273,11 @@
         return config;
     }
 
+    @Override
+    public HelpCtx getHelpCtx() {
+        return new HelpCtx("maven_settings");
+    }    
+
     private class BooleanPropUpdater extends CheckBoxUpdater implements 
ModelOperation<POMModel> {
 
         private final String property;
diff --git 
a/maven.apisupport/src/org/netbeans/modules/maven/apisupport/PublicPackagesPanel.java
 
b/maven.apisupport/src/org/netbeans/modules/maven/apisupport/PublicPackagesPanel.java
--- 
a/maven.apisupport/src/org/netbeans/modules/maven/apisupport/PublicPackagesPanel.java
+++ 
b/maven.apisupport/src/org/netbeans/modules/maven/apisupport/PublicPackagesPanel.java
@@ -65,6 +65,7 @@
 import org.netbeans.modules.maven.model.pom.POMModel;
 import org.netbeans.modules.maven.model.pom.Plugin;
 import org.netbeans.modules.maven.spi.customizer.SelectedItemsTablePersister;
+import org.openide.util.HelpCtx;
 
 /**
  * Panel showing list of public packages for a module, also implements
@@ -72,7 +73,7 @@
  *
  * @author Dafe Simonek
  */
-public class PublicPackagesPanel extends javax.swing.JPanel implements 
SelectedItemsTablePersister {
+public class PublicPackagesPanel extends javax.swing.JPanel implements 
SelectedItemsTablePersister, HelpCtx.Provider {
     private static final String ALL_SUBPACKAGES = ".*";
     private static final String ALL_SUBPACKAGES_2 = ".**";
     private static final int COALESCE_LIMIT = 2;
@@ -286,4 +287,8 @@
         return result;
     }
 
+    @Override
+    public HelpCtx getHelpCtx() {
+        return new HelpCtx("maven_settings");
+    }    
 }
\ No newline at end of file
diff --git 
a/maven.checkstyle/src/org/netbeans/modules/maven/format/checkstyle/CheckstylePanel.java
 
b/maven.checkstyle/src/org/netbeans/modules/maven/format/checkstyle/CheckstylePanel.java
--- 
a/maven.checkstyle/src/org/netbeans/modules/maven/format/checkstyle/CheckstylePanel.java
+++ 
b/maven.checkstyle/src/org/netbeans/modules/maven/format/checkstyle/CheckstylePanel.java
@@ -61,6 +61,7 @@
 import org.netbeans.spi.project.ui.support.ProjectCustomizer;
 import org.openide.awt.HtmlBrowser;
 import org.openide.util.Exceptions;
+import org.openide.util.HelpCtx;
 
 /**
 http://checkstyle.sourceforge.net/config_blocks.html#LeftCurly
@@ -73,7 +74,7 @@
  *
  * @author mkleint
  */
-public class CheckstylePanel extends javax.swing.JPanel {
+public class CheckstylePanel extends javax.swing.JPanel implements 
HelpCtx.Provider {
     private final ModelHandle2 handle;
     private final ProjectCustomizer.Category category;
     private boolean generated = false;
@@ -283,4 +284,8 @@
     private javax.swing.JLabel lblMissing;
     // End of variables declaration//GEN-END:variables
 
+    @Override
+    public HelpCtx getHelpCtx() {
+        return new HelpCtx("maven_settings");
 }
+}
diff --git 
a/maven.j2ee/src/org/netbeans/modules/maven/j2ee/ui/customizer/BaseRunCustomizer.java
 
b/maven.j2ee/src/org/netbeans/modules/maven/j2ee/ui/customizer/BaseRunCustomizer.java
--- 
a/maven.j2ee/src/org/netbeans/modules/maven/j2ee/ui/customizer/BaseRunCustomizer.java
+++ 
b/maven.j2ee/src/org/netbeans/modules/maven/j2ee/ui/customizer/BaseRunCustomizer.java
@@ -68,13 +68,14 @@
 import org.netbeans.modules.maven.j2ee.ui.util.ServerComboBoxUpdater;
 import org.netbeans.modules.maven.j2ee.ui.wizard.ServerSelectionHelper;
 import org.netbeans.modules.maven.j2ee.utils.MavenProjectSupport;
+import org.openide.util.HelpCtx;
 import org.openide.util.NbBundle.Messages;
 
 /**
  *
  * @author Martin Janicek
  */
-public abstract class BaseRunCustomizer extends JPanel implements 
ApplyChangesCustomizer {
+public abstract class BaseRunCustomizer extends JPanel implements 
ApplyChangesCustomizer, HelpCtx.Provider {
 
     protected Project project;
     protected ModelHandle2 handle;
@@ -144,4 +145,9 @@
             dosDescription.setText(DosDescriptionIfDisabled_text());
         }
     }
+    
+    @Override
+    public HelpCtx getHelpCtx() {
+        return new HelpCtx("maven_settings");
 }
+}
diff --git 
a/maven.osgi/src/org/netbeans/modules/maven/osgi/customizer/PackagesPanel.java
 
b/maven.osgi/src/org/netbeans/modules/maven/osgi/customizer/PackagesPanel.java
--- 
a/maven.osgi/src/org/netbeans/modules/maven/osgi/customizer/PackagesPanel.java
+++ 
b/maven.osgi/src/org/netbeans/modules/maven/osgi/customizer/PackagesPanel.java
@@ -52,12 +52,13 @@
 import org.netbeans.modules.maven.api.customizer.ModelHandle2;
 import org.netbeans.modules.maven.api.customizer.support.SelectedItemsTable;
 import 
org.netbeans.modules.maven.api.customizer.support.SelectedItemsTable.SelectedItemsTableModel;
+import org.openide.util.HelpCtx;
 
 /**
  *
  * @author dafe
  */
-public class PackagesPanel extends javax.swing.JPanel {
+public class PackagesPanel extends javax.swing.JPanel implements 
HelpCtx.Provider {
 
     private final SelectedItemsTableModel tableModel;
     private final FelixExportPersister exportPersist;
@@ -170,4 +171,8 @@
     private javax.swing.JRadioButton rbDefaults;
     // End of variables declaration//GEN-END:variables
 
+    @Override
+    public HelpCtx getHelpCtx() {
+        return new HelpCtx("maven_settings");
 }
+}
diff --git 
a/maven/src/org/netbeans/modules/maven/configurations/ConfigurationsPanel.java
 
b/maven/src/org/netbeans/modules/maven/configurations/ConfigurationsPanel.java
--- 
a/maven/src/org/netbeans/modules/maven/configurations/ConfigurationsPanel.java
+++ 
b/maven/src/org/netbeans/modules/maven/configurations/ConfigurationsPanel.java
@@ -54,8 +54,10 @@
 import org.netbeans.modules.maven.NbMavenProjectImpl;
 import org.netbeans.modules.maven.api.customizer.ModelHandle2;
 import org.netbeans.modules.maven.customizer.ActionMappings;
+import org.netbeans.modules.maven.customizer.CustomizerProviderImpl;
 import org.openide.DialogDescriptor;
 import org.openide.DialogDisplayer;
+import org.openide.util.HelpCtx;
 import org.openide.util.NbBundle;
 
 /**
@@ -63,7 +65,7 @@
  * @author  mkleint
  */
 @SuppressWarnings("serial")
-public class ConfigurationsPanel extends javax.swing.JPanel {
+public class ConfigurationsPanel extends javax.swing.JPanel implements 
HelpCtx.Provider {
     private NbMavenProjectImpl project;
     private ModelHandle2 handle;
     List<ModelHandle2.Configuration> lastNonProfileList = new 
ArrayList<ModelHandle2.Configuration>();
@@ -346,5 +348,8 @@
 //        }
 //        createListModel();
 //    }
-
+    @Override
+    public HelpCtx getHelpCtx() {
+        return CustomizerProviderImpl.HELP_CTX;
 }
+}
diff --git 
a/maven/src/org/netbeans/modules/maven/customizer/ActionMappings.java 
b/maven/src/org/netbeans/modules/maven/customizer/ActionMappings.java
--- a/maven/src/org/netbeans/modules/maven/customizer/ActionMappings.java
+++ b/maven/src/org/netbeans/modules/maven/customizer/ActionMappings.java
@@ -106,6 +106,7 @@
 import org.openide.awt.Mnemonics;
 import org.openide.filesystems.FileObject;
 import org.openide.filesystems.FileUtil;
+import org.openide.util.HelpCtx;
 import org.openide.util.Lookup;
 import org.openide.util.NbBundle;
 import org.openide.util.NbBundle.Messages;
@@ -115,7 +116,7 @@
  *
  * @author  mkleint
  */
-public class ActionMappings extends javax.swing.JPanel {
+public class ActionMappings extends javax.swing.JPanel implements 
HelpCtx.Provider {
     private static final String CUSTOM_ACTION_PREFIX = "CUSTOM-"; //NOI18N
 
     private static final RequestProcessor RP = new 
RequestProcessor(ActionMappings.class);
@@ -650,6 +651,11 @@
         }
     }
     
+    @Override
+    public HelpCtx getHelpCtx() {
+        return CustomizerProviderImpl.HELP_CTX;
+    }    
+    
     private void clearFields() {
         comConfiguration.removeActionListener(comboListener);
         txtGoals.getDocument().removeDocumentListener(goalsListener);
diff --git 
a/maven/src/org/netbeans/modules/maven/customizer/BasicInfoPanel.java 
b/maven/src/org/netbeans/modules/maven/customizer/BasicInfoPanel.java
--- a/maven/src/org/netbeans/modules/maven/customizer/BasicInfoPanel.java
+++ b/maven/src/org/netbeans/modules/maven/customizer/BasicInfoPanel.java
@@ -59,6 +59,7 @@
 import org.netbeans.modules.maven.model.pom.POMModel;
 import org.netbeans.modules.maven.model.pom.Project;
 import org.netbeans.spi.project.ui.support.ProjectCustomizer.Category;
+import org.openide.util.HelpCtx;
 import org.openide.util.NbBundle.Messages;
 import org.openide.xml.XMLUtil;
 
@@ -66,7 +67,7 @@
  *
  * @author  mkleint
  */
-public class BasicInfoPanel extends javax.swing.JPanel implements 
DocumentListener {
+public class BasicInfoPanel extends javax.swing.JPanel implements 
DocumentListener, HelpCtx.Provider {
     private final ModelHandle2 handle;
     private List<TextComponentUpdater> listeners;
     private final Category category;
@@ -312,4 +313,9 @@
         return false;
     }
     
+    @Override
+    public HelpCtx getHelpCtx() {
+        return CustomizerProviderImpl.HELP_CTX;
 }
+    
+}
diff --git 
a/maven/src/org/netbeans/modules/maven/customizer/CompilePanel.java 
b/maven/src/org/netbeans/modules/maven/customizer/CompilePanel.java
--- a/maven/src/org/netbeans/modules/maven/customizer/CompilePanel.java
+++ b/maven/src/org/netbeans/modules/maven/customizer/CompilePanel.java
@@ -77,6 +77,7 @@
 import org.netbeans.spi.project.AuxiliaryProperties;
 import org.openide.DialogDisplayer;
 import org.openide.NotifyDescriptor;
+import org.openide.util.HelpCtx;
 import org.openide.util.NbBundle;
 import org.openide.util.WeakListeners;
 
@@ -84,7 +85,7 @@
  *
  * @author mkleint
  */
-public class CompilePanel extends javax.swing.JPanel {
+public class CompilePanel extends javax.swing.JPanel implements 
HelpCtx.Provider {
     private static final String[] LABELS = new String[] {
         NbBundle.getMessage(CompilePanel.class, "COS_ALL"),
         NbBundle.getMessage(CompilePanel.class, "COS_APP"),
@@ -639,4 +640,8 @@
         }
     } // end of PlatformsRenderer
 
+    @Override
+    public HelpCtx getHelpCtx() {
+        return CustomizerProviderImpl.HELP_CTX;
 }
+}
diff --git 
a/maven/src/org/netbeans/modules/maven/customizer/CustomizerProviderImpl.java 
b/maven/src/org/netbeans/modules/maven/customizer/CustomizerProviderImpl.java
--- 
a/maven/src/org/netbeans/modules/maven/customizer/CustomizerProviderImpl.java
+++ 
b/maven/src/org/netbeans/modules/maven/customizer/CustomizerProviderImpl.java
@@ -107,6 +107,7 @@
  */
 @ProjectServiceProvider(service={CustomizerProvider.class, 
CustomizerProviderImpl.class}, projectType="org-netbeans-modules-maven")
 public class CustomizerProviderImpl implements CustomizerProvider {
+    public static final HelpCtx HELP_CTX = new HelpCtx("maven_settings");
     
     private final Project project;
     private ModelHandle handle;
@@ -165,7 +166,7 @@
                                                 public void 
actionPerformed(ActionEvent ae) {
                                                     //noop
                                                 }
-                                            }, listener, new 
HelpCtx("maven_settings"));
+                                            }, listener, HELP_CTX);
             dialog.setTitle( 
TIT_Project_Properties(ProjectUtils.getInformation(project).getDisplayName()));
             dialog.setModal(true);
             dialog.setVisible(true);
diff --git a/maven/src/org/netbeans/modules/maven/customizer/RunJarPanel.form 
b/maven/src/org/netbeans/modules/maven/customizer/RunJarPanel.form
--- a/maven/src/org/netbeans/modules/maven/customizer/RunJarPanel.form
+++ b/maven/src/org/netbeans/modules/maven/customizer/RunJarPanel.form
@@ -1,4 +1,4 @@
-<?xml version="1.1" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
 
 <Form version="1.5" maxVersion="1.7" 
type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
   <AuxValues>
diff --git a/maven/src/org/netbeans/modules/maven/customizer/RunJarPanel.java 
b/maven/src/org/netbeans/modules/maven/customizer/RunJarPanel.java
--- a/maven/src/org/netbeans/modules/maven/customizer/RunJarPanel.java
+++ b/maven/src/org/netbeans/modules/maven/customizer/RunJarPanel.java
@@ -79,6 +79,7 @@
 import org.openide.awt.MouseUtils;
 import org.openide.filesystems.FileObject;
 import org.openide.filesystems.FileUtil;
+import org.openide.util.HelpCtx;
 import org.openide.util.NbBundle;
 
 /**
@@ -87,7 +88,7 @@
  * exec-maven-plugin:exec
  * @author Milos Kleint 
  */
-public class RunJarPanel extends javax.swing.JPanel {
+public class RunJarPanel extends javax.swing.JPanel implements 
HelpCtx.Provider {
     
     private boolean isCurrentRun = true;
     private boolean isCurrentDebug = true;
@@ -590,6 +591,11 @@
         comConfiguration.setModel(comModel);
         comConfiguration.setSelectedItem(handle.getActiveConfiguration());
     }
+    
+    @Override
+    public HelpCtx getHelpCtx() {
+        return CustomizerProviderImpl.HELP_CTX;
+    }    
     // End of variables declaration
 
         // Innercasses 
-------------------------------------------------------------
diff --git 
a/maven/src/org/netbeans/modules/maven/customizer/SourcesPanel.java 
b/maven/src/org/netbeans/modules/maven/customizer/SourcesPanel.java
--- a/maven/src/org/netbeans/modules/maven/customizer/SourcesPanel.java
+++ b/maven/src/org/netbeans/modules/maven/customizer/SourcesPanel.java
@@ -67,13 +67,14 @@
 import org.netbeans.spi.project.ui.support.ProjectCustomizer;
 import org.openide.filesystems.FileObject;
 import org.openide.filesystems.FileUtil;
+import org.openide.util.HelpCtx;
 
 /**
  * Customizer panel for setting source level and encoding.
  * in future possibly also source roots and resource roots.
  * @author mkleint
  */
-public class SourcesPanel extends JPanel {
+public class SourcesPanel extends JPanel implements HelpCtx.Provider {
     
     
     private String oldEncoding;
@@ -260,6 +261,10 @@
         }
     }
     
+    @Override
+    public HelpCtx getHelpCtx() {
+        return CustomizerProviderImpl.HELP_CTX;
+    }    
     /** This method is called from within the constructor to
      * initialize the form.
      * WARNING: Do NOT modify this code. The content of this method is

[hg] main-silver: #226303 all panels need to implement HelpCtx.P...

Milos Kleint 02/22/2013

Project Features

About this Project

APIsupport was started in November 2009, is owned by Antonin Nebuzelsky, and has 43 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close