Examples of open()


Examples of org.apache.directory.ldapstudio.browser.ui.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.ui.dialogs.DnDialog.open()

        Object value = getValue();
        if ( value != null && value instanceof DnValueEditorRawValueWrapper )
        {
            DnValueEditorRawValueWrapper wrapper = ( DnValueEditorRawValueWrapper ) value;
            DnDialog dialog = new DnDialog( shell, wrapper.connection, wrapper.dn );
            if ( dialog.open() == TextDialog.OK && dialog.getDn() != null )
            {
                setValue( dialog.getDn().toString() );
                return true;
            }
        }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.dialogs.EncoderDecoderDialog.open()

     * {@inheritDoc}
     */
    public void run()
    {
        EncoderDecoderDialog dlg = new EncoderDecoderDialog( PlatformUI.getWorkbench().getDisplay().getActiveShell() );
        dlg.open();
    }


    /**
     * {@inheritDoc}
 
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.dialogs.FilterChildrenDialog.open()

    {
        if ( getSelectedEntries().length == 1 )
        {
            FilterChildrenDialog dialog = new FilterChildrenDialog( getShell(), getSelectedEntries()[0]
                .getChildrenFilter(), getSelectedEntries()[0].getConnection() );
            if ( dialog.open() == Dialog.OK )
            {
                String newFilter = dialog.getFilter();

                if ( newFilter == null || "".equals( newFilter.trim() ) )
                {
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.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.ui.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

Examples of org.apache.directory.ldapstudio.browser.ui.dialogs.ImageDialog.open()

        if ( value != null && value instanceof byte[] )
        {
            byte[] currentImageData = ( byte[] ) value;

            ImageDialog dialog = new ImageDialog( shell, currentImageData, SWT.IMAGE_JPEG );
            if ( dialog.open() == TextDialog.OK && dialog.getNewImageRawData() != null )
            {
                setValue( dialog.getNewImageRawData() );
                return true;
            }
        }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.dialogs.LdifEntryEditorDialog.open()

                dialog = new LdifEntryEditorDialog( editor.getEditorSite().getShell(), editor.getConnection(),
                    ( LdifChangeAddRecord ) container );
            }

            editor.deactivateGlobalActionHandlers();
            if ( dialog.open() == LdifEntryEditorDialog.OK )
            {
                LdifRecord record = dialog.getLdifRecord();

                IDocument document = editor.getDocumentProvider().getDocument( editor.getEditorInput() );
                String old = document.get();
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.dialogs.MoveEntriesDialog.open()

     *      the entries to move
     */
    protected void moveEntries( final IEntry[] entries )
    {
        MoveEntriesDialog moveDialog = new MoveEntriesDialog( getShell(), entries );
        if ( moveDialog.open() == Dialog.OK )
        {
            DN newParentDn = moveDialog.getParentDn();
            if ( newParentDn != null /* && !newRdn.equals(entry.getRdn()) */)
            {
                IEntry newParentEntry = entries[0].getConnection().getEntryFromCache( newParentDn );
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.dialogs.MultivaluedDialog.open()

        {
            AttributeHierarchy ah = ( AttributeHierarchy ) this.getValue();
            if ( ah != null )
            {
                MultivaluedDialog dialog = new MultivaluedDialog( this.parent.getShell(), ah );
                dialog.open();
            }
        }

        fireCancelEditor();
    }
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.