Package org.apache.directory.ldapstudio.browser.common.actions.proxy

Examples of org.apache.directory.ldapstudio.browser.common.actions.proxy.ConnectionViewActionProxy


        this.view = view;
        TableViewer viewer = view.getMainWidget().getViewer();

        linkWithEditorAction = new LinkWithEditorAction( view );
        connectionActionMap
            .put( selectAllAction, new ConnectionViewActionProxy( viewer, new SelectAllAction( viewer ) ) );
        connectionActionMap.put( importDsmlAction, new ConnectionViewActionProxy( viewer, new ImportExportAction(
            ImportExportAction.TYPE_IMPORT_DSML ) ) );
        connectionActionMap.put( exportDsmlAction, new ConnectionViewActionProxy( viewer, new ImportExportAction(
            ImportExportAction.TYPE_EXPORT_DSML ) ) );
        connectionActionMap.put( importLdifAction, new ConnectionViewActionProxy( viewer, new ImportExportAction(
            ImportExportAction.TYPE_IMPORT_LDIF ) ) );
        connectionActionMap.put( exportLdifAction, new ConnectionViewActionProxy( viewer, new ImportExportAction(
            ImportExportAction.TYPE_EXPORT_LDIF ) ) );
        connectionActionMap.put( exportCsvAction, new ConnectionViewActionProxy( viewer, new ImportExportAction(
            ImportExportAction.TYPE_EXPORT_CSV ) ) );
        connectionActionMap.put( exportExcelAction, new ConnectionViewActionProxy( viewer, new ImportExportAction(
            ImportExportAction.TYPE_EXPORT_EXCEL ) ) );

        connectionActionMap.put( openSchemaBrowserAction, new ConnectionViewActionProxy( viewer,
            new OpenSchemaBrowserAction() ) );

        // DND support
        dropConnectionListener = new DropConnectionListener();
        dragConnectionListener = new DragConnectionListener();
View Full Code Here


        this.mainWidget = mainWidget;
        this.connectionActionMap = new HashMap<String, ConnectionViewActionProxy>();

        TableViewer viewer = mainWidget.getViewer();
        connectionActionMap
            .put( newConnectionAction, new ConnectionViewActionProxy( viewer, new NewConnectionAction() ) );
        connectionActionMap.put( openConnectionAction, new ConnectionViewActionProxy( viewer,
            new OpenConnectionAction() ) );
        connectionActionMap.put( closeConnectionAction, new ConnectionViewActionProxy( viewer,
            new CloseConnectionAction() ) );
        connectionActionMap.put( pasteConnectionAction, new ConnectionViewActionProxy( viewer, new PasteAction() ) );
        connectionActionMap.put( copyConnectionAction, new ConnectionViewActionProxy( viewer, new CopyAction(
            ( BrowserActionProxy ) connectionActionMap.get( pasteConnectionAction ) ) ) );
        connectionActionMap.put( deleteConnectionAction, new ConnectionViewActionProxy( viewer, new DeleteAction() ) );
        connectionActionMap.put( renameConnectionAction, new ConnectionViewActionProxy( viewer, new RenameAction() ) );
        connectionActionMap.put( propertyDialogAction, new ConnectionViewActionProxy( viewer, new PropertiesAction() ) );
    }
View Full Code Here

        if ( mainWidget != null )
        {
            for ( Iterator it = connectionActionMap.keySet().iterator(); it.hasNext(); )
            {
                String key = ( String ) it.next();
                ConnectionViewActionProxy action = ( ConnectionViewActionProxy ) this.connectionActionMap.get( key );
                action.dispose();
                action = null;
                it.remove();
            }
            connectionActionMap.clear();
            connectionActionMap = null;
View Full Code Here

TOP

Related Classes of org.apache.directory.ldapstudio.browser.common.actions.proxy.ConnectionViewActionProxy

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.