@@ -339,7 +339,7 @@ private void setCollaboratorsComponentsVisible(boolean isVisible) {
339339 milestoneComboBox .setVisible (isVisible );
340340 assigneeLabel .setVisible (isVisible );
341341 assigneeComboBox .setVisible (isVisible );
342- addLabelButton .setVisible (isVisible );
342+ newLabelButton .setVisible (isVisible );
343343 newMilestoneButton .setVisible (isVisible );
344344 }
345345
@@ -551,7 +551,7 @@ private void initComponents() {
551551 headerShowInBrowserLinkButton = new org .netbeans .modules .bugtracking .commons .LinkButton ();
552552 jSeparator1 = new javax .swing .JSeparator ();
553553 refreshLinkButton = new org .netbeans .modules .bugtracking .commons .LinkButton ();
554- addLabelButton = new javax .swing .JButton ();
554+ newLabelButton = new javax .swing .JButton ();
555555 newMilestoneButton = new javax .swing .JButton ();
556556 mainScrollPane = new javax .swing .JScrollPane ();
557557 mainPanel = new javax .swing .JPanel ();
@@ -609,10 +609,10 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
609609 }
610610 });
611611
612- org .openide .awt .Mnemonics .setLocalizedText (addLabelButton , org .openide .util .NbBundle .getMessage (GitHubIssuePanel .class , "GitHubIssuePanel.addLabelButton .text" )); // NOI18N
613- addLabelButton .addActionListener (new java .awt .event .ActionListener () {
612+ org .openide .awt .Mnemonics .setLocalizedText (newLabelButton , org .openide .util .NbBundle .getMessage (GitHubIssuePanel .class , "GitHubIssuePanel.newLabelButton .text" )); // NOI18N
613+ newLabelButton .addActionListener (new java .awt .event .ActionListener () {
614614 public void actionPerformed (java .awt .event .ActionEvent evt ) {
615- addLabelButtonActionPerformed (evt );
615+ newLabelButtonActionPerformed (evt );
616616 }
617617 });
618618
@@ -635,7 +635,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
635635 .addPreferredGap (javax .swing .LayoutStyle .ComponentPlacement .RELATED , javax .swing .GroupLayout .DEFAULT_SIZE , Short .MAX_VALUE )
636636 .addComponent (newMilestoneButton )
637637 .addPreferredGap (javax .swing .LayoutStyle .ComponentPlacement .RELATED )
638- .addComponent (addLabelButton )
638+ .addComponent (newLabelButton )
639639 .addPreferredGap (javax .swing .LayoutStyle .ComponentPlacement .RELATED )
640640 .addComponent (headerSubmitButton ))
641641 .addGroup (headerPanelLayout .createSequentialGroup ()
@@ -686,7 +686,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
686686 .addGroup (headerPanelLayout .createParallelGroup (javax .swing .GroupLayout .Alignment .BASELINE )
687687 .addComponent (headerSubmitButton )
688688 .addComponent (headerErrorLabel )
689- .addComponent (addLabelButton )
689+ .addComponent (newLabelButton )
690690 .addComponent (newMilestoneButton )))
691691 );
692692
@@ -845,7 +845,7 @@ public void run() {
845845 @ NbBundle .Messages ({
846846 "GitHubIssuePanel.message.addLabel.error=Can't add a label."
847847 })
848- private void addLabelButtonActionPerformed (java .awt .event .ActionEvent evt ) {//GEN-FIRST:event_addLabelButtonActionPerformed
848+ private void newLabelButtonActionPerformed (java .awt .event .ActionEvent evt ) {//GEN-FIRST:event_newLabelButtonActionPerformed
849849 assert gitHubIssue != null ;
850850 Enumeration <Label > elements = labelsListModel .elements ();
851851 Label label = LabelPanel .showDialog (Collections .list (elements ));
@@ -867,7 +867,7 @@ private void addLabelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GE
867867 setLabelsSelected (issue .getLabels ());
868868 }
869869 }
870- }//GEN-LAST:event_addLabelButtonActionPerformed
870+ }//GEN-LAST:event_newLabelButtonActionPerformed
871871
872872 @ NbBundle .Messages ({
873873 "GitHubIssuePanel.message.addMilestone.error=Can't add a milestone"
@@ -896,7 +896,6 @@ private void newMilestoneButtonActionPerformed(java.awt.event.ActionEvent evt) {
896896 }//GEN-LAST:event_newMilestoneButtonActionPerformed
897897
898898 // Variables declaration - do not modify//GEN-BEGIN:variables
899- private javax .swing .JButton addLabelButton ;
900899 private javax .swing .JComboBox <User > assigneeComboBox ;
901900 private javax .swing .JLabel assigneeLabel ;
902901 private com .junichi11 .netbeans .modules .github .issues .issue .ui .AttributesViewPanel attributesViewPanel ;
@@ -927,6 +926,7 @@ private void newMilestoneButtonActionPerformed(java.awt.event.ActionEvent evt) {
927926 private javax .swing .JButton newCommentCloseReopenIssueButton ;
928927 private javax .swing .JLabel newCommentLabel ;
929928 private com .junichi11 .netbeans .modules .github .issues .issue .ui .CommentTabbedPanel newCommentTabbedPanel ;
929+ private javax .swing .JButton newLabelButton ;
930930 private javax .swing .JButton newMilestoneButton ;
931931 private org .netbeans .modules .bugtracking .commons .LinkButton refreshLinkButton ;
932932 private javax .swing .JLabel titleLabel ;
0 commit comments