DVT Eclipse IDE Quick Fix Proposals - How To Fix A Missing Package Import

Overview

DVT triggers errors when you access types declared in a package which was not imported in the current scope.

You can quickly fix such errors, either by importing the missing package or by fully qualifying the type access. Simply click on the error's line, press Ctrl+1 and pick the desired Quick Fix proposal from the list.

Explore the design and verification tools: https://www.dvteclipse.com
Or request a license: https://www.dvteclipse.com/request-license

Details

DVT flags errors for missing types, for example when you miss a package import. A light bulb indicates that there is a Quick Fix Proposal available for this error.

Using Quick Fix Proposals to Import Missing Packages

Click on the error line, press CTRL+1, select the import proposal from the list and press ENTER.

The package containing the type declaration is imported.

Fully Qualifying Type Access

Instead of importing the package, you can also choose to fully qualify the type access.