Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.eclipse.jdt.graph
Class FileDependGraphAction  view FileDependGraphAction download FileDependGraphAction.java

java.lang.Object
  extended bycom.port80.eclipse.jdt.graph.FileDependGraphAction
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, IGraphAction, org.eclipse.ui.IWorkbenchWindowActionDelegate

Deprecated. Superceded by DependGraphAction.

public class FileDependGraphAction
extends java.lang.Object
implements org.eclipse.ui.IWorkbenchWindowActionDelegate, IGraphAction

Depend Graph depicts the source file and class file type reference relationships. For source file, all types in the source file are grouped into one node. For binary class file, nested class are grouped to the node for their enclosing class. Reference is depicted by an edge to the referenced type/file. To make the graph more readable, edge from an inherited type is removed if its super class/interface exists in the graph and already has an edge to the same destination. Type are represented by vertex. The vertex name is the absolute file path for source type and fully qualified typename + ".java" for binary type. Each vertex also have the following attributes: . -fullTypeName (String) Fully qualified type name. . -isInterface (Boolean) True if type is an interface. . -superClasses (Set) of fully qualified type name of the superclass. . -superInterfaceName (Set) of fully qualified type name of the super interfaces. . -references (Set) of fully qualified type name of referenced types.


Field Summary
private static boolean CLASSGRAPH
          Deprecated.  
private static java.lang.String COLOR_CLASS
          Deprecated.  
private static java.lang.String COLOR_INTERFACE
          Deprecated.  
private static java.lang.String COLOR_SUPERCLASS
          Deprecated.  
private static java.lang.String COLOR_SUPERINTERFACE
          Deprecated.  
private static java.lang.String COLOR_TOP
          Deprecated.  
private static boolean DEBUG
          Deprecated.  
private  com.port80.graph.IGraph fGraph
          Deprecated.  
private  org.eclipse.jdt.core.ISourceRange fParsingErrorRange
          Deprecated.  
private  java.lang.Object[] fSelected
          Deprecated.  
private  org.eclipse.ui.IWorkbenchWindow fWindow
          Deprecated.  
private static java.lang.String NAME
          Deprecated.  
private static java.lang.String STYLE_SUPERCLASS
          Deprecated.  
private static java.lang.String STYLE_SUPERINTERFACE
          Deprecated.  
private static boolean VERBOSE
          Deprecated.  
 
Constructor Summary
FileDependGraphAction()
          Deprecated. The constructor.
 
Method Summary
 int addRef(java.lang.String srcpath, org.eclipse.jdt.core.dom.CompilationUnit ast, com.port80.graph.IGraph graph, java.util.Map filemap)
          Deprecated. Find type references in a compiled AST.
(package private)  void dependGraph(org.eclipse.core.runtime.IProgressMonitor monitor)
          Deprecated.  
(package private)  com.port80.graph.IGraph dependGraph(java.lang.Object[] selected, org.eclipse.core.runtime.IProgressMonitor monitor)
          Deprecated. Construct class dependency graph between classes in given objects base on type references.
 void dispose()
          Deprecated. We can use this method to dispose of any system resources we previously allocated.
private  void findSuperConnected(com.port80.graph.IVertex vertex, java.util.Set supers, com.port80.graph.IGraph graph, java.util.Map filemap, java.util.Set ret)
          Deprecated. Find all vertices that can be reached by the given set of vertices.
 void init(org.eclipse.ui.IWorkbenchWindow window)
          Deprecated. We will cache window object in order to be able to provide parent shell for the message dialog.
private  void removeInheritedDepends(com.port80.graph.IGraph graph, com.port80.graph.IVertex vertex, java.util.Map filemap)
          Deprecated. Remove self edge and dependency that are already present in super classes.
 void run(org.eclipse.jface.action.IAction action)
          Deprecated. Find depend graph for selected package.
 void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
          Deprecated. Selection in the workbench has been changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

private static final java.lang.String NAME
Deprecated. 
See Also:
Constant Field Values

