LilianWong. I want: java file become UML in vpclassd file. it dependency!

package wuqi;

public abstract class WuQi {

public void gongji() {
}

private String name;

private int shanghai;

public String getName() {
	return name;
}

public void setName(String name) {
	this.name = name;
}

public int getShanghai() {
	return shanghai;
}

public void setShanghai(int shanghai) {
	this.shanghai = shanghai;
}

}

package wuqi;

public class Dadao extends WuQi {

public Dadao() {
	this.setName("大刀");
	this.setShanghai(100);
}

public void gongji() {
	System.out.println("使用武器:大刀");
	System.out.println("伤害值为:100");
}

}


package wuqi;

public class RenZu {

public void gongji(WuQi WuQiRef) {// 攻击的方法
	WuQiRef.gongji();
}

public static void main(String[] args) {
	RenZu gongji = new RenZu();// 创建一个角色类的实例
	gongji.gongji(new Dadao());// 调用gongji方法

}

}


mr:LilianWong!

RenZu and WuQi Java Class is dependency!

i want reverse in vpclassd file show dependency!!!

how do i?

Hi Ghyghost,

Thanks for your post. We do not show the dependency on diagram after reverse to avoid messy diagram, so the dependency is reversed as well but just not shown on the diagram. You can right-click on the attribute and select “Show Dependencies” in the popup menu (as attached image) to visualize the dependency on the diagram.

We will enhance to have class-based menu item for visualizing the dependencies on the diagram.

Best regards,
Lilian Wong

show_dependency.png