You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2015/08/21 06:48:27 UTC
svn commit: r1696892 -
/directory/studio/trunk/plugins/openldap.acl.editor/src/main/java/org/apache/directory/studio/openldap/config/acl/dialogs/OpenLdapAclDialog.java
Author: elecharny
Date: Fri Aug 21 04:48:26 2015
New Revision: 1696892
URL: http://svn.apache.org/r1696892
Log:
o Exposed the OK button
o Stored the Dialog instance into the context
Modified:
directory/studio/trunk/plugins/openldap.acl.editor/src/main/java/org/apache/directory/studio/openldap/config/acl/dialogs/OpenLdapAclDialog.java
Modified: directory/studio/trunk/plugins/openldap.acl.editor/src/main/java/org/apache/directory/studio/openldap/config/acl/dialogs/OpenLdapAclDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/openldap.acl.editor/src/main/java/org/apache/directory/studio/openldap/config/acl/dialogs/OpenLdapAclDialog.java?rev=1696892&r1=1696891&r2=1696892&view=diff
==============================================================================
--- directory/studio/trunk/plugins/openldap.acl.editor/src/main/java/org/apache/directory/studio/openldap/config/acl/dialogs/OpenLdapAclDialog.java (original)
+++ directory/studio/trunk/plugins/openldap.acl.editor/src/main/java/org/apache/directory/studio/openldap/config/acl/dialogs/OpenLdapAclDialog.java Fri Aug 21 04:48:26 2015
@@ -116,6 +116,7 @@ public class OpenLdapAclDialog extends D
super( parentShell );
super.setShellStyle( super.getShellStyle() | SWT.RESIZE );
this.context = context;
+ context.setAclDialog( this );
}
@@ -192,6 +193,15 @@ public class OpenLdapAclDialog extends D
ErrorDialog.openError( getShell(), "Syntax Error", null, status );
}
}
+
+
+ /**
+ * Return the OK button instance
+ */
+ public Button getOKButton()
+ {
+ return getButton( IDialogConstants.OK_ID );
+ }
/**
@@ -225,7 +235,7 @@ public class OpenLdapAclDialog extends D
*
* <pre>
* +-----------------------------------------+
- * | [ ] Preference : [---] 8 |
+ * | [ ] Precedence : [---] 8 |
* +-----------------------------------------+
* </pre>
* @param parent the parent composite