Browse files

Fixed traversal buttons behaviour on graphview page

  • Loading branch information...
1 parent d85699c commit 3990f279311429f1947ee07afea1218d6c9635eb @nrkkalyan nrkkalyan committed Mar 1, 2012
View
2 org.neo4j.neoclipse/src/main/java/org/neo4j/neoclipse/preference/PreferenceInitializer.java
@@ -44,7 +44,7 @@ public void initializeDefaultPreferences()
pref.setDefault( Preferences.CONNECTION_MODE,
GraphDbServiceMode.READ_WRITE_EMBEDDED.name() );
pref.setDefault( Preferences.MAX_NODES, 500 );
- pref.setDefault( Preferences.MAX_TRAVERSAL_DEPTH, 2 );
+ pref.setDefault( Preferences.MAX_TRAVERSAL_DEPTH, 1 );
}
View
6 org.neo4j.neoclipse/src/main/java/org/neo4j/neoclipse/view/NeoGraphViewPart.java
@@ -636,12 +636,6 @@ public void run()
*/
public int getTraversalDepth()
{
- IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore();
- int maxTraversalDepth = preferenceStore.getInt( Preferences.MAX_TRAVERSAL_DEPTH );
- if ( maxTraversalDepth > 0 )
- {
- traversalDepth = maxTraversalDepth;
- }
return traversalDepth;
}

0 comments on commit 3990f27

Please sign in to comment.