���Ӽ� �м�

 

Analyze Dependencies Æ¯Â¡ï¿½ï¿½ ��ſ��� ����� ��� �ִ� �ڵ尡 ������ �����ϴ����� �˱� ���� ���ɼ��� �ݴϴ�.  ï¿½ï¿½ï¿½ï¿½ Ư���� ���̾�α� ����� �������� ����� ��Ÿ���� �׸��� ���͸� �� �� �ֽ��ϴ�.

Analyze Dependencies ï¿½ï¿½ ���̾�α׸� ��� ����, �� �޴����� Analyze Dependencies   �����Ͻʽÿ�. �Ǵ� �ʿ��� �׸�(Ŭ����, ����, ��)�� ������ ��ư�� Ŭ���ϰ� �����Ϳ��� Analyze Analyze Dependencies ï¿½ï¿½ �����ϰ�, Project View�� Project ï¿½ï¿½  Packages ï¿½ï¿½ �Ǵ�  J2EE  ï¿½ï¿½ ( Project View  ) �Ǵ� Commander�� Analyze Dependencies  ï¿½ï¿½ï¿½ï¿½ï¿½Ï´ï¿½ �Ϳ� ���� �ҷ����� ���� ���� �޴��κ��� ����� �װ��� ������ �� �ֽ��ϴ�.


���� ����� ������ �Ǵ� ����(�޴��� � �Ϳ���) ������ Analyze Dependencies�� ��� ��ſ��� Specify Dependency Analysis Scope ï¿½ï¿½ï¿½Ì¾ï¿½Î±×°ï¿½ ������Ʈ �� �� �Դϴ������ ������ ����(����Ʈ)�� ��ü ������Ʈ�� �м��ϰ� �;��ϴ����� �����ϱ�(�����ϴ� �ɼ� ��ư�� ���Ҿ�) ���� ���˴ϴ�.



�� ���� Dependency Viewer ï¿½ï¿½ �����찡 ��Ÿ���ϴ�.


IntelliJ IDEA�� �� �����쿡�� �Ϲ� ������ ���� �� ������ ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ �����Ͻʽÿ�.




 
�� ������� 3���� ������� �����˴ϴ�.  ï¿½ï¿½ï¿½ï¿½ ����� ������(Analyzed Code Window)�� Ʈ�� ����μ� ����� ������Ʈ ������ ǥ���մϴ�.  ï¿½Ù¸ï¿½ ��� Ŭ����(������Ʈ, ���̺귯�� �Ǵ� �ڹ� SDK��)�� �����ϴ� Java ������ �����ϴ� ���� �׸� ���õ� Java ��� ������ ���� ������ ������(Parent Code Window)���� �����ϴ� ���� �����ݴϴ�. ���� �����쿡�� �׸��� �����ϴ� ���� �� �Ʒ� ������(Usage Window)���� ��� ������(���� ������) �ڵ忡�� ��� (���� ������)�ڵ��� ��� ����� ǥ���մϴ�.

Usage Window��  Find tool window�� ������ ���ٿ� ���� �޴��� ������ �ֽ��ϴ�.

Dependency Viewer ï¿½ï¿½ ������� ���� ��ư�� �Բ� ���ٸ� �����ϴ�:


Close  

Ctrl + Shift + F4  

�� �����츦 �����ʽÿ�.

Rerun  

Ctrl + F5  

���� ���� �ؼ����� ����� �Ͻʽÿ�.

Flatten Packages  

 

��ư�� ���� ��, ��� ������ �ϳ��� ���� Ʈ�� ����μ� ǥ�õ˴ϴ�.  ï¿½ï¿½ï¿½ï¿½, ���� ����� ������ ����� ������Ʈ ������ ���� � ���̶��, �װ��� �ǿ��� �߰��ϱ� ���� ���� ��� �� �̸��� �߰��ϴ� ���� ��ü Ʈ�� ������ ������ ���� �ʿ����� �ʽ��ϴ�.

Show Files  

 

���� ��, Analyzed Code Window�� Parent Code Window �� ������ ���Դϴ�.

Show Modules  

 

���� ��, Ʈ�� ������ �׸��� �����ϴ� ��� ��� �Ʒ����� ��Ÿ���ϴ�.  ï¿½×·ï¿½ï¿½ï¿½ ������, ������Ʈ �׸��� �����ϴ� ����(������ ���Ҿ� sourcepath�� ����) �Ʒ����� ��Ÿ���ϴ�.


Modules ï¿½ï¿½ ����� ����� �� ���� ��� �߿� �� ���� ������ ������ ���� �����ϰ� �մϴ�.  ï¿½×¸ï¿½ï¿½ï¿½ ��Ÿ���� ��� ���� ����� �װ��� �߰��� �� �����ϴ�.


 

Group by Scope  Type  

 

���� ��, Ʈ���� �׸��� �׵��� ���� Ÿ��, �� ����, ���� �Ǵ� ���̺귯���� �ǰ��Ͽ� ��Ÿ���ϴ�.

Show Illegals Only  

 

���� ��, �ҹ����̰� ��ȿ�� ���Ӽ����� ǥ���մϴ�.

Edit Rules  

 

Call the Dependency Validation  dialog allowing you to set valid dependencies for analysis. 
���Ӽ� Ȯ�� 
���̾�α׸� �θ��� ������� �Ͽ��� �м��� ���� ��ȿ�� ���Ӽ��� �����ϵ��� ����մϴ�.

 

���Ӽ� Ȯ��


