Examples of open()


Examples of org.apache.directory.ldapstudio.aciitemeditor.dialogs.ItemPermissionDialog.open()

     * item permission to the list.
     */
    private void addItemPermission()
    {
        ItemPermissionDialog dialog = new ItemPermissionDialog( getShell(), null, context );
        if ( dialog.open() == ItemPermissionDialog.OK && dialog.getItemPermission() != null )
        {
            ItemPermissionWrapper itemPermissionWrapper = new ItemPermissionWrapper( dialog.getItemPermission() );
            itemPermissionWrappers.add( itemPermissionWrapper );

            tableViewer.refresh();
View Full Code Here

Examples of org.apache.directory.ldapstudio.aciitemeditor.dialogs.MultiValuedDialog.open()

        {
            if ( protectedItemWrapper.isMultivalued() )
            {
                MultiValuedDialog dialog = new MultiValuedDialog( getShell(), protectedItemWrapper.getDisplayName(),
                    protectedItemWrapper.getValues(), context, valueEditor );
                dialog.open();
                refreshTable();
            }
            else
            {
                List<String> values = protectedItemWrapper.getValues();
View Full Code Here

Examples of org.apache.directory.ldapstudio.aciitemeditor.dialogs.UserPermissionDialog.open()

     * 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

Examples of org.apache.directory.ldapstudio.apacheds.configuration.dialogs.AttributeValueDialog.open()

            String oldId = attributeValueObject.getAttribute();
            Object oldValue = attributeValueObject.getValue();

            AttributeValueDialog dialog = new AttributeValueDialog( attributeValueObject );
            if ( Dialog.OK == dialog.open() && dialog.isDirty() )
            {
                Attribute attribute = contextEntry.get( oldId );
                if ( attribute != null )
                {
                    attribute.remove( oldValue );
View Full Code Here

Examples of org.apache.directory.ldapstudio.apacheds.configuration.dialogs.BinaryAttributeDialog.open()

        SelectionListener binaryAttributesAddButtonListener = new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent e )
            {
                BinaryAttributeDialog dialog = new BinaryAttributeDialog( "" );
                if ( Dialog.OK == dialog.open() && dialog.isDirty() )
                {
                    String newAttribute = dialog.getAttribute();
                    if ( newAttribute != null && !"".equals( newAttribute )
                        && !binaryAttributes.contains( newAttribute ) )
                    {
View Full Code Here

Examples of org.apache.directory.ldapstudio.apacheds.configuration.dialogs.IndexedAttributeDialog.open()

        if ( !selection.isEmpty() )
        {
            IndexedAttribute indexedAttribute = ( IndexedAttribute ) selection.getFirstElement();

            IndexedAttributeDialog dialog = new IndexedAttributeDialog( indexedAttribute );
            if ( Dialog.OK == dialog.open() && dialog.isDirty() )
            {
                indexedAttributesTableViewer.refresh();
                masterDetailsBlock.setEditorDirty();
                dirty = true;
            }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.common.dialogs.CredentialsDialog.open()

                public void run()
                {
                    CredentialsDialog dialog = new CredentialsDialog( PlatformUI.getWorkbench().getDisplay()
                        .getActiveShell(), "Enter Password for '" + connectionParameter.getName() + "'",
                        "Please enter password of user " + connectionParameter.getBindPrincipal() + ":", "", null );
                    if ( dialog.open() == CredentialsDialog.OK )
                    {
                        pw[0] = dialog.getValue();
                    }
                    else
                    {
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.common.dialogs.FilterDialog.open()

            {
                if ( connection != null )
                {
                    FilterDialog dialog = new FilterDialog( parent.getShell(), "Filter Editor", filterCombo.getText(),
                        connection );
                    dialog.open();
                    String filter = dialog.getFilter();
                    if ( filter != null )
                    {
                        filterCombo.setText( filter );
                    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.common.dialogs.FilterWidgetDialog.open()

        {
            FilterValueEditorRawValueWrapper wrapper = ( FilterValueEditorRawValueWrapper ) value;
            FilterWidgetDialog dialog = new FilterWidgetDialog( shell, Messages
                .getString( "FilterValueEditor.dialog.title" ), wrapper.filter, //$NON-NLS-1$
                wrapper.connection );
            if ( dialog.open() == TextDialog.OK && !EMPTY.equals( dialog.getFilter() ) )
            {
                setValue( dialog.getFilter() );
                return true;
            }
        }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.common.dialogs.HexDialog.open()

        Object value = getValue();
        if ( value != null && value instanceof byte[] )
        {
            byte[] initialData = ( byte[] ) value;
            HexDialog dialog = new HexDialog( shell, initialData );
            if ( dialog.open() == HexDialog.OK && dialog.getData() != null )
            {
                setValue( dialog.getData() );
                return true;
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.