File tree Expand file tree Collapse file tree
src/main/java/com/junichi11/netbeans/modules/github/issues/repository/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -444,6 +444,9 @@ private void propertyFileCheckBoxActionPerformed(java.awt.event.ActionEvent evt)
444444 fireChange ();
445445 }//GEN-LAST:event_propertyFileCheckBoxActionPerformed
446446
447+ @ NbBundle .Messages ({
448+ "GitHubRepositoryPanel.addRepositoryButtonAction.error.empty.token=Please set OAuth token." ,
449+ "GitHubRepositoryPanel.addRepositoryButtonAction.error.wrong.token=There is no repository or your OAuth token is wrong." ,})
447450 private void addRepositoryButtonActionPerformed (java .awt .event .ActionEvent evt ) {//GEN-FIRST:event_addRepositoryButtonActionPerformed
448451 RequestProcessor rp = GitHubIssues .getInstance ().getRequestProcessor ();
449452 rp .post (new Runnable () {
@@ -452,7 +455,7 @@ private void addRepositoryButtonActionPerformed(java.awt.event.ActionEvent evt)
452455 public void run () {
453456 String oAuthToken = getOAuthToken ();
454457 if (StringUtils .isEmpty (oAuthToken )) {
455- UiUtils .showErrorDialog ("Please set OAuth token" );
458+ UiUtils .showErrorDialog (Bundle . GitHubRepositoryPanel_addRepositoryButtonAction_error_empty_token () );
456459 return ;
457460 }
458461 setAddRepositoryButtonEnabled (false );
@@ -462,7 +465,7 @@ public void run() {
462465
463466 @ Override
464467 public void run () {
465- UiUtils .showErrorDialog ("There is no repository or your OAuth token is wrong." );
468+ UiUtils .showErrorDialog (Bundle . GitHubRepositoryPanel_addRepositoryButtonAction_error_wrong_token () );
466469 setAddRepositoryButtonEnabled (true );
467470 }
468471 });
You can’t perform that action at this time.
0 commit comments