예제 #1
0
 private void analyze(IProgressMonitor m) {
   monitor = m;
   monitor.beginTask("Analyzing tangle details", 1000);
   List packageNames = new ArrayList();
   // get all package names from the StrongComponent
   for (int i = 0; i < packageTangle.getNumberOfVertices(); i++) {
     Vertex v = packageTangle.getVertex(i);
     packageNames.add(v.getAttributes().toString());
   }
   // find corresponding IPackageFragment objects
   List packages = getPackageFragments(packageNames);
   if (!m.isCanceled()) getDependencies(packages);
   monitor.done();
 }
 private static String getClassName(Vertex classVertex) {
   ClassAttributes classAttributes = (ClassAttributes) classVertex.getAttributes();
   return (classAttributes).getName();
 }