Easy Tutorial
❮ Eclipse Debug Configuration Eclipse Task Management ❯

Eclipse Quick Fix


Using Quick Fix

In the Eclipse editor, as you type, the editor performs error analysis on the content you enter.

The Java editor uses Java syntax to detect errors in the code. When it finds errors or warnings:

The Quick Fix dialog provides solutions. The Quick Fix dialog can be invoked by:

In the image above, getId is highlighted because there is no getId() method in the Person class. Choose "Create method 'getId()' in type 'Person'" from the pop-up fix options to add the getId() method to the Person class.

You can also right-click on the error item in the Problems view and select the Quick Fix menu item to display the Quick Fix dialog, as shown below:

❮ Eclipse Debug Configuration Eclipse Task Management ❯