Find Usages - Won't Find Usages In Strings

Why won't Find Usages find usages that are in strings? Refactoring does find usages in strings. Seems very inconsistent.

6 comments
Comment actions Permalink

Hello Keith,

Please provide an example.

Thank you for feedback!

0
Comment actions Permalink

And example of a usage that it won't find? Here's one:

class Apps_TicketsEditForm{

public static function RecurrenceModify(){

echo "test";

}

}

1400 Input2::Type(BUTTON);
1401 Input2::$sName          = "cmdModifyRecurrence";
1402 Input2::$sValue     = "Modify";
1403 Input2::$sDisabled  = !self::isTicketCatAdmin();
1404 Input2::$sTitle     = self::DisableTitle();
1405 Input2::$aAjax          = array(
1406                          "CLASS"               => __Apps_TicketsEditForm,
1407                          "METHOD"               => "RecurrenceModify",
1408                          "PARAMS"               => array("iTicketsID" => $id),
1409                          "UPDATELOCATION"     => "recurrence_modify");
1410 $sModifyButton      = Input2::Display(true);

If I Refactor RecurrenceModify, it will rename the value of the METHOD element in the array, but Find Usages won't find it.

0
Comment actions Permalink

Keith,

It could be a kind of feature request. Please create an issue - http://youtrack.jetbrains.net/issues/WI#newissue=yes

Thank you for feedback!

0
Comment actions Permalink

I don't see it as a feature request, it appears to be a bug. Why does Refactor find it, but Find Usages doesn't?

0
Comment actions Permalink

Keith,

I'm sorry but I have already submitted the issue to our issue tracker and forgot to notify you - http://youtrack.jetbrains.net/issue/IDEA-72200
Please vote it.

Thank you for feedback!

0

Please sign in to leave a comment.