Package org.neo4j.neoclipse.connection.actions

Examples of org.neo4j.neoclipse.connection.actions.NewAliasAction


        GraphDbServiceManager graphDbServiceManager = Activator.getDefault().getGraphDbServiceManager();

        Alias alias = view.getSelectedAlias();
        if ( alias == null )
        {
            addAction( menu, new NewAliasAction() );
            return;
        }

        if ( graphDbServiceManager.isRunning() && graphDbServiceManager.getCurrentAlias().equals( alias ) )
        {
            addAction( menu, new StopAction( neoGraphView ) );
            addAction( menu, new ExportToXmlAction() );
            addAction( menu, new ExportToJsonAction() );

        }
        else
        {
            if ( !graphDbServiceManager.isRunning() )
            {
                addAction( menu, new StartAction( neoGraphView ) );
                menu.add( new Separator() );
            }
            else
            {
                addAction( menu, new ForceStartAction( neoGraphView ) );
                menu.add( new Separator() );
            }
            addAction( menu, new NewAliasAction() );
            addAction( menu, new EditAliasAction() );
            addAction( menu, new DeleteAliasAction() );
        }
    }
View Full Code Here


        _treeViewer = new TreeViewer( parent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL );
        getSite().setSelectionProvider( _treeViewer );

        IToolBarManager toolBarMgr = getViewSite().getActionBars().getToolBarManager();
        toolBarMgr.add( new NewAliasAction() );
        toolBarMgr.add( new SqlEditorAction() );

        _treeViewer.setUseHashlookup( true );
        _treeViewer.setContentProvider( new ConnectionTreeContentProvider() );
        _treeViewer.setLabelProvider( new ConnectionTreeLabelProvider() );
View Full Code Here

TOP

Related Classes of org.neo4j.neoclipse.connection.actions.NewAliasAction

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.