���Ӽ��� �м��ϸ� ����� �׵��� �Ϻθ� ������ �ʿ䰡 ���� �� �ֽ��ϴ�.  ï¿½Ù¸ï¿½ ���� �ϸ�, ����� ������Ʈ ��� ���� ��ȿ�ϰ� ��ȿ�� ���Ӽ��� �����ϱ� ���ؼ�.  Dependency Validation ï¿½ï¿½ï¿½Ì¾ï¿½Î±×´ï¿½ ��ſ��� �׷� ��ȿ�� ���Ӽ��� ����ϰ� �ִ� ��Ģ�� �����ϴ� ���� ����մϴ�.



���̾�α״� ��Ģ ��ϰ� �� ���� ��ư�� �Բ� �гη� �����˴ϴ�.

Deny usages of  

���-�ٿ� �޴��� ����� ��� ���� ������ ������(��ȿ�μ�) ������ �����ϴ� ���� �����ϰ� �մϴ�.  ï¿½ï¿½ï¿½ï¿½ ������ �����ϱ� ���� ellipsis ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ ���� ���� ï¿½ï¿½ï¿½Ì¾ï¿½Î±×¸ï¿½ �θ��ʽÿ�.

in  

The drop-down menu enables you to select the usage scope pattern where the previously selected usages are to be omitted. To set the scope pattern press the ellipsis  button to call the Edit Scopes  dialog. 
���-�ٿ� �޴��� ����� ������ ���õ� ����� ������ ��� ���� ������ �����ϴ� ���� �����ϰ� �մϴ�.  ï¿½ï¿½ï¿½ï¿½ ������ �����ϱ� ���� ellipsis ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ ���� ���� ï¿½ï¿½ï¿½Ì¾ï¿½Î±×¸ï¿½ �θ��ʽÿ�.


Add Rule�� ���� ������� �� �ٸ� ������ �߰��մϴ�.

Remove Rule ï¿½ï¿½ ����� ��Ͽ��� �����ߴ� ��Ģ ����� �����ϵ��� ����մϴ�.
Move up/Move down ï¿½ï¿½ ����� ���õ� ���� ������ �� �Ʒ��� �����̱� �մϴ�.

���Ӽ� Ȯ�� ��� ����


Dependency Validation ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ ���� ���� �ؼ����� ���õǴ� ������Ʈ ������ �����ϱ� ���� ���˴ϴ�.

�ֿ� ��Ģ�� ������ �����ϴ�: "Deny usages of <Set A> in <Set B>" <Set A>�� <Set B> �� ����� ������Ʈ���� �������� � Ŭ������ ��Ʈ�� �ִ� ���Դϴ�.

*   �̱� Ŭ���� ��Ʈ:
���� �ܼ��� ��Ʈ�� Ŭ���� �̸��� �ܼ��� ������ �� �Դϴ�. ��  <com.intellij.OpenApi.MyClass>.

*   ���� ������ �ƴ� ������ ��� Ŭ������ ��Ʈ:
��Ʈ(.)�Ŀ� ��ǥ(*)�� ����Ͽ� ����� ���� ��Ű���� ������ ��Ű������ ��� Ŭ������ ��Ʈ�� �����մϴ�. �� <com.intellij.OpenApi.*>.

*   ������������ �Ӹ� �ƴ϶� �������� ��� Ŭ������ ��Ʈ:

*   ���� ��Ʈ(..)�Ŀ� ��ǥ(*)�� ����Ͽ� ����� ������������ �Ӹ� �ƴ϶� �������� ��� Ŭ������ ��Ʈ�� �����մϴ�. �� <com.intellij.OpenApi..*>.

��Ʈ�� �����ϱ� ���Ͽ� �� ���� �����ڰ� �ֽ��ϴ�.

*   ��ġ ������:
You can specify whether the desired set is located in source files, library classes or test code in the form of
src:<E>, lib:<E> and test:<E> where <E> is the target set.

*   ����� ���ϴ� ��Ʈ�� �ҽ� ����, ���̺귯�� Ŭ���� �Ǵ� src:<E>, lib:<E> and test:<E> where <E> is the target set �� ���� �׽�Ʈ �ڵ尡 ��ġ�� ������ ��� ������ �� �ֽ��ϴ�. ���� ���, <src : com.intellij.OpenApi.*>�� ���� ������ ������ com.intellij.OpenApi  ������ �ҽ� ���� �Ʒ��� ��� Ŭ������ �����մϴ�.

*   ��� ������:
You can specify the desired set even further with a module in your source, library or test classes.

*   ����� ������ �� ���ư� ����� �ҽ�, ���̺귯�� �Ǵ� �׽�Ʈ Ŭ������ ���� �Բ� ���ϴ� ��Ʈ�� ������ �� �ֽ��ϴ�.

*   �װ��� ������ ���� ���� �� �Դϴ�: src[MyJavaModule]:<E>, lib[MyJavaModule]:<E> and test[MyJavaModule]:<E> where <E> is the target set. ���� ���, <src[MyJavaModule] : com.intellij.OpenApi.*> �� ���� ������ ������ com.intellij.OpenApi  ������ MyJavaModule ��⿡ ���õ� �ҽ� ���� �Ʒ��� ��� Ŭ������ �����մϴ�.

*   ������ ���۷�����:
���� ������� �Ͽ��� AND (&&), OR (||) �׸��� NOT(!)�� ���� ���� ������ �����ڸ� ����ϵ��� ����մϴ�.