Package org.neo4j.neoclipse.connection

Examples of org.neo4j.neoclipse.connection.Alias


    @Override
    public void run()
    {
        try
        {
            Alias selectedAlias = Activator.getDefault().getConnectionsView().getSelectedAlias();
            GraphDbServiceManager gsm = Activator.getDefault().getGraphDbServiceManager();
            gsm.startGraphDbService( selectedAlias ).get();
            graphView.showSomeNode();
        }
        catch ( Exception e )
View Full Code Here


    @Override
    public void run()
    {
        try
        {
            Alias selectedAlias = getConnectionView().getSelectedAlias();

            boolean okToDelete = MessageDialog.openConfirm( Display.getCurrent().getActiveShell(), "Delete Connection",
                    "Are you sure you want to delete the connection?" );

            if ( !okToDelete && selectedAlias != null )
View Full Code Here

                GraphDbServiceManager gsm = Activator.getDefault().getGraphDbServiceManager();
                NeoGraphViewPart graphView = Activator.getDefault().getNeoGraphViewPart();
                ConnectionsView connectionsView = Activator.getDefault().getConnectionsView();
                try
                {
                    Alias selectedAlias = connectionsView.getSelectedAlias();
                    gsm.startGraphDbService( selectedAlias ).get();
                    graphView.showSomeNode();
                }
                catch ( Exception e )
                {
View Full Code Here

            setTitle( "Create new connection" );
        }
        else if ( type == Type.EDIT )
        {
            setTitle( "Edit connection" );
            Alias selectedAlias = Activator.getDefault().getConnectionsView().getSelectedAlias();
            nameField.setEnabled( false );
            autoConnectButton.setEnabled( false );
            allowUpgrade.setSelection( Boolean.parseBoolean( selectedAlias
                    .getConfigurationByKey( GraphDatabaseSettings.allow_store_upgrade.name() ) ) );
            nameField.setText( selectedAlias.getName() );
            urlField.setStringValue( selectedAlias.getUri() );
            userField.setText( ApplicationUtil.returnEmptyIfBlank( selectedAlias.getUserName() ) );
            passwordField.setEchoChar( '*' );
            passwordField.setText( ApplicationUtil.returnEmptyIfBlank( selectedAlias.getPassword() ) );
        }

        return contents;
    }
View Full Code Here

    protected void okPressed()
    {

        try
        {
            Alias alias = new Alias( nameField.getText(), urlField.getStringValue(), userField.getText(),
                    passwordField.getText() );
            alias.addConfiguration( GraphDatabaseSettings.allow_store_upgrade.name(),
                    Boolean.toString( allowUpgrade.getSelection() ) );
            if ( type == Type.EDIT )
            {
                Alias selectedAlias = Activator.getDefault().getConnectionsView().getSelectedAlias();
                Activator.getDefault().getAliasManager().removeAlias( selectedAlias );
            }
            Activator.getDefault().getAliasManager().addAlias( alias );

            ConnectionsView connectionsView = Activator.getDefault().getConnectionsView();
View Full Code Here

            } );
        }

        private void handleServiceChange( final GraphDbServiceEvent event )
        {
            Alias alias = Activator.getDefault().getSelectedAlias();
            if ( event.getStatus() == GraphDbServiceStatus.DB_SELECT
                 && !Activator.getDefault().getGraphDbServiceManager().isRunning() )
            {
                menu.setEnabledStartAction( true );
                if ( alias != null )
                {
                    Activator.getDefault().setStatusLineMessage( alias.getUri() );
                }
            }
            else if ( event.getStatus() == GraphDbServiceStatus.STOPPING )
            {
                if ( browserHistory != null )
View Full Code Here

TOP

Related Classes of org.neo4j.neoclipse.connection.Alias

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.