Reference

In This Section

Klocwork icons and Project Explorer pop-up menu

Klocwork perspective

Workspace settings and project-specific settings

Klocwork Preferences

Klocwork project properties

Klocwork Solo for Java Help contents

Klocwork icons and Project Explorer pop-up menu

After you install the Klocwork Solo plug-in and start Eclipse, you'll see the Klocwork icon inForce4Java_eclipse_run_icon and the Add declaration to the knowledge base Add_to_JKB_icon.jpg icon on the toolbar.

If you have a project in the Project Explorer view, you can right-click it and see the Klocwork menu options:

Rt-click_menu.jpg

Run Klocwork for Java triggers a Klocwork Solo analysis. For a subsequent run, Klocwork uses Incremental analysis.

Clean... is not often used in your Klocwork Solo workflow, but by using it you can:

Klocwork perspective

You can use the Klocwork perspective or...not. By default, if you are not already in the Klocwork perspective, you will see a prompt asking you if you wish to open it.

The Klocwork perspective contains the Klocwork Issues view, Klocwork Details and the Klocwork Log Console.

To change the setting to always or never display the Klocwork perspective or to restore the Prompt setting:

  1. Go to Window > Preferences > Klocwork > Settings.
  2. Click Always open or Never Open or Prompt.

Klocwork Issues view

The Klocwork Issues view is part of the Klocwork perspective. By default, it is at the bottom of your window.

The Klocwork Issues view displays issues detected during analysis. This view is where you can sort your findings, filter the list of issues, prioritize your actions using statuses, access issue help and launch the investigative tool--traceback.

Klocwork tools at the far right of the Klocwork Issues view are:

Tool

Description

copy-to-clipboard.jpg

Copy list of issues to the clipboard

new_filter_icon.jpg

Access filter settings

Grouping_menu.jpg

View Menu:

Group issues according to selected option

Access filter settings

Copy <selected> issues to clipboard

For more information about filtering and grouping, see Step 3: Group issues and view issue help in the Getting Started tutorial and Filtering.

Klocwork Details

To access the traceback feature in Klocwork Details, double-click an issue in the Klocwork Issues view. Klocwork Details is part of the Klocwork perspective.

The source code statement containing the issue is highlighted in the editor view, and traceback for the issue is displayed in the Klocwork Details view.

Traceback allows you to 'step' through the code paths that generated the issue.

For more information, see: Step 4: Investigate by viewing source code and using traceback in the Getting Started tutorial.

Klocwork Log Console

The Klocwork Log Console is displayed as a view in the Klocwork perspective. By default, it is at the bottom of your Eclipse window.

The Klocwork Log Console displays processing errors during the Klocwork analysis. If you notice any problems analyzing code, check the build log for errors. In the event of analysis problems, the Log Console provides the path to the build log: <workspace>/.metadata/.plugins/org.eclipse.core.resources/projects/<projectname>/com.klocwork.inforceeclipse/.kwlp/workingcache/tables/build.log

Click inF_java_stdalone_copy_errors_to_clipboard_button in this view to copy the content of the log console to a clipboard, from which you can later paste it into a file.

Click inF_java_stdalone_clear_log_console_button to clear the content of the Klocwork Log Console.

Workspace settings and project-specific settings

You can configure Klocwork for your workspace or for a specific project. Workspace and project-specific configuration settings are contained in different locations.

To access:

Workspace settings

Project-specific settings

  • Go to Window > Preferences.
  • Expand Klocwork and click Default Configuration.
  • Right-click the project and select Properties.
  • Click Klocwork.
  • Check Enable project-specific settings.

Klocwork Preferences

Use the Klocwork pages to set how you want Klocwork to operate in your workspace. You can:

Klocwork Default Configuration

The Default Configuration dialog for the workspace (Window > Preferences > Klocwork > Default Configuration) has two tabs:

Klocwork License page

Use Window > Preferences > Klocwork > License to:

This page is for users who have purchased Klocwork Solo for Java. Trial licenses are activated automatically.

Klocwork Settings

Use Window > Preferences > Klocwork > Settings to enable or disable Parallel analysis or change your settings for the Klocwork perspective.