|
Page 6 of 6
Saving Queries
SemmleCode allows you to save the queries that you write in the Quick query view.
First make sure that you have a query without errors in the SemmleCode Quick
query view. Then click on the Open and Edit a Bundle of Queries button
( )
in the Quick query view to save your queries.
This will bring up the Open XML file dialog. Since we are saving a new query, just
browse to the directory where you wish to save your query and type the name of the
xml file that you wish the query to be saved to.
Clicking Open will bring up the Manage Queries form. Through this form you can
save new queries, and edit existing saved queries. Since we wish to save a query,
right click on the folder and select New Query.
This adds the query in the Quick query view as a new query to the query bundle. You
can add a description and modify the visualization type that you wish to use for
the query. Then click Apply to apply your changes and File->Save in
the Eclipse menu to save the xml file.
Your query should now be saved in the file you specified. You can add multiple queries
to a single xml file. In addition, the Manage queries form
also allows you to organize your queries by creating new categories in the xml file,
as well as edit and remove existing saved queries.
Saved queries can be executed through the SemmleCode launch configuration, by
clicking on the Add custom file(s)... button the the SemmleCode Query
launch configuration dialog.
|