directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r904539 - in /directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards: ExportBaseToPage.java ExportConnectionsWizardPage.java
Date Fri, 29 Jan 2010 16:14:15 GMT
Author: pamarcelot
Date: Fri Jan 29 16:14:15 2010
New Revision: 904539

URL: http://svn.apache.org/viewvc?rev=904539&view=rev
Log:
Fix for DIRSTUDIO-610 (Unable to export to "My Documents").

Modified:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportBaseToPage.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportConnectionsWizardPage.java

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportBaseToPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportBaseToPage.java?rev=904539&r1=904538&r2=904539&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportBaseToPage.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportBaseToPage.java
Fri Jan 29 16:14:15 2010
@@ -79,7 +79,6 @@
     {
         boolean ok = true;
         File file = new File( fileBrowserWidget.getFilename() );
-        File fileDirectory = file.getParentFile();
         if ( "".equals( fileBrowserWidget.getFilename() ) ) //$NON-NLS-1$
         {
             setErrorMessage( null );
@@ -110,12 +109,6 @@
                 Messages.getString( "ExportBaseToPage.ErrorDirectoryNotWritable" ), new String[]
{ getFileType() } ) ); //$NON-NLS-1$
             ok = false;
         }
-        else if ( !file.exists() && ( fileDirectory == null || !fileDirectory.canWrite()
) )
-        {
-            setErrorMessage( NLS.bind(
-                Messages.getString( "ExportBaseToPage.ErrorDirectoryNotWritable" ), new String[]
{ getFileType() } ) ); //$NON-NLS-1$
-            ok = false;
-        }
 
         if ( ok )
         {

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportConnectionsWizardPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportConnectionsWizardPage.java?rev=904539&r1=904538&r2=904539&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportConnectionsWizardPage.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportConnectionsWizardPage.java
Fri Jan 29 16:14:15 2010
@@ -170,7 +170,6 @@
     {
         boolean ok = true;
         File file = new File( fileBrowserWidget.getFilename() );
-        File fileDirectory = file.getParentFile();
         if ( "".equals( fileBrowserWidget.getFilename() ) ) //$NON-NLS-1$
         {
             setErrorMessage( null );
@@ -196,11 +195,6 @@
             setErrorMessage( Messages.getString( "ExportConnectionsWizardPage.ErrorFileDirectoryNotWritable"
) ); //$NON-NLS-1$
             ok = false;
         }
-        else if ( !file.exists() && ( fileDirectory == null || !fileDirectory.canWrite()
) )
-        {
-            setErrorMessage( Messages.getString( "ExportConnectionsWizardPage.ErrorFileDirectoryNotWritable"
) ); //$NON-NLS-1$
-            ok = false;
-        }
 
         if ( ok )
         {



Mime
View raw message