Skip to content

Commit 9c130f2

Browse files
authored
Update README_EN.md
update
1 parent 5cbc251 commit 9c130f2

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

README_EN.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ JetBrains IDEA/Android Studio MVP template code generation plug-in
77

88
![screenshots](./images/mvp.gif)
99

10-
##Character
10+
## Character
1111

1212
- generate the MVP Contract interface class based on the specified parent interface.
1313
- optionally generate an MVP implementation class based on the generated MVP Contract and the specified parent class, and add an abstract method default implementation.
@@ -16,15 +16,15 @@ JetBrains IDEA/Android Studio MVP template code generation plug-in
1616
- support the Presenter
1717
- support the Model
1818
- support Java and Kotlin languages
19-
##IDE support:
19+
20+
## IDE support:
2021

2122
- Android Studio(supported from 3.1(173.3727-173.*))
2223
- IntelliJ IDEA
2324
- IntelliJ IDEA Community Edition
2425

25-
##The installation
26+
## The installation
2627

27-
--
2828
- **install using the IDE built-in plug-in system :**
2929

3030
- <kbd>File</kbd> > <kbd>Preferences(Settings)</kbd> > <kbd>Plugins</kbd> > <kbd>Browse repositories...</kbd> > <kbd>search and find "MvpAutoCodePlus"</kbd> > <kbd>Install Plugin</kbd>
@@ -36,35 +36,49 @@ JetBrains IDEA/Android Studio MVP template code generation plug-in
3636

3737
- **Restart the IDE**.
3838

39-
##Usage
39+
## Usage
4040

4141
1. Configure the parent interface:
4242

4343
- <kbd>File</kbd> > <kbd>Preferences(Settings)</kbd> > <kbd>Other Settings</kbd> > <kbd>MvpAutoCodePlus</kbd> >
4444

4545
![settings](./images/settings.png)
46-
Based on [` this a set of Java interfaces `] [my_interface_java] example configuration:
46+
47+
Based on [`this a set of Java interfaces`][my_interface_java] example configuration:
48+
4749
![settings1](./images/settings1.png)
50+
4851
Project in the Class has been V1.0beta2 support to choose, but if there are generic limit, generic or need to manually add, such as the choice of Class signature is: **com.longforus.Base.Java.BasePresenterJv<V extends IView, M extends IModel>**
52+
4953
![use3](./images/use3.png)
54+
5055
Manually add the following generic qualifier <V,M>:
56+
5157
![use4](./images/use4.png)
58+
5259
Global and current project modes are also supported, and the interfaces configured in global mode can be used in all projects. The interfaces configured in the current project only work in the current project, facilitating seamless switching between multiple different projects.
60+
5361
2. Generate:
5462

5563
![use1](./images/use1.png)
64+
5665
- right click the target package to be generated,< KBD >New</ KBD > > < KBD >Generate Mvp Code</ KBD > (or select the package, press Alt+Insert). After generating the contract package, you can select the parent package of the contract package or contract.
66+
5767
- enter the code generated by the name, such as do the Login function, enter the Login and generate results is ILoginContract, LoginActivity, LoginPresenter, LoginModel
68+
5869
- choose the code implementation, Java or Kotlin
70+
5971
- select the implementation method of View,Activity or Fragment. If there are multiple configurations, select one of them, and remove the previous check box for the items you don't want to generate. If there are no superclasses of P and M implementation classes, the generated implementation classes of P and M will only implement the corresponding interface.
72+
6073
- click Ok, wait a moment, and the code is generated. The generated package structure is as follows:
74+
6175
![use2](./images/use2.png)
6276

63-
##About the parent interface
77+
## About the parent interface
6478

6579
Only use my own currently use interface to development and testing, welcome to use their own interface for testing. If need [` I use interface `][my_interface], please download it in your own project.
6680

67-
##Problem
81+
## Problem
6882

6983
- if the parent interface and the parent class have a generic qualifier, you will need to manually enter the generic after selecting it, but it will be saved only once set and will not change frequently in the project.
7084
-we haven't studied the layout file corresponding to the View, and it would be more convenient if we could also generate the default.

0 commit comments

Comments
 (0)