Eclipse Quick Fix Use quick fixes
When you enter a letter in the Eclipse editor, the editor makes an error analysis of what you entered.
The Java Editor uses Java syntax to detect errors in your code. When it finds an error or warning:
- Highlight errors with red wavy lines
- Use yellow wavy lines to highlight warnings
- displaying errors and warnings in the problem view
- Displays yellow light bulbs and warning and error marks on the vertical ruler
The Quick Fix dialog box provides the solution. The Quick Fix dialog box can be called in the following ways:
- Place the mouse pointer over the wavy line
- Click on the small bulb
- Place the mouse pointer over the highlighted text and select the Quick fix item on the Edit menu or press the shortcut key CTRL + 1
In, GetId is highlighted because there is no GetId () method named in the person class. In the pop-up fix, select "Create method ' GetId () ' In the type ' person '" to add the GetId () method to the person class.
You can also right-click the error entry in the problems view and select the Quick Fix dialog box that appears in the Fast Fix menu item, as shown in:
Eclipse Quick Fix