Structural Search question... frustrated....

I am searching for the following pattern:

PreferencesManager pm = PreferencesManager.getInstance();

I searched for
1.

2.

3.


and I am creating the structural search query by copying the line from the code :(

I am using 3417.

4 comments
Comment actions Permalink

please ignore the typos - my copy-n-paste did not work across vnc - but i used code completion to make sure that there are no typos when I am doing the search.

0
Comment actions Permalink

I assume you are of interest for declarations, so lets try simple one

PreferencesManager $pm$ = PreferencesManager.getInstance();

Vinay Moharil wrote:

I am searching for the following pattern:

PreferencesManager pm = PreferencesManager.getInstance();

I searched for
1.


2.


3.



and I am creating the structural search query by copying the line from the code :(

I am using 3417.



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Thanks! That worked fine after I restarted idea. I also had a red-dot for which I submitted the report.

Now I am trying

PreferencesManager $pm$ = PreferencesManager.getInstance();
AppPreferences $ap$ = $pm$.getUserPreferences( "Application", null );

which are the very 2 lines of code in the file and it does not work now.

0
Comment actions Permalink

My Bad! I had the "value is read/written" toggles turned on causing the issues.

0

Please sign in to leave a comment.