Structural search again

Yet another structural search question.

I don't think this is possible but I'm hoping...

I want to search for all logging statements that don't have an if
surrounding them:

I other words dont match:

if (LOG.isDebugEnabled()) {
LOG.debug("getAnchorID(): anchorID = " + anchorID);
}


but do match:

LOG.debug("getAnchorID(): anchorID = " + anchorID);

on it's own. Is this possible?

Regards,

Glen


5 comments
Comment actions Permalink

Hi,
Not yet.

Glen Stampoultzis wrote:

Yet another structural search question.

I don't think this is possible but I'm hoping...

I want to search for all logging statements that don't have an if
surrounding them:

I other words dont match:

if (LOG.isDebugEnabled()) {
LOG.debug("getAnchorID(): anchorID = " + anchorID);
}


but do match:

LOG.debug("getAnchorID(): anchorID = " + anchorID);

on it's own. Is this possible?

Regards,

Glen



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

0
Comment actions Permalink

Is there any guide to using struct search? I look at the UI and have NO Idea how to use it, let alone what's possible and what isn't.

0
Comment actions Permalink

Hi,
Try using help, it contains examples (use cases) part.
Predefined patterns contains most of the pattern needed.

Hani Suleiman wrote:

Is there any guide to using struct search? I look at the UI and have NO Idea how to use it, let alone what's possible and what isn't.



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

0
Comment actions Permalink

Try using help, it contains examples (use cases) part.


But you will provide a tutorial when IDEA 4.5 is released, isn't it?

Tom

0
Comment actions Permalink

Hi,

This usecase part of the help is indended to be short tutorial.
Significantly more detailed version will be available online in the
nearest future.

Thomas Singer (MoTJ) wrote:
>> Try using help, it contains examples (use cases) part.


But you will provide a tutorial when IDEA 4.5 is released, isn't it?

Tom



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

0

Please sign in to leave a comment.