MVPManager

Compatible with: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion Gogland DataGrip Rider MPS Android Studio
17.06.2017
594
通过MVPManager可以快速的管理MVP框架
正向生成MVP所需的代码和自动创建实现类,并实现方法。
逆向MVP代码增添或删除方法,而不需手动在接口和实现类中进行两次操作。
Through the MVPManager can quickly manage the MVP framework
      Generate the code required for MVP and automatically create the implementation class, and implement methods.
      Reverse MVP code to add or remove methods, without having to manually in the interface and the implementation class in two operations.

Download plugin

Recent change notes

1. 优化界面 2. 添加自动继承XBasePresenter,当勾选xmvp时 3. 添加自动继承XBaseActivity或Fragment

General usage instructions

1. 创建MVP代码(Create the MVP code.) 通过右键项目包名 -> New -> MVPManager,这时将出现MVP创建界面,当编辑好内容后点击'OK'将会自动创建MVP的Contract类,并且创建对于的实现类,并实现接口中方法。

2. 编辑MVP代码(Edit the MVP code.) 通过在Contarct类中右键 -> Generate -> MVPManager,这时将出现MVP编辑界面,可对方法进行增加,或者删除。

1. Open MVP Manager: By right-clicking on the package name -> New -> MVPManager. Click OK when the content is edited and the MVP Contract class will be created automatically, and the implementation class for the interface will be created.

2. By right-clicking in the Contarct class -> Generate -> MVPManager, the MVP editing interface will appear. You can add or remove the method