当前位置:网站首页>Tool use of rookie tutorial -- View subclass (implementation class) class diagram in idea
Tool use of rookie tutorial -- View subclass (implementation class) class diagram in idea
2022-07-25 00:47:00 【Liu Shuijing】
List of articles
Software environment
- Mac OS
- JDK 1.8
- IDEA Ultimate 2019.2
Background introduction
Looking at the class diagram can help us quickly understand the main logic of the code , It is definitely a good helper for learning source code and studying technology . We all know that IDEA Pass through Option+Shift+Command+U Or right click ==》Diagrams ==》Show Diagram You can view the diagram of a class and its parent class . But if you want to see all subclasses or implementation classes of a class or interface , There is not a particularly good tutorial available online ( Maybe I didn't find ). For this reason , I did some research ( In fact, it's chaos everywhere ) Found the corresponding method . So I wrote it out and shared it with you , It's a coincidence .
step
First of all, we still need to Show Diagram, It can be operated by mouse , You can also use shortcut keys :

adopt Add Class The way
You can right-click ==》 Add Class to Diagram To add subclasses :
You can also press “ Space ” To add :
Enter the class you want to display in the search box , It should be noted that this method can not only add subclasses of the current class , You can also add any class you want ( As long as this class is in your classpath Next ).
adopt Show Implementations The way
This method can also be completed by right clicking , Right click the current class ==》 Show Implementations:
Of course, you can still use shortcut keys :Option+Command+B To add :
This way is to really add the current class / Subclass of interface / Implementation class .
effect
And then once you're done , The effect is as follows :
end
The above describes two uses IDEA How to view the class diagram , The first one is suitable for those familiar with class structure , Or you need to view multiple inheritance relationship trees at the same time ; The second is suitable for unfamiliar situations , Because its subclasses can be accurately found . If you have a better way, I hope you can share it with me .
PS: If you want to add all subclasses / Implementation class , Pop up candidate subclasses / When implementing the class list, select all and press enter .
边栏推荐
- Detailed usage of iperf
- Quartus: install cyclone 10 LP device library for quartus version 17.1
- Construction of Seata multilingual system
- 2022 Henan Mengxin League game (2): Henan University of technology d-pair
- 2022 Henan Mengxin League game 2: Henan University of technology I - 22
- Where is the most formal account opening for futures trading? Capital security?
- Pain and happiness -nio programming
- Netease game Flink SQL platform practice
- Divide 300000 bonus! Deeperec CTR model performance optimization Tianchi challenge is coming
- 2012.4.13 360 written examination summary
猜你喜欢
![[leetcode weekly replay] game 83 biweekly 20220723](/img/db/c264c94ca3307d4363d3cf7f5d770b.png)
[leetcode weekly replay] game 83 biweekly 20220723

动态规划-01背包滚动数组优化

Fast development board for Godson solid state drive startup (burning system to solid state) - partition

Cloud native observability tracking technology in the eyes of Baidu engineers

Uncaught typeerror: cannot read properties of null (reading 'append') solution

paddlepaddle论文系列之Alexnet详解(附源码)

Quartus:17.1版本的Quartus安装Cyclone 10 LP器件库

Tencent low code platform is officially open source! You can drag and drop and generate mobile phone projects and PC projects! Get private benefits

C recursively obtains all files under the folder and binds them to the treeview control

The font changes with the change of the form
随机推荐
如何创建索引
Related knowledge of paging
Netease game Flink SQL platform practice
Redis pipeline technology / partition
Uncaught typeerror: cannot read properties of null (reading 'append') solution
asp adodb.stream对象的方法属性
Unity3d calls between different script functions or parameters
2022 Henan Mengxin League game (2): Henan University of technology d-pair
How to create an index
Dynamic programming-01 knapsack rolling array optimization
R language uses ISNA function to check whether the list and dataframe contain missing values, marks abnormal values in data columns in dataframe as missing values Na, and uses na.omit function to dele
Deep and direct visual slam
在混合云中管理数据库:八个关键注意事项
Managing databases in a hybrid cloud: eight key considerations
Detailed explanation of alexnet of paddlepaddle paper series (with source code)
Notes on topic brushing (XXII) -- Dynamic Planning: basic ideas and topics
494. Target sum · depth first search · knapsack problem
[hero planet July training leetcode problem solving daily] 24th line segment tree
第四章 驱动子系统开发
Educational codeforces round 89 (rated for Div. 2) ABC problem solution