During the project development process, the plug -in debugging is very troublesome. You need to modify the code inside and compile the Class, and you need to re -pack the plug -in. Then delete the previous delete and reinstall the latest. The debugging process is cumbersome and cannot be debugged, which is very inconvenient. Here are how to debug the plug -in.
Need tools: Eclipse, FineReport Reporting Tool
Specific explanation
1. New project
Create a new Java project, so I won't go into details here
2. Add dependence, start the designer
If you want to start a lot of JAR bags you need to rely on the designer. The specifics are as follows:
A. JETTY related jar package
B. JAR package related to the designer
C. Other related jar packages
Select the jar package as shown in the figure
3. Add the main function
The main function digmical is:
Copy code code as follows:
Import com.fr.start.designer;
Public Class Mainframe {
publicstation void main (string [] args) {
newDesigner (ARGS);
}
}
4. Start the designer
The effect is as follows:
Note: There will be some errors, no need to care, this is caused by the lack of some plug -in packets
For example, as shown above, it is the lack of problems caused by the text box ID verification plug -in. If you have obsessive -compulsive disorder, you can add all the plug -in packages.
5,%20 development plug -in
Add the code into the project,
The code of actualocalefinder.java%20 is:
package%20com.fr.plugin.designer; Import%20Com.fr.Stable.fun.imPl.abstrac; Public Calefinder%20 {%20%20@& oVerride%20%20/**% 20%20%20*%20 Return path%20%20*%20@Return%20%20%20%20*/%20%20string%20find ()%20 {%20%20%20% 20%20RTURN%20 "COM/FR/Plugin/Designer/Resource/LOCALE/Search";%20%20}} Searchtemplation.java%20 is: package%20Com.fr.plugin.Designer; IMP ORT%20Com. FR.BASE.BASEUTILS; Import%20Com.fr.Design.Actions.UPDATEACTION; Import%20Com.General.inter; Import%20javax.swing.*; Import%20java.awt.event .ActionEvent;/**% 20*%20created%20BY%20ADMINISTRATOR%202015/7/22%200022.%20*/Public%20CL ASS%20SEARCHTEMPLEON%20EXTENDS%20PUBLIC%20Searchtem PlateAction () {%20%20%20%20%20 20 // The internationalized file is configured in Search.properties%20%20%20%20%20%20this.setName (Inter.GetLoctext ("FR-DESIGNER_TEMPLATE-TREEE-Search"); EUTILS . READICON ("/COM/FR/Plugin/Designer/Resource/Search.png")); log (null, "this is search demo"); // TemplateFiletree Inheritance JTREE, you can select the template through setselectEMPLEPATH. You can use the method of jtree to traverse the tree. // TemplateFiletree Tree = TemplateTreepane.getInstance (). GetTemplateFiletree ();}}}}} As shown in the code, the designer effect is as follows:
You can also perform debug debugging, such as adding breaks in the code.
If you do n’t use Java Debug, I do n’t introduce it anymore, you can search at Baidu.
The above introduction is the entire content of the debugging report plug -in. I hope everyone likes it.