Package org.neo4j.neoclipse.graphdb

Examples of org.neo4j.neoclipse.graphdb.GraphDbServiceManager$Tasks


     */
    public void showSomeNode()
    {
        try
        {
            GraphDbServiceManager gsm = Activator.getDefault().getGraphDbServiceManager();
      Node node = gsm.getAnyReferenceNode();
            setInput( node );
            gsm.submitDisplayTask( new Runnable()
            {
                @Override
                public void run()
                {
                    NeoGraphViewPart.this.refreshStatusBar();
View Full Code Here


     */
    public void showNode( final long nodeId )
    {
        try
        {
            GraphDbServiceManager gsm = Activator.getDefault().getGraphDbServiceManager();
            gsm.submitTask( new GraphRunnable()
            {
                @Override
                public void run( final GraphDatabaseService graphDb )
                {
                    if ( graphDb != null )
View Full Code Here

     */
    public void setDirty( final boolean dirty )
    {
        // TODO add a StructureChangeEvent instead of having
        // this method public?
        GraphDbServiceManager sm = Activator.getDefault().getGraphDbServiceManager();
        this.dirty = dirty;
        if ( sm.isReadOnlyMode() )
        {
            // menu.setEnabledSyncAction( !dirty );
            return;
        }
        menu.setEnabledCommitAction( dirty );
View Full Code Here

            String property = event.getProperty();
            if ( Preferences.CONNECTION_MODE.equals( property ) )
            {
                GraphDbServiceMode newConnectionMode;
                newConnectionMode = GraphDbServiceMode.valueOf( (String) event.getNewValue() );
                GraphDbServiceManager sm = Activator.getDefault().getGraphDbServiceManager();
                cleanTransactionBeforeShutdown();
                sm.setGraphServiceMode( newConnectionMode );
                // TODO refresh what needs to be refreshed here
            }
            else
            {
                if ( NeoGraphLabelProviderWrapper.getInstance().propertyChanged( event ) )
View Full Code Here

        if ( inputElement == null )
        {
            return new Node[] {};
        }
        final Node node = (Node) inputElement;
        GraphDbServiceManager gsm = Activator.getDefault().getGraphDbServiceManager();
        if ( gsm == null || !gsm.isRunning() )
        {
            return new Node[] { node };
        }
        try
        {
            return gsm.submitTask( new GraphCallable<Object[]>()
            {
                @Override
                public Object[] call( final GraphDatabaseService graphDb )
                {
                    return getTheElements( node, graphDb );
View Full Code Here

    }

    private Object[] getTheElements( final Node node,
            final GraphDatabaseService graphDb )
    {
        GraphDbServiceManager nsm = Activator.getDefault().getGraphDbServiceManager();
        if ( nsm == null || !nsm.isRunning() )
        {
            return new Node[] { node };
        }
        Collection<? extends DirectedRelationship> relDirList;
        relDirList = relTypesProvider.getFilteredDirectedRelationships();
View Full Code Here

TOP

Related Classes of org.neo4j.neoclipse.graphdb.GraphDbServiceManager$Tasks

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.