[hg] main-silver: #222392: Changing error message when selected ...

  • From: Martin Kozeny < >
  • To:
  • Subject: [hg] main-silver: #222392: Changing error message when selected ...
  • Date: Fri, 07 Dec 2012 06:59:59 -0800

changeset 6b27a710bb5c in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/6b27a710bb5c
description:
        #222392: Changing error message when selected file is not JAR

diffstat:

 
apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/Bundle.properties
            |  1 +
 
apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/LibraryStartVisualPanel.java
 |  2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diffs (23 lines):

diff --git 
a/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/Bundle.properties
 
b/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/Bundle.properties
--- 
a/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/Bundle.properties
+++ 
b/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/Bundle.properties
@@ -63,6 +63,7 @@
 MSG_ChosenPlatformIsInvalid=The selected platform is invalid. You may choose 
a valid one or resolve the invalid platform in NetBeans Platform Manager.
 MSG_ClassInDefaultPackage=There are classes in the default package in {0}
 MSG_Invalid_Library_Path=Library JAR does not exist
+MSG_Selected_File_Is_Not_A_JAR=Selected file is not a JAR
 MSG_Invalid_License_Path=License file does not exist
 MSG_Library_Path_Not_Defined=At least one library JAR needs to be specified
 MSG_LibraryWrapperForNBOrgUnsupported=Creation of Library Wrapper Module 
inside of netbeans.org source tree is not supported yet.
diff --git 
a/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/LibraryStartVisualPanel.java
 
b/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/LibraryStartVisualPanel.java
--- 
a/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/LibraryStartVisualPanel.java
+++ 
b/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/LibraryStartVisualPanel.java
@@ -114,7 +114,7 @@
                 try {
                     new JarFile(fil); // just checking whether the jar is 
valid
                 } catch (IOException exc) {
-                    setError(getMessage("MSG_Invalid_Library_Path"));
+                    setError(getMessage("MSG_Selected_File_Is_Not_A_JAR"));
                     return;
                 }
                 String badOnes = populateProjectData(getData(), text, false);

[hg] main-silver: #222392: Changing error message when selected ...

Martin Kozeny 12/07/2012

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