When you open Eclipse for the first time, you will start with a blank workspace. If you installed CodeQL for Eclipse standalone, the following key areas are displayed:
You do not need to start with a blank workspace to run CodeQL for Eclipse. You can also rearrange the views and open additional views. To see the full list of views available in Eclipse, click Window > Show View > Other.
Finding a resource or definition
Here are some useful Eclipse shortcuts:
|Jump to definition||F3||Fn+F3||
Open the declaration of the selected language element in the Editor view.
|Quick access||Ctrl+3||Cmd+3||Use this to quickly find any file, menu option, command or setting. Start typing a name to display the matching results in a drop-down list.|
|Navigate within file||Ctrl+O||Cmd+O||
Open a pop-up with an outline of the current file in the Editor view. This can be used as follows:
This is in addition to the global outline available in the Outline view.
Open the Open Resource dialog box, used to find and display any file:
The Pattern field supports
The libraries and queries included with CodeQL for Eclipse are not available as standard Eclipse resources, so they aren't listed here. To access the CodeQL libraries and queries, see Finding the standard queries and libraries.
You can display and customize all the available shortcuts for your workspace in the Eclipse Preferences dialog box. See Editing keyboard shortcuts for more information.
There are a few standard Eclipse tools for keeping track of the progress of analysis. In particular, if you select a large database or run a complex query in CodeQL for Eclipse then the query may take a while to finish running. You can monitor the progress in the following ways:
- The status bar in the bottom right corner of the Eclipse workspace shows a summary.
- More detailed information is shown in the Progress view—click the progress icon in the bottom right corner of the Eclipse workspace.
- You can also open the Progress view from the Show View menu.
Other Eclipse tips
You can edit your CodeQL for Eclipse preferences in the standard Eclipse Preferences dialog box:
- On Linux and Windows, click Window > Preferences.
- On macOS, click Eclipse > Preferences (in the top left of the screen).
To control what files are displayed in the Project Explorer, you can use filters. Configure these using the Menu button.
You can link the Project Explorer to the currently open file in the Editor view. Click the Link with Editor button to enable this.