Latest web development tutorials

Eclipse Quick Fix

Use Quick Fix

In the Eclipse editor When you enter letters, the editor will you enter the content error analysis.

Java editor using Java syntax to detect errors in the code. When it finds an error or warning:

  • Red wavy line highlighted errors
  • Use yellow wavy lines prominent warning
  • Errors and warnings in the Problem view
  • Small yellow bulbs and display warnings and errors identified on the vertical ruler

Quick Fix dialog box provides a solution to the problem. Quick Fix dialog box by calling the following ways:

  • The mouse pointer on the waves online
  • Click on the small light bulb
  • Move the mouse pointer over the highlighted text and choose Quick fix items on the Edit menu or the keyboard shortcut Ctrl + 1
quick_fix_1

In the figure above, getId is highlighted, because Person is not a class named a getId () method. In the pop-rehabilitation program, select "Create method 'getId ()' in type 'Person'" This will add getId () method in the Person class.

You can also right-click on the wrong item Problems view, then select the menu item Quick Fix Quick Fix dialog box is displayed, as shown below:

qf