@Override protected GraphDocument generateAnalysisDocument(IProgressMonitor monitor) throws IOException {
  String classPath=page.getClassPath();
  String directoryFilter=page.getDirectoryFilter();
  String packageFilter=page.getPackageFilter();
  Collection<String> packageWhitelist=splitFilter(packageFilter);
  ElementFilter filter=new DefaultElementFilter(packageWhitelist);
  GraphModel resultGraph=new GraphModel();
  DependenciesListener builder=new DependenciesDispatcher(filter,resultGraph.getBuilder());
  Collection<String> directoryWhitelist=splitFilter(directoryFilter);
  monitor.worked(1);
  monitor.setTaskName("Load Classes...");
  ProgressListener baseProgress=new ProgressListenerMonitor(monitor);
  ProgressListener quickProgress=new QuickProgressListener(baseProgress,300);
  if (classPath.endsWith(".jar") || classPath.endsWith(".zip")) {
    readZipFile(classPath,builder,quickProgress);
  }
 else {
    readTree(classPath,builder,quickProgress);
  }
  logger.info(analysisStats.getClassesLoaded() + "/" + analysisStats.getClassesTotal()+ " classes loaded. "+ analysisStats.getClassesFailed()+ " failed.");
  monitor.worked(1);
  return createGraphDocument(resultGraph,JavaActivator.PLUGIN_ID,FileSystemActivator.PLUGIN_ID,Resources.PLUGIN_ID);
}

@ Override protected GraphDocument generateAnalysisDocument ( IProgressMonitor monitor ) throws IOException { String classPath = page . getClassPath ( ) ; String directoryFilter = page . getDirectoryFilter ( ) ; String packageFilter = page . getPackageFilter ( ) ; Collection < String > packageWhitelist = splitFilter ( packageFilter ) ; ElementFilter filter = new DefaultElementFilter ( packageWhitelist ) ; GraphModel resultGraph = new GraphModel ( ) ; DependenciesListener builder = new DependenciesDispatcher ( filter , resultGraph . getBuilder ( ) ) ; Collection < String > directoryWhitelist = splitFilter ( directoryFilter ) ; monitor . worked ( 1 ) ; monitor . setTaskName ( "Load Classes..." ) ; ProgressListener baseProgress = new ProgressListenerMonitor ( monitor ) ; ProgressListener quickProgress = new QuickProgressListener ( baseProgress , 300 ) ; if ( classPath . endsWith ( ".jar" ) || classPath . endsWith ( ".zip" ) ) { readZipFile ( classPath , builder , quickProgress ) ; } else { readTree ( classPath , builder , quickProgress ) ; } logger . info ( analysisStats . getClassesLoaded ( ) + "/" + analysisStats . getClassesTotal ( ) + " classes loaded. " + analysisStats . getClassesFailed ( ) + " failed." ) ; monitor . worked ( 1 ) ; return createGraphDocument ( resultGraph , JavaActivator . PLUGIN_ID , FileSystemActivator . PLUGIN_ID , Resources . PLUGIN_ID ) ; }
create an analysis graph by analyzing the . class files on the classpath .
