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

Examples of org.apache.directory.ldapstudio.browser.ui.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();
        TableViewer viewer = mainWidget.getViewer();

        this.connectionActionMap.put( newConnectionAction, new ConnectionViewActionProxy( viewer,
            new NewConnectionAction() ) );
        this.connectionActionMap.put( openConnectionAction, new ConnectionViewActionProxy( viewer,
            new OpenConnectionAction() ) );
        this.connectionActionMap.put( closeConnectionAction, new ConnectionViewActionProxy( viewer,
            new CloseConnectionAction() ) );
        this.connectionActionMap
            .put( pasteConnectionAction, new ConnectionViewActionProxy( viewer, new PasteAction() ) );
        this.connectionActionMap.put( copyConnectionAction, new ConnectionViewActionProxy( viewer, new CopyAction(
            ( BrowserActionProxy ) this.connectionActionMap.get( pasteConnectionAction ) ) ) );
        this.connectionActionMap.put( deleteConnectionAction,
            new ConnectionViewActionProxy( viewer, new DeleteAction() ) );
        this.connectionActionMap.put( renameConnectionAction,
            new ConnectionViewActionProxy( viewer, new RenameAction() ) );
        this.connectionActionMap.put( propertyDialogAction, new ConnectionViewActionProxy( viewer,
            new PropertiesAction() ) );

    }
View Full Code Here

        {

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

    {
        super( view.getMainWidget(), view.getConfiguration() );
        this.view = view;
        TableViewer viewer = view.getMainWidget().getViewer();

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

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

        // DND support
        this.dropConnectionListener = new DropConnectionListener();
        this.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.ui.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.