Examples of open()


Examples of org.apache.directory.studio.ldapbrowser.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.studio.ldapservers.dialogs.DeleteServerDialog.open()

            // Here's the real object
            LdapServer server = ( LdapServer ) selection.getFirstElement();

            // Asking for confirmation
            DeleteServerDialog dsd = new DeleteServerDialog( view.getSite().getShell(), server );
            if ( dsd.open() == DeleteServerDialog.OK )
            {
                // Creating and scheduling the job to delete the server
                StudioLdapServerJob job = new StudioLdapServerJob( new DeleteLdapServerRunnable( server ) );
                job.schedule();
            }
View Full Code Here

Examples of org.apache.directory.studio.ldifeditor.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.studio.schemaeditor.view.dialogs.AttributeTypeSelectionDialog.open()

        superiorButton.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent arg0 )
            {
                AttributeTypeSelectionDialog dialog = new AttributeTypeSelectionDialog();
                if ( dialog.open() == Dialog.OK )
                {
                    AttributeTypeImpl selectedAT = dialog.getSelectedAttributeType();
                    String[] aliases = selectedAT.getNamesRef();
                    if ( ( aliases != null ) && ( aliases.length > 0 ) )
                    {
View Full Code Here

Examples of org.apache.directory.studio.schemaeditor.view.dialogs.EditAliasesDialog.open()

             */
            public void widgetSelected( SelectionEvent arg0 )
            {
                EditAliasesDialog dialog = new EditAliasesDialog( getAliasesValue() );

                if ( ( dialog.open() == Dialog.OK ) && ( dialog.isDirty() ) )
                {
                    String[] newAliases = dialog.getAliases();

                    StringBuffer sb = new StringBuffer();
                    for ( String newAlias : newAliases )
View Full Code Here

Examples of org.apache.directory.studio.schemaeditor.view.dialogs.EditAttributeTypeAliasesDialog.open()

             */
            public void widgetSelected( SelectionEvent arg0 )
            {
                EditAttributeTypeAliasesDialog dialog = new EditAttributeTypeAliasesDialog( getAliasesValue() );

                if ( dialog.open() == EditAttributeTypeAliasesDialog.OK )
                {
                    String[] newAliases = dialog.getAliases();

                    StringBuffer sb = new StringBuffer();
                    for ( String newAlias : newAliases )
View Full Code Here

Examples of org.apache.directory.studio.schemaeditor.view.dialogs.EditObjectClassAliasesDialog.open()

             */
            public void widgetSelected( SelectionEvent arg0 )
            {
                EditObjectClassAliasesDialog dialog = new EditObjectClassAliasesDialog( getAliasesValue() );

                if ( dialog.open() == EditObjectClassAliasesDialog.OK )
                {
                    String[] newAliases = dialog.getAliases();

                    StringBuffer sb = new StringBuffer();
                    for ( String newAlias : newAliases )
View Full Code Here

Examples of org.apache.directory.studio.schemaeditor.view.dialogs.ObjectClassSelectionDialog.open()

     */
    private void addSuperiorObjectClass()
    {
        ObjectClassSelectionDialog dialog = new ObjectClassSelectionDialog();
        dialog.setHiddenObjectClasses( superiorsList );
        if ( dialog.open() == Dialog.OK )
        {
            superiorsList.add( dialog.getSelectedObjectClass() );
            updateSuperiorsTable();
        }
    }
View Full Code Here

Examples of org.apache.directory.studio.schemaeditor.view.dialogs.PreviousSearchesDialog.open()

     * @see org.eclipse.jface.action.Action#run()
     */
    public void run()
    {
        PreviousSearchesDialog dialog = new PreviousSearchesDialog( view );
        dialog.open();
    }


    /* (non-Javadoc)
     * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
View Full Code Here

Examples of org.apache.directory.studio.schemaeditor.view.dialogs.RenameAttributeTypeDialog.open()

                {
                    MutableAttributeType attributeType = ( MutableAttributeType ) ( ( AttributeTypeWrapper ) selectedElement )
                        .getAttributeType();

                    RenameAttributeTypeDialog dialog = new RenameAttributeTypeDialog( attributeType.getNames() );
                    if ( dialog.open() == RenameAttributeTypeDialog.OK )
                    {
                        MutableAttributeType modifiedAttributeType = PluginUtils.getClone( attributeType );
                        modifiedAttributeType.setNames( dialog.getAliases() );
                        Activator.getDefault().getSchemaHandler()
                            .modifyAttributeType( attributeType, modifiedAttributeType );
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.