directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1807174 - /directory/studio/branches/studio-value/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/actions/EditorExportConfigurationAction.java
Date Sun, 03 Sep 2017 22:21:06 GMT
Author: elecharny
Date: Sun Sep  3 22:21:06 2017
New Revision: 1807174

URL: http://svn.apache.org/viewvc?rev=1807174&view=rev
Log:
o Added a reference to the shell
o Added some @Override

Modified:
    directory/studio/branches/studio-value/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/actions/EditorExportConfigurationAction.java

Modified: directory/studio/branches/studio-value/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/actions/EditorExportConfigurationAction.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-value/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/actions/EditorExportConfigurationAction.java?rev=1807174&r1=1807173&r2=1807174&view=diff
==============================================================================
--- directory/studio/branches/studio-value/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/actions/EditorExportConfigurationAction.java
(original)
+++ directory/studio/branches/studio-value/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/actions/EditorExportConfigurationAction.java
Sun Sep  3 22:21:06 2017
@@ -57,6 +57,7 @@ public class EditorExportConfigurationAc
     /**
      * {@inheritDoc}
      */
+    @Override
     public ImageDescriptor getImageDescriptor()
     {
         return OpenLdapConfigurationPlugin.getDefault().getImageDescriptor(
@@ -67,6 +68,7 @@ public class EditorExportConfigurationAc
     /**
      * {@inheritDoc}
      */
+    @Override
     public String getText()
     {
         return "Export Configuration";
@@ -76,11 +78,13 @@ public class EditorExportConfigurationAc
     /**
      * {@inheritDoc}
      */
+    @Override
     public void run()
     {
         try
         {
-            OpenLDAPServerConfigurationEditorUtils.saveAs( editor.getConfiguration(), false
);
+            OpenLDAPServerConfigurationEditorUtils.saveAs( editor.getConfiguration(), editor.getSite()
+                .getShell(), false );
         }
         catch ( Exception e )
         {



Mime
View raw message