1.1 --- a/refactoring.vcs/src/org/netbeans/modules/refactoring/vcs/Bundle.properties Thu Jul 28 10:00:32 2005 +0000
1.2 +++ b/refactoring.vcs/src/org/netbeans/modules/refactoring/vcs/Bundle.properties Thu Jul 28 12:00:30 2005 +0000
1.3 @@ -3,3 +3,4 @@
1.4 LBL_Checkout_And_Rerun=Checkout and {0}
1.5 LBL_FilesToUpdate=&Files To Update
1.6 LBL_Cancel=Cancel
1.7 +MSG_CheckoutWarning=Some files are checked out as read-only. You can update them as read-write.
2.1 --- a/refactoring.vcs/src/org/netbeans/modules/refactoring/vcs/ReadOnlyFilesHandlerImpl.java Thu Jul 28 10:00:32 2005 +0000
2.2 +++ b/refactoring.vcs/src/org/netbeans/modules/refactoring/vcs/ReadOnlyFilesHandlerImpl.java Thu Jul 28 12:00:30 2005 +0000
2.3 @@ -18,6 +18,7 @@
2.4 import org.netbeans.modules.refactoring.api.Problem;
2.5 import org.netbeans.modules.refactoring.spi.*;
2.6 import org.openide.filesystems.FileObject;
2.7 +import org.openide.util.NbBundle;
2.8
2.9 /**
2.10 *
2.11 @@ -32,11 +33,11 @@
2.12 public Problem createProblem(Collection files) {
2.13 //if files cannot be handled by VCS return null
2.14 FileObject[] fos = (FileObject[]) files.toArray(new FileObject[0]);
2.15 - Command editCmd = VcsManager.getDefault().createCommand("EDIT", fos);
2.16 + Command editCmd = VcsManager.getDefault().createCommand("EDIT", fos); //NOI18N
2.17 if (editCmd == null) return null;
2.18 fos = editCmd.getApplicableFiles(fos);
2.19 editCmd.setFiles(fos);
2.20 - return new Problem(false, "Some files are checked out as read-only. You can update them as read-write.", ProblemDetailsFactory.createProblemDetails(new CheckoutFiles(fos, editCmd)));
2.21 + return new Problem(false, NbBundle.getMessage(ReadOnlyFilesHandlerImpl.class, "MSG_CheckoutWarning"), ProblemDetailsFactory.createProblemDetails(new CheckoutFiles(fos, editCmd)));
2.22 }
2.23
2.24 }