Examples of open()


Examples of org.apache.directory.studio.ldapbrowser.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

Examples of org.apache.directory.studio.ldapbrowser.common.dialogs.MoveEntriesDialog.open()

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

Examples of org.apache.directory.studio.ldapbrowser.common.dialogs.MultivaluedDialog.open()

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

        fireCancelEditor();
    }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.common.dialogs.RenameEntryDialog.open()

     *      the Entry to rename
     */
    protected void renameEntry( final IEntry entry )
    {
        RenameEntryDialog renameDialog = new RenameEntryDialog( getShell(), entry );
        if ( renameDialog.open() == Dialog.OK )
        {
            Rdn newRdn = renameDialog.getRdn();
            if ( newRdn != null && !newRdn.equals( entry.getRdn() ) )
            {
                new RenameEntryJob( entry, newRdn, new SimulateRenameDialogImpl( getShell() ) ).execute();
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.common.dialogs.ScopeDialog.open()

        if ( askForScope )
        {
            ScopeDialog scopeDialog = new ScopeDialog( Display.getDefault().getActiveShell(), Messages
                .getString( "PasteAction.SelectCopyDepth" ), //$NON-NLS-1$
                entriesToPaste.length > 1 );
            scopeDialog.open();
            scope = scopeDialog.getScope();
        }

        new CopyEntriesJob( parent, entriesToPaste, scope, new EntryExistsCopyStrategyDialogImpl( Display.getDefault()
            .getActiveShell() ) ).execute();
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.common.dialogs.SelectBrowserConnectionDialog.open()

        {
            public void widgetSelected( SelectionEvent e )
            {
                SelectBrowserConnectionDialog dialog = new SelectBrowserConnectionDialog( parent.getShell(), Messages
                    .getString( "BrowserConnectionWidget.SelectConnection" ), selectedBrowserConnection ); //$NON-NLS-1$
                dialog.open();
                IBrowserConnection browserConnection = dialog.getSelectedBrowserConnection();
                if ( browserConnection != null )
                {
                    setBrowserConnection( browserConnection );
                    notifyListeners();
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.common.dialogs.SelectConnectionDialog.open()

            public void widgetSelected( SelectionEvent e )
            {
                // if(selectedConnection != null) {
                SelectConnectionDialog dialog = new SelectConnectionDialog( parent.getShell(), "Select Connection",
                    selectedConnection );
                dialog.open();
                IBrowserConnection connection = dialog.getSelectedConnection();
                if ( connection != null )
                {
                    setConnection( connection );
                    notifyListeners();
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.common.dialogs.SelectEntryDialog.open()

                    }

                    // open dialog
                    SelectEntryDialog dialog = new SelectEntryDialog( parent.getShell(), Messages
                        .getString( "EntryWidget.SelectDN" ), rootEntry, entry ); //$NON-NLS-1$
                    dialog.open();
                    IEntry selectedEntry = dialog.getSelectedEntry();

                    // get selected DN
                    if ( selectedEntry != null )
                    {
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.common.dialogs.SelectReferralConnectionDialog.open()

        {
            public void run()
            {
                SelectReferralConnectionDialog dialog = new SelectReferralConnectionDialog( PlatformUI.getWorkbench()
                    .getDisplay().getActiveShell(), referralUrl );
                if ( dialog.open() == SelectReferralConnectionDialog.OK )
                {
                    IBrowserConnection connection = dialog.getReferralConnection();
                    referralUrlToReferralConnectionCache.put( referralUrl, connection );
                    referralConnection[0] = connection;
                }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.common.dialogs.TextDialog.open()

    {
        Object value = getValue();
        if ( value != null && value instanceof String )
        {
            TextDialog dialog = new TextDialog( shell, ( String ) value );
            if ( dialog.open() == TextDialog.OK && !"".equals( dialog.getText() ) ) //$NON-NLS-1$
            {
                setValue( dialog.getText() );
                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.