Exemplo n.º 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();
 }
Exemplo n.º 2
0
 /**
  * Adds an outgoing arc to the specified vertex. Also calls {@link #addIncomingArcTo} for
  * <tt>headVertex</tt> with <tt>this</tt> as the argument. Does nothing if <tt>headVertex</tt> is
  * the head vertex of an already existing outgoing arc.
  *
  * @param headVertex Head vertex to be added to establish a new outgoing arc. <tt>Null</tt> is not
  *     allowed.
  */
 public void addOutgoingArcTo(Vertex headVertex) {
   if (!_heads.contains(headVertex)) {
     _heads.add(headVertex);
     headVertex.addIncomingArcTo(this);
   }
 }
Exemplo n.º 3
0
 /**
  * Adds an incoming arc to the specified vertex. Also calls {@link #addOutgoingArcTo} for
  * <tt>tailVertex</tt> with <tt>this</tt> as the argument. Does nothing if <tt>tailVertex</tt> is
  * the tail vertex of an already existing incoming arc.
  *
  * @param tailVertex Tail vertex to be added to establish a new incoming arc. <tt>Null</tt> is not
  *     allowed.
  */
 public void addIncomingArcTo(Vertex tailVertex) {
   if (!_tails.contains(tailVertex)) {
     _tails.add(tailVertex);
     tailVertex.addOutgoingArcTo(this);
   }
 }
 private static String getClassName(Vertex classVertex) {
   ClassAttributes classAttributes = (ClassAttributes) classVertex.getAttributes();
   return (classAttributes).getName();
 }