DEBUG

private static final boolean DEBUG
Deprecated. 
See Also:
Constant Field Values

VERBOSE

private static final boolean VERBOSE
Deprecated. 
See Also:
Constant Field Values

CLASSGRAPH

private static final boolean CLASSGRAPH
Deprecated. 
See Also:
Constant Field Values

COLOR_TOP

private static final java.lang.String COLOR_TOP
Deprecated. 
See Also:
Constant Field Values

COLOR_CLASS

private static final java.lang.String COLOR_CLASS
Deprecated. 
See Also:
Constant Field Values

COLOR_INTERFACE

private static final java.lang.String COLOR_INTERFACE
Deprecated. 
See Also:
Constant Field Values

COLOR_SUPERCLASS

private static final java.lang.String COLOR_SUPERCLASS
Deprecated. 
See Also:
Constant Field Values

COLOR_SUPERINTERFACE

private static final java.lang.String COLOR_SUPERINTERFACE
Deprecated. 
See Also:
Constant Field Values

STYLE_SUPERCLASS

private static final java.lang.String STYLE_SUPERCLASS
Deprecated. 
See Also:
Constant Field Values

STYLE_SUPERINTERFACE

private static final java.lang.String STYLE_SUPERINTERFACE
Deprecated. 
See Also:
Constant Field Values

fParsingErrorRange

private org.eclipse.jdt.core.ISourceRange fParsingErrorRange
Deprecated. 

fWindow

private org.eclipse.ui.IWorkbenchWindow fWindow
Deprecated. 

fSelected

private java.lang.Object[] fSelected
Deprecated. 

fGraph

private com.port80.graph.IGraph fGraph
Deprecated. 
Constructor Detail

FileDependGraphAction

public FileDependGraphAction()
Deprecated. 
The constructor.

Method Detail

run

public void run(org.eclipse.jface.action.IAction action)
Deprecated. 
Find depend graph for selected package. //FIXME: For now, only look at source files.

Specified by:
run in interface org.eclipse.ui.IActionDelegate

selectionChanged

public void selectionChanged(org.eclipse.jface.action.IAction action,
                             org.eclipse.jface.viewers.ISelection selection)
Deprecated. 
Selection in the workbench has been changed. We can change the state of the 'real' action here if we want, but this can only happen after the delegate has been created.

Specified by:
selectionChanged in interface org.eclipse.ui.IActionDelegate

dispose

public void dispose()
Deprecated. 
We can use this method to dispose of any system resources we previously allocated.

Specified by:
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegate

init

public void init(org.eclipse.ui.IWorkbenchWindow window)
Deprecated. 
We will cache window object in order to be able to provide parent shell for the message dialog. NOTE: This is not called if action is activated from a context menu (eg. from JDT package view).

Specified by:
init in interface org.eclipse.ui.IWorkbenchWindowActionDelegate

addRef

public int addRef(java.lang.String srcpath,
                  org.eclipse.jdt.core.dom.CompilationUnit ast,
                  com.port80.graph.IGraph graph,
                  java.util.Map filemap)
Deprecated. 
Find type references in a compiled AST.

Specified by:
addRef in interface IGraphAction

dependGraph

void dependGraph(org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated. 

dependGraph

com.port80.graph.IGraph dependGraph(java.lang.Object[] selected,
                                    org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated. 
Construct class dependency graph between classes in given objects base on type references.


removeInheritedDepends

private void removeInheritedDepends(com.port80.graph.IGraph graph,
                                    com.port80.graph.IVertex vertex,
                                    java.util.Map filemap)
Deprecated. 
Remove self edge and dependency that are already present in super classes. Color the edges that involve inheritance.


findSuperConnected

private void findSuperConnected(com.port80.graph.IVertex vertex,
                                java.util.Set supers,
                                com.port80.graph.IGraph graph,
                                java.util.Map filemap,
                                java.util.Set ret)
Deprecated. 
Find all vertices that can be reached by the given set of vertices.