Force inspection rerun?

Hi all,

Is there a way my plugin can force the inspections to be run again for a
file? I'm finding that my inspection which checks log calls in a Java
source file against the resource bundle is not being rerun when the
resource bundle properties file is modified by hand and an error which
was previously detected (missing resources for instance) is still being
shown.

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: (416) 933-5046 | Fax: (416) 933-5001

2 comments
Comment actions Permalink

Gordon Tyler wrote:

Hi all,

Is there a way my plugin can force the inspections to be run again for a
file? I'm finding that my inspection which checks log calls in a Java
source file against the resource bundle is not being rerun when the
resource bundle properties file is modified by hand and an error which
was previously detected (missing resources for instance) is still being
shown.

Ciao,
Gordon


Not through the OpenAPI unfortunately.

--
Maxim Shafirov
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Maxim Shafirov (JetBrains) wrote:

Gordon Tyler wrote:

>> Is there a way my plugin can force the inspections to be run again for
>> a file? I'm finding that my inspection which checks log calls in a
>> Java source file against the resource bundle is not being rerun when
>> the resource bundle properties file is modified by hand and an error
>> which was previously detected (missing resources for instance) is
>> still being shown.


Not through the OpenAPI unfortunately.


It turns out that it was a problem with my plugin caching and not
updating the cache properly when the propertie file was modified. Once I
fixed that the problem went away.

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: (416) 933-5046 | Fax: (416) 933-5001

0

Please sign in to leave a comment.