November 20, 2008, 09:05:40 am *
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Point-and-query  (Read 5278 times)
olhotak
Newbie
*
Posts: 8


« on: April 13, 2007, 06:03:34 pm »

As I was going through the tutorial, especially the part about all the ways of presenting the results, one feature that I started to wish for was to have a way to select a program feature in Eclipse, and bind it to a variable of a query. For example, suppose I have a query that returns a call graph:
Code:
from Callable caller, Callable callee
where caller.calls(callee)
select caller, callee
Now I'd like to be able to (right?-)click on a method in Eclipse, and select something from a context menu to bind that method to either caller (to get a list of all its callers) or to caller (to get a list of all its callees).
Logged
Semmle Coders
Newbie
*
Posts: 13


« Reply #1 on: April 13, 2007, 07:29:11 pm »

Yes, this fancy feature is planned. However, not for the next release. There are no particular difficulties in adding it except some engineering effort. And as our resources are limited, this will happen rather later than sooner.
Logged
Jean Helou
Newbie
*
Posts: 12


« Reply #2 on: April 18, 2007, 02:35:57 pm »

I second this feature request (yes I understood your answer Smiley ) but if the number of votes can help bring this up in the list even if its only higher on the "later" list ...
Logged
Oege de Moor
Newbie
*
Posts: 30


« Reply #3 on: April 18, 2007, 08:58:21 pm »

We'll first do named queries that can take parameters.

Once we have those, it should be possible to right-click a program element, and get a menu of all named queries that take precisely one parameter of the type that you've just pointed at.

I'm optimistic that it can be done soon. If readers keep voting for it, it will be done sooner  Smiley

Named queries also enable the hierarchical queries suggested by Stan in

http://semmle.com/component/option,com_smf/Itemid,26/topic,15.0/

so they're definitely moving up the priority list!





Logged
prademak
Newbie
*
Posts: 2


« Reply #4 on: January 22, 2008, 01:48:26 pm »

I was wondering what the current status of the "named queries that can take parameters" feature is.
Have you started implementing it? or: Are you still planning to implement it?
Logged
Oege de Moor
Newbie
*
Posts: 30


« Reply #5 on: January 25, 2008, 10:00:03 am »

Yes, it's in the works.
Logged
Pages: [1]
  Print  
 
Jump to: