de.frag.umlplugin.codenavigator
Class Navigator

java.lang.Object
  extended by de.frag.umlplugin.codenavigator.Navigator

public class Navigator
extends java.lang.Object

Handles navigation to nodes and source files.


Constructor Summary
Navigator(com.intellij.openapi.project.Project project, com.intellij.openapi.graph.view.Graph2DView graph2DView, NavigationHistory navigationHistory)
          Creates new navigator.
 
Method Summary
 void navigate(com.intellij.openapi.graph.base.Edge edge, boolean navigateToEdgeSource)
          Naviagtes to given edge.
 void navigate(com.intellij.openapi.graph.base.Node node)
          Navigates to given node.
 void navigate(com.intellij.psi.PsiClass psiClass, DependencyType dependencyType)
          Navigates to given class and dependency type.
 void startNavigation(com.intellij.psi.PsiClass psiClass)
          Starts graphical naviagtion using given class as first subject class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Navigator

public Navigator(@NotNull
                 com.intellij.openapi.project.Project project,
                 @NotNull
                 com.intellij.openapi.graph.view.Graph2DView graph2DView,
                 @NotNull
                 NavigationHistory navigationHistory)
Creates new navigator.

Parameters:
project - project
graph2DView - graph view
navigationHistory - navigation history
Method Detail

startNavigation

public void startNavigation(@NotNull
                            com.intellij.psi.PsiClass psiClass)
Starts graphical naviagtion using given class as first subject class.

Parameters:
psiClass - navigation start class

navigate

public void navigate(@NotNull
                     com.intellij.psi.PsiClass psiClass,
                     @NotNull
                     DependencyType dependencyType)
Navigates to given class and dependency type.

Parameters:
psiClass - class to navigate to
dependencyType - dependency type to navigate to

navigate

public void navigate(@NotNull
                     com.intellij.openapi.graph.base.Node node)
Navigates to given node.

Parameters:
node - node to navigate to

navigate

public void navigate(@NotNull
                     com.intellij.openapi.graph.base.Edge edge,
                     boolean navigateToEdgeSource)
Naviagtes to given edge.

Parameters:
edge - edge to navigate to
navigateToEdgeSource - true, if source of edge is navigation target; false if target of edge is navigation target