Package org.apache.directory.studio.aciitemeditor.dialogs

Examples of org.apache.directory.studio.aciitemeditor.dialogs.UserPermissionDialog


     * Opens the UserPermissionDialog and adds the composed
     * user permission to the list.
     */
    private void addUserPermission()
    {
        UserPermissionDialog dialog = new UserPermissionDialog( getShell(), null, context );
        if ( dialog.open() == UserPermissionDialog.OK && dialog.getUserPermission() != null )
        {
            UserPermissionWrapper userPermissionWrapper = new UserPermissionWrapper( dialog.getUserPermission() );
            userPermissionWrappers.add( userPermissionWrapper );

            tableViewer.refresh();
        }
    }
View Full Code Here


    private void editUserPermission()
    {
        UserPermissionWrapper oldUserPermissionWrapper = getSelectedUserPermissionWrapper();
        if ( oldUserPermissionWrapper != null )
        {
            UserPermissionDialog dialog = new UserPermissionDialog( getShell(),
                oldUserPermissionWrapper.userPermission, context );
            if ( dialog.open() == UserPermissionDialog.OK )
            {
                oldUserPermissionWrapper.userPermission = dialog.getUserPermission();
                tableViewer.refresh();
            }
        }
    }
View Full Code Here

     * Opens the UserPermissionDialog and adds the composed
     * user permission to the list.
     */
    private void addUserPermission()
    {
        UserPermissionDialog dialog = new UserPermissionDialog( getShell(), null, context );
        if ( dialog.open() == UserPermissionDialog.OK && dialog.getUserPermission() != null )
        {
            UserPermissionWrapper userPermissionWrapper = new UserPermissionWrapper( dialog.getUserPermission() );
            userPermissionWrappers.add( userPermissionWrapper );

            tableViewer.refresh();
        }
    }
View Full Code Here

    private void editUserPermission()
    {
        UserPermissionWrapper oldUserPermissionWrapper = getSelectedUserPermissionWrapper();
        if ( oldUserPermissionWrapper != null )
        {
            UserPermissionDialog dialog = new UserPermissionDialog( getShell(),
                oldUserPermissionWrapper.userPermission, context );
            if ( dialog.open() == UserPermissionDialog.OK )
            {
                oldUserPermissionWrapper.userPermission = dialog.getUserPermission();
                tableViewer.refresh();
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.studio.aciitemeditor.dialogs.UserPermissionDